tabexseriescomponents 0.0.593 → 0.0.595
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 +204 -93
- package/dist/index.esm.js +204 -93
- package/dist/index.umd.js +207 -96
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -116,6 +116,7 @@ import { IoSearchOutline } from '@react-icons/all-files/io5/IoSearchOutline';
|
|
|
116
116
|
import { AiFillYoutube } from '@react-icons/all-files/ai/AiFillYoutube';
|
|
117
117
|
import { IoLogoTiktok } from '@react-icons/all-files/io5/IoLogoTiktok';
|
|
118
118
|
import { FiMenu } from '@react-icons/all-files/fi/FiMenu';
|
|
119
|
+
import { BsChevronDown } from '@react-icons/all-files/bs/BsChevronDown';
|
|
119
120
|
import { IoClose } from '@react-icons/all-files/io5/IoClose';
|
|
120
121
|
import { BiSearch } from '@react-icons/all-files/bi/BiSearch';
|
|
121
122
|
import { FiUser } from '@react-icons/all-files/fi/FiUser';
|
|
@@ -127,7 +128,6 @@ import { BsSearch } from '@react-icons/all-files/bs/BsSearch';
|
|
|
127
128
|
import { AiOutlinePhone } from '@react-icons/all-files/ai/AiOutlinePhone';
|
|
128
129
|
import { GoSearch } from '@react-icons/all-files/go/GoSearch';
|
|
129
130
|
import { AiOutlineInstagram } from '@react-icons/all-files/ai/AiOutlineInstagram';
|
|
130
|
-
import { BsChevronDown } from '@react-icons/all-files/bs/BsChevronDown';
|
|
131
131
|
import { RiUserSettingsLine } from '@react-icons/all-files/ri/RiUserSettingsLine';
|
|
132
132
|
import { HiUserCircle } from '@react-icons/all-files/hi/HiUserCircle';
|
|
133
133
|
import { MdKeyboardArrowUp } from '@react-icons/all-files/md/MdKeyboardArrowUp';
|
|
@@ -10067,7 +10067,7 @@ var Select$3 = /*#__PURE__*/React.lazy(function () {
|
|
|
10067
10067
|
return import('react-select');
|
|
10068
10068
|
});
|
|
10069
10069
|
var Checkout = function Checkout(props) {
|
|
10070
|
-
var _css, _checkoutstyles, _ref,
|
|
10070
|
+
var _css, _checkoutstyles, _ref, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68, _fetchcustomercartQue70, _fetchcustomercartQue72, _fetchcustomercartQue74, _fetchcustomercartQue76, _authdetailsContext$i4, _fetchcustomercartQue78, _authdetailsContext$i5, _fetchcustomercartQue80, _authdetailsContext$i6, _fetchcustomercartQue82, _fetchcustomercartQue84;
|
|
10071
10071
|
var _useState = useState(null),
|
|
10072
10072
|
_useState2 = _slicedToArray(_useState, 2);
|
|
10073
10073
|
_useState2[0];
|
|
@@ -10106,6 +10106,14 @@ var Checkout = function Checkout(props) {
|
|
|
10106
10106
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
10107
10107
|
insthasaffiliate = _useState8[0],
|
|
10108
10108
|
setinsthasaffiliate = _useState8[1];
|
|
10109
|
+
var _useState9 = useState(false),
|
|
10110
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
10111
|
+
land = _useState10[0],
|
|
10112
|
+
setland = _useState10[1];
|
|
10113
|
+
var _useState11 = useState(false),
|
|
10114
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
10115
|
+
air = _useState12[0],
|
|
10116
|
+
setair = _useState12[1];
|
|
10109
10117
|
useEffect(function () {
|
|
10110
10118
|
var _templatepropcontext$;
|
|
10111
10119
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -10174,7 +10182,7 @@ var Checkout = function Checkout(props) {
|
|
|
10174
10182
|
});
|
|
10175
10183
|
}, [authdetailsContext]);
|
|
10176
10184
|
var cartinfoupdater = function cartinfoupdater(key, value) {
|
|
10177
|
-
var _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18;
|
|
10185
|
+
var _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19;
|
|
10178
10186
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10179
10187
|
cartarr.data.customercart[key] = value;
|
|
10180
10188
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
@@ -10188,7 +10196,8 @@ var Checkout = function Checkout(props) {
|
|
|
10188
10196
|
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 || (_fetchcustomercartQue15 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : _fetchcustomercartQue15.customercart.email,
|
|
10189
10197
|
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue16 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue16 === void 0 || (_fetchcustomercartQue16 = _fetchcustomercartQue16.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.mobile,
|
|
10190
10198
|
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue17 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue17 === void 0 || (_fetchcustomercartQue17 = _fetchcustomercartQue17.data) === null || _fetchcustomercartQue17 === void 0 ? void 0 : _fetchcustomercartQue17.customercart.notes,
|
|
10191
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue18 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue18 === void 0 || (_fetchcustomercartQue18 = _fetchcustomercartQue18.data) === null || _fetchcustomercartQue18 === void 0 ? void 0 : _fetchcustomercartQue18.customercart.aff_code
|
|
10199
|
+
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue18 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue18 === void 0 || (_fetchcustomercartQue18 = _fetchcustomercartQue18.data) === null || _fetchcustomercartQue18 === void 0 ? void 0 : _fetchcustomercartQue18.customercart.aff_code,
|
|
10200
|
+
shippingmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue19 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue19 === void 0 || (_fetchcustomercartQue19 = _fetchcustomercartQue19.data) === null || _fetchcustomercartQue19 === void 0 ? void 0 : _fetchcustomercartQue19.customercart.shippingmethod
|
|
10192
10201
|
};
|
|
10193
10202
|
if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') ; else {
|
|
10194
10203
|
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
@@ -10387,7 +10396,7 @@ var Checkout = function Checkout(props) {
|
|
|
10387
10396
|
})), _checkoutstyles);
|
|
10388
10397
|
var addorderfuncrunner = function addorderfuncrunner() {
|
|
10389
10398
|
return (_ref = _ref || _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
|
|
10390
|
-
var
|
|
10399
|
+
var _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29;
|
|
10391
10400
|
return _regeneratorRuntime.wrap(function _callee$(_context) {
|
|
10392
10401
|
while (1) switch (_context.prev = _context.next) {
|
|
10393
10402
|
case 0:
|
|
@@ -10396,19 +10405,19 @@ var Checkout = function Checkout(props) {
|
|
|
10396
10405
|
// temppayload.endpointurl = '/ChooseState_Country';
|
|
10397
10406
|
GeneralAPIMutationContext.mutate({
|
|
10398
10407
|
endpointurl: '/ChooseState_Country',
|
|
10399
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10400
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10401
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10402
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10403
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10404
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10405
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10406
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10407
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10408
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10408
|
+
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue20 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue20 === void 0 || (_fetchcustomercartQue20 = _fetchcustomercartQue20.data) === null || _fetchcustomercartQue20 === void 0 ? void 0 : _fetchcustomercartQue20.customercart.stateid,
|
|
10409
|
+
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue21 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue21 === void 0 || (_fetchcustomercartQue21 = _fetchcustomercartQue21.data) === null || _fetchcustomercartQue21 === void 0 ? void 0 : _fetchcustomercartQue21.customercart.countryid,
|
|
10410
|
+
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue22 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue22 === void 0 || (_fetchcustomercartQue22 = _fetchcustomercartQue22.data) === null || _fetchcustomercartQue22 === void 0 ? void 0 : _fetchcustomercartQue22.customercart.cityid,
|
|
10411
|
+
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue23 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue23 === void 0 || (_fetchcustomercartQue23 = _fetchcustomercartQue23.data) === null || _fetchcustomercartQue23 === void 0 ? void 0 : _fetchcustomercartQue23.customercart.address,
|
|
10412
|
+
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue24 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue24 === void 0 || (_fetchcustomercartQue24 = _fetchcustomercartQue24.data) === null || _fetchcustomercartQue24 === void 0 ? void 0 : _fetchcustomercartQue24.customercart.paymentmethod,
|
|
10413
|
+
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue25 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue25 === void 0 || (_fetchcustomercartQue25 = _fetchcustomercartQue25.data) === null || _fetchcustomercartQue25 === void 0 ? void 0 : _fetchcustomercartQue25.customercart.name,
|
|
10414
|
+
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue26 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue26 === void 0 || (_fetchcustomercartQue26 = _fetchcustomercartQue26.data) === null || _fetchcustomercartQue26 === void 0 ? void 0 : _fetchcustomercartQue26.customercart.email,
|
|
10415
|
+
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue27 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue27 === void 0 || (_fetchcustomercartQue27 = _fetchcustomercartQue27.data) === null || _fetchcustomercartQue27 === void 0 ? void 0 : _fetchcustomercartQue27.customercart.mobile,
|
|
10416
|
+
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue28 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue28 === void 0 || (_fetchcustomercartQue28 = _fetchcustomercartQue28.data) === null || _fetchcustomercartQue28 === void 0 ? void 0 : _fetchcustomercartQue28.customercart.notes,
|
|
10417
|
+
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 || (_fetchcustomercartQue29 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : _fetchcustomercartQue29.customercart.aff_code,
|
|
10409
10418
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
10410
10419
|
if (data.data.status) {
|
|
10411
|
-
var
|
|
10420
|
+
var _fetchcustomercartQue30, _fetchcustomercartQue31;
|
|
10412
10421
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10413
10422
|
cartarr.data = data.data.cartresponse;
|
|
10414
10423
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
@@ -10416,9 +10425,9 @@ var Checkout = function Checkout(props) {
|
|
|
10416
10425
|
// const cookies = new Cookies();
|
|
10417
10426
|
localStorage.setItem('cdata', data.data.cdata);
|
|
10418
10427
|
}
|
|
10419
|
-
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10428
|
+
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue30 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue30 === void 0 || (_fetchcustomercartQue30 = _fetchcustomercartQue30.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.name.length) < 3) {
|
|
10420
10429
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
10421
|
-
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10430
|
+
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 || (_fetchcustomercartQue31 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : _fetchcustomercartQue31.customercart.mobile.length) < 11) {
|
|
10422
10431
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
10423
10432
|
} else {
|
|
10424
10433
|
AddOrderMutationContext.mutate();
|
|
@@ -10446,7 +10455,7 @@ var Checkout = function Checkout(props) {
|
|
|
10446
10455
|
return isloading;
|
|
10447
10456
|
};
|
|
10448
10457
|
var Mycart = function Mycart() {
|
|
10449
|
-
var
|
|
10458
|
+
var _fetchcustomercartQue32, _fetchcustomercartQue33, _fetchcustomercartQue34, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57;
|
|
10450
10459
|
return /*#__PURE__*/React.createElement("div", {
|
|
10451
10460
|
className: "row m-0 w-100 mb-md-3"
|
|
10452
10461
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -10471,7 +10480,7 @@ var Checkout = function Checkout(props) {
|
|
|
10471
10480
|
className: "row m-0 w-100"
|
|
10472
10481
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10473
10482
|
className: "col-lg-12 p-0"
|
|
10474
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10483
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue32 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue32 === void 0 || (_fetchcustomercartQue32 = _fetchcustomercartQue32.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.cartitems.map(function (item, index) {
|
|
10475
10484
|
if (item.product_extrafields != null) {
|
|
10476
10485
|
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
10477
10486
|
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
@@ -10594,13 +10603,13 @@ var Checkout = function Checkout(props) {
|
|
|
10594
10603
|
type: "text",
|
|
10595
10604
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
10596
10605
|
placeholder: lang.giftcarddicountcode,
|
|
10597
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10606
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.couponname,
|
|
10598
10607
|
onChange: function onChange(event) {
|
|
10599
10608
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10600
10609
|
cartarr.data.customercart.couponname = event.target.value;
|
|
10601
10610
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
10602
10611
|
},
|
|
10603
|
-
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10612
|
+
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue34 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue34 !== void 0 && (_fetchcustomercartQue34 = _fetchcustomercartQue34.data) !== null && _fetchcustomercartQue34 !== void 0 && _fetchcustomercartQue34.customercart.couponexists ? true : false,
|
|
10604
10613
|
style: {
|
|
10605
10614
|
boxShadow: 'none'
|
|
10606
10615
|
}
|
|
@@ -10609,14 +10618,14 @@ var Checkout = function Checkout(props) {
|
|
|
10609
10618
|
}, /*#__PURE__*/React.createElement("button", {
|
|
10610
10619
|
className: " ".concat(checkoutstyles.applybtnstyles),
|
|
10611
10620
|
onClick: function onClick() {
|
|
10612
|
-
var
|
|
10613
|
-
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10614
|
-
var
|
|
10621
|
+
var _fetchcustomercartQue35;
|
|
10622
|
+
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue35 !== void 0 && (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) !== null && _fetchcustomercartQue35 !== void 0 && _fetchcustomercartQue35.customercart.couponexists)) {
|
|
10623
|
+
var _fetchcustomercartQue36, _fetchcustomercartQue37;
|
|
10615
10624
|
var payloadobj = {
|
|
10616
|
-
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10625
|
+
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue36 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue36 === void 0 || (_fetchcustomercartQue36 = _fetchcustomercartQue36.data) === null || _fetchcustomercartQue36 === void 0 ? void 0 : _fetchcustomercartQue36.customercart.couponname,
|
|
10617
10626
|
functype: 'add'
|
|
10618
10627
|
};
|
|
10619
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10628
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue37 === void 0 || (_fetchcustomercartQue37 = _fetchcustomercartQue37.data) === null || _fetchcustomercartQue37 === void 0 ? void 0 : _fetchcustomercartQue37.customercart.couponname.length) != 0) {
|
|
10620
10629
|
ApplyPromoCodeMutationContext.mutate(payloadobj);
|
|
10621
10630
|
} else {
|
|
10622
10631
|
NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
|
|
@@ -10631,14 +10640,14 @@ var Checkout = function Checkout(props) {
|
|
|
10631
10640
|
disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
|
|
10632
10641
|
}, /*#__PURE__*/React.createElement("span", {
|
|
10633
10642
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
|
|
10634
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10643
|
+
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue38 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue38 !== void 0 && (_fetchcustomercartQue38 = _fetchcustomercartQue38.data) !== null && _fetchcustomercartQue38 !== void 0 && _fetchcustomercartQue38.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React.createElement("div", {
|
|
10635
10644
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeInButton, " ").concat(generalstyles.btn_preloader) + ' d-flex align-items-center justify-content-center ' : "".concat(generalstyles.fadeOutButton) + ' align-items-center justify-content-center '
|
|
10636
10645
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
10637
10646
|
color: "#fff",
|
|
10638
10647
|
width: "20px",
|
|
10639
10648
|
height: "20px",
|
|
10640
10649
|
duration: "1s"
|
|
10641
|
-
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10650
|
+
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.data) === null || _fetchcustomercartQue39 === void 0 || (_fetchcustomercartQue39 = _fetchcustomercartQue39.customercart) === null || _fetchcustomercartQue39 === void 0 ? void 0 : _fetchcustomercartQue39.availablewalletbalance) > 0 && /*#__PURE__*/React.createElement("div", {
|
|
10642
10651
|
className: "row m-0 w-100"
|
|
10643
10652
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10644
10653
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -10648,7 +10657,7 @@ var Checkout = function Checkout(props) {
|
|
|
10648
10657
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10649
10658
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10650
10659
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10651
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10660
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue40 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue40 === void 0 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.data) === null || _fetchcustomercartQue40 === void 0 || (_fetchcustomercartQue40 = _fetchcustomercartQue40.customercart) === null || _fetchcustomercartQue40 === void 0 ? void 0 : _fetchcustomercartQue40.availablewalletbalance, langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.data) === null || _fetchcustomercartQue41 === void 0 || (_fetchcustomercartQue41 = _fetchcustomercartQue41.customercart) === null || _fetchcustomercartQue41 === void 0 ? void 0 : _fetchcustomercartQue41.usewalletpoints) == 0 && /*#__PURE__*/React.createElement("div", {
|
|
10652
10661
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
10653
10662
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10654
10663
|
style: {
|
|
@@ -10658,7 +10667,7 @@ var Checkout = function Checkout(props) {
|
|
|
10658
10667
|
onClick: function onClick() {
|
|
10659
10668
|
usewalletpoints();
|
|
10660
10669
|
}
|
|
10661
|
-
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10670
|
+
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue42 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue42 === void 0 || (_fetchcustomercartQue42 = _fetchcustomercartQue42.data) === null || _fetchcustomercartQue42 === void 0 || (_fetchcustomercartQue42 = _fetchcustomercartQue42.customercart) === null || _fetchcustomercartQue42 === void 0 ? void 0 : _fetchcustomercartQue42.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
10662
10671
|
className: "row m-0 w-100"
|
|
10663
10672
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10664
10673
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
@@ -10680,9 +10689,9 @@ var Checkout = function Checkout(props) {
|
|
|
10680
10689
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10681
10690
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10682
10691
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10683
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10692
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue43 === void 0 || (_fetchcustomercartQue43 = _fetchcustomercartQue43.data) === null || _fetchcustomercartQue43 === void 0 ? void 0 : _fetchcustomercartQue43.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue44 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.data) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.customercart) === null || _fetchcustomercartQue44 === void 0 || (_fetchcustomercartQue44 = _fetchcustomercartQue44.genpayments) === null || _fetchcustomercartQue44 === void 0 ? void 0 : _fetchcustomercartQue44.length) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10684
10693
|
className: "row m-0 w-100"
|
|
10685
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10694
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.data) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.customercart) === null || _fetchcustomercartQue45 === void 0 || (_fetchcustomercartQue45 = _fetchcustomercartQue45.genpayments) === null || _fetchcustomercartQue45 === void 0 ? void 0 : _fetchcustomercartQue45.map(function (item, index) {
|
|
10686
10695
|
return /*#__PURE__*/React.createElement("div", {
|
|
10687
10696
|
"class": "col-lg-12 p-0"
|
|
10688
10697
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -10702,7 +10711,7 @@ var Checkout = function Checkout(props) {
|
|
|
10702
10711
|
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
10703
10712
|
}
|
|
10704
10713
|
}, item.addsubtype == 'subtract' && /*#__PURE__*/React.createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.value, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React.createElement("span", null, item.value, "%")))));
|
|
10705
|
-
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10714
|
+
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue46 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.data) === null || _fetchcustomercartQue46 === void 0 || (_fetchcustomercartQue46 = _fetchcustomercartQue46.customercart) === null || _fetchcustomercartQue46 === void 0 ? void 0 : _fetchcustomercartQue46.usewalletpoints) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
10706
10715
|
className: "row m-0 w-100"
|
|
10707
10716
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10708
10717
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -10715,7 +10724,7 @@ var Checkout = function Checkout(props) {
|
|
|
10715
10724
|
style: {
|
|
10716
10725
|
color: 'red'
|
|
10717
10726
|
}
|
|
10718
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10727
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue47 === void 0 || (_fetchcustomercartQue47 = _fetchcustomercartQue47.customercart) === null || _fetchcustomercartQue47 === void 0 ? void 0 : _fetchcustomercartQue47.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue48 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue48 === void 0 || (_fetchcustomercartQue48 = _fetchcustomercartQue48.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue49 === void 0 || (_fetchcustomercartQue49 = _fetchcustomercartQue49.data) === null || _fetchcustomercartQue49 === void 0 ? void 0 : _fetchcustomercartQue49.customercart.discountprice) != 0 && /*#__PURE__*/React.createElement("div", {
|
|
10719
10728
|
className: "col-lg-12 p-0 mb-1"
|
|
10720
10729
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10721
10730
|
className: "row m-0 w-100"
|
|
@@ -10727,7 +10736,7 @@ var Checkout = function Checkout(props) {
|
|
|
10727
10736
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10728
10737
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10729
10738
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-left '
|
|
10730
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10739
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue50 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue50 === void 0 || (_fetchcustomercartQue50 = _fetchcustomercartQue50.data) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.customercart.discountprice) != 0 && /*#__PURE__*/React.createElement("span", null, "- ", langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 || (_fetchcustomercartQue51 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : _fetchcustomercartQue51.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue52 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue52 === void 0 || (_fetchcustomercartQue52 = _fetchcustomercartQue52.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.discountprice) == 0 && /*#__PURE__*/React.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10731
10740
|
className: "col-lg-12 p-0"
|
|
10732
10741
|
}, /*#__PURE__*/React.createElement("div", {
|
|
10733
10742
|
className: "row m-0 w-100"
|
|
@@ -10735,11 +10744,11 @@ var Checkout = function Checkout(props) {
|
|
|
10735
10744
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
10736
10745
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10737
10746
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
10738
|
-
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10747
|
+
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 || (_fetchcustomercartQue53 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : _fetchcustomercartQue53.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
|
|
10739
10748
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10740
10749
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10741
10750
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10742
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10751
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue54 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue54 === void 0 || (_fetchcustomercartQue54 = _fetchcustomercartQue54.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue55 !== void 0 && (_fetchcustomercartQue55 = _fetchcustomercartQue55.data) !== null && _fetchcustomercartQue55 !== void 0 && _fetchcustomercartQue55.customercart.zoneexists) && /*#__PURE__*/React.createElement("div", {
|
|
10743
10752
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10744
10753
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10745
10754
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -10778,7 +10787,7 @@ var Checkout = function Checkout(props) {
|
|
|
10778
10787
|
textTransform: sectionproperties.total_texttransform,
|
|
10779
10788
|
color: sectionproperties.total_color
|
|
10780
10789
|
}
|
|
10781
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10790
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue56 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue56 === void 0 || (_fetchcustomercartQue56 = _fetchcustomercartQue56.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.customercart.totalpriceafterdiscount).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))))), sectionproperties.slideshowtext1_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10782
10791
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
10783
10792
|
style: {
|
|
10784
10793
|
background: '#eee',
|
|
@@ -10813,7 +10822,7 @@ var Checkout = function Checkout(props) {
|
|
|
10813
10822
|
width: "20px",
|
|
10814
10823
|
height: "20px",
|
|
10815
10824
|
duration: "1s"
|
|
10816
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10825
|
+
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 || (_fetchcustomercartQue57 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : _fetchcustomercartQue57.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? langdetect == 'en' ? sectionproperties.checkoutbtn_en2 : sectionproperties.checkoutbtn_ar2 : langdetect == 'en' ? sectionproperties.checkoutbtn_en2 + ' ' + lang.asaguest : sectionproperties.checkoutbtn_ar2 + ' ' + lang.asaguest : '')), authdetailsContext.loggedin == false && sectionproperties.loginbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10817
10826
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
|
|
10818
10827
|
style: {
|
|
10819
10828
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
@@ -10980,7 +10989,7 @@ var Checkout = function Checkout(props) {
|
|
|
10980
10989
|
}, lang.name), /*#__PURE__*/React.createElement("input", {
|
|
10981
10990
|
type: 'text',
|
|
10982
10991
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
10983
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10992
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue58 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue58 === void 0 || (_fetchcustomercartQue58 = _fetchcustomercartQue58.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.name,
|
|
10984
10993
|
onChange: function onChange(event) {
|
|
10985
10994
|
cartinfoupdater('name', event.target.value);
|
|
10986
10995
|
},
|
|
@@ -10995,7 +11004,7 @@ var Checkout = function Checkout(props) {
|
|
|
10995
11004
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
|
|
10996
11005
|
type: 'text',
|
|
10997
11006
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
10998
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11007
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 || (_fetchcustomercartQue59 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : _fetchcustomercartQue59.customercart.mobile,
|
|
10999
11008
|
onChange: function onChange(event) {
|
|
11000
11009
|
cartinfoupdater('mobile', event.target.value);
|
|
11001
11010
|
},
|
|
@@ -11010,7 +11019,7 @@ var Checkout = function Checkout(props) {
|
|
|
11010
11019
|
}, lang.email), /*#__PURE__*/React.createElement("input", {
|
|
11011
11020
|
type: 'text',
|
|
11012
11021
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11013
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11022
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue60 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue60 === void 0 || (_fetchcustomercartQue60 = _fetchcustomercartQue60.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.email,
|
|
11014
11023
|
onChange: function onChange(event) {
|
|
11015
11024
|
cartinfoupdater('email', event.target.value);
|
|
11016
11025
|
},
|
|
@@ -11054,8 +11063,8 @@ var Checkout = function Checkout(props) {
|
|
|
11054
11063
|
return option.id;
|
|
11055
11064
|
},
|
|
11056
11065
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
11057
|
-
var
|
|
11058
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11066
|
+
var _fetchcustomercartQue61;
|
|
11067
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 || (_fetchcustomercartQue61 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : _fetchcustomercartQue61.customercart.countryid);
|
|
11059
11068
|
}),
|
|
11060
11069
|
onChange: function onChange(option) {
|
|
11061
11070
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -11100,12 +11109,12 @@ var Checkout = function Checkout(props) {
|
|
|
11100
11109
|
return option.id;
|
|
11101
11110
|
},
|
|
11102
11111
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
11103
|
-
var
|
|
11104
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11112
|
+
var _fetchcustomercartQue62;
|
|
11113
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue62 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue62 === void 0 || (_fetchcustomercartQue62 = _fetchcustomercartQue62.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.stateid);
|
|
11105
11114
|
}),
|
|
11106
11115
|
onChange: function onChange(option) {
|
|
11107
|
-
var
|
|
11108
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11116
|
+
var _fetchcustomercartQue63;
|
|
11117
|
+
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 || (_fetchcustomercartQue63 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : _fetchcustomercartQue63.customercart.countryid.length) != 0) {
|
|
11109
11118
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
|
|
11110
11119
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11111
11120
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -11148,8 +11157,8 @@ var Checkout = function Checkout(props) {
|
|
|
11148
11157
|
return option.id;
|
|
11149
11158
|
},
|
|
11150
11159
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
11151
|
-
var
|
|
11152
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11160
|
+
var _fetchcustomercartQue64;
|
|
11161
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue64 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue64 === void 0 || (_fetchcustomercartQue64 = _fetchcustomercartQue64.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.cityid);
|
|
11153
11162
|
}),
|
|
11154
11163
|
onChange: function onChange(option) {
|
|
11155
11164
|
cartinfoupdater('cityid', option.id);
|
|
@@ -11164,7 +11173,7 @@ var Checkout = function Checkout(props) {
|
|
|
11164
11173
|
}, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
11165
11174
|
type: 'text',
|
|
11166
11175
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11167
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11176
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 || (_fetchcustomercartQue65 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : _fetchcustomercartQue65.customercart.address,
|
|
11168
11177
|
onChange: function onChange(event) {
|
|
11169
11178
|
cartinfoupdater('address', event.target.value);
|
|
11170
11179
|
},
|
|
@@ -11179,7 +11188,7 @@ var Checkout = function Checkout(props) {
|
|
|
11179
11188
|
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
11180
11189
|
type: 'text',
|
|
11181
11190
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11182
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11191
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue66 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue66 === void 0 || (_fetchcustomercartQue66 = _fetchcustomercartQue66.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.notes,
|
|
11183
11192
|
onChange: function onChange(event) {
|
|
11184
11193
|
cartinfoupdater('notes', event.target.value);
|
|
11185
11194
|
},
|
|
@@ -11194,7 +11203,7 @@ var Checkout = function Checkout(props) {
|
|
|
11194
11203
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React.createElement("input", {
|
|
11195
11204
|
type: 'number',
|
|
11196
11205
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11197
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11206
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue67 === void 0 || (_fetchcustomercartQue67 = _fetchcustomercartQue67.customercart) === null || _fetchcustomercartQue67 === void 0 ? void 0 : _fetchcustomercartQue67.aff_code,
|
|
11198
11207
|
onChange: function onChange(event) {
|
|
11199
11208
|
cartinfoupdater('aff_code', event.target.value);
|
|
11200
11209
|
},
|
|
@@ -11202,7 +11211,64 @@ var Checkout = function Checkout(props) {
|
|
|
11202
11211
|
resize: 'none',
|
|
11203
11212
|
boxShadow: 'none'
|
|
11204
11213
|
}
|
|
11205
|
-
}))))), sectionproperties.
|
|
11214
|
+
}))))), sectionproperties.showshippingmethod == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11215
|
+
className: "col-lg-12 p-0 w-100"
|
|
11216
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11217
|
+
"class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
|
|
11218
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11219
|
+
className: "col-lg-12 pl-3 pr-3 pt-2"
|
|
11220
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
11221
|
+
className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
|
|
11222
|
+
}, langdetect == 'en' ? 'Shipping Method' : 'طريقة الشحن')), /*#__PURE__*/React.createElement("div", {
|
|
11223
|
+
className: "col-lg-12 p-0"
|
|
11224
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
11225
|
+
className: "mt-2 mb-2"
|
|
11226
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
11227
|
+
className: "row m-0 w-100 mb-3 pl-3 pr-3"
|
|
11228
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
11229
|
+
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
11230
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
11231
|
+
className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
|
|
11232
|
+
"for": "codcheckbox"
|
|
11233
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
11234
|
+
id: 'codcheckbox',
|
|
11235
|
+
type: "checkbox",
|
|
11236
|
+
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11237
|
+
checked: land == true ? true : false,
|
|
11238
|
+
onChange: function onChange() {
|
|
11239
|
+
setland(true);
|
|
11240
|
+
setair(false);
|
|
11241
|
+
}
|
|
11242
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
11243
|
+
viewBox: "0 0 21 21",
|
|
11244
|
+
className: checkoutstyles.svgstyles + ' h-100 '
|
|
11245
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
11246
|
+
d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
|
|
11247
|
+
})), /*#__PURE__*/React.createElement("p", {
|
|
11248
|
+
className: ' ml-2 mb-0 cursor-pointer wordbreak mr-2',
|
|
11249
|
+
style: {
|
|
11250
|
+
color: sectionproperties.checkbox_color
|
|
11251
|
+
}
|
|
11252
|
+
}, langdetect == 'en' ? 'Land Shipping' : 'شحن بري'))), /*#__PURE__*/React.createElement("div", {
|
|
11253
|
+
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
11254
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
11255
|
+
className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
11256
|
+
}, /*#__PURE__*/React.createElement("input", {
|
|
11257
|
+
type: "checkbox",
|
|
11258
|
+
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11259
|
+
checked: air == true ? true : false,
|
|
11260
|
+
onChange: function onChange() {
|
|
11261
|
+
setland(false);
|
|
11262
|
+
setair(true);
|
|
11263
|
+
}
|
|
11264
|
+
}), /*#__PURE__*/React.createElement("svg", {
|
|
11265
|
+
viewBox: "0 0 21 21",
|
|
11266
|
+
className: checkoutstyles.svgstyles + ' h-100 '
|
|
11267
|
+
}, /*#__PURE__*/React.createElement("path", {
|
|
11268
|
+
d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
|
|
11269
|
+
})), /*#__PURE__*/React.createElement("p", {
|
|
11270
|
+
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
11271
|
+
}, " ", langdetect == 'en' ? 'Air Shipping' : 'شحن جوي')))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11206
11272
|
className: "col-lg-12 p-0 w-100"
|
|
11207
11273
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11208
11274
|
"class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
|
|
@@ -11225,10 +11291,10 @@ var Checkout = function Checkout(props) {
|
|
|
11225
11291
|
id: 'codcheckbox',
|
|
11226
11292
|
type: "checkbox",
|
|
11227
11293
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11228
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11294
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 || (_fetchcustomercartQue68 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.paymentmethod) == 'cod' ? true : false,
|
|
11229
11295
|
onChange: function onChange() {
|
|
11230
|
-
var
|
|
11231
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11296
|
+
var _fetchcustomercartQue69;
|
|
11297
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 || (_fetchcustomercartQue69 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : _fetchcustomercartQue69.customercart.paymentmethod) != 'cod') {
|
|
11232
11298
|
cartinfoupdater('paymentmethod', 'cod');
|
|
11233
11299
|
}
|
|
11234
11300
|
}
|
|
@@ -11249,10 +11315,10 @@ var Checkout = function Checkout(props) {
|
|
|
11249
11315
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11250
11316
|
type: "checkbox",
|
|
11251
11317
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11252
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11318
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue70 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue70 === void 0 || (_fetchcustomercartQue70 = _fetchcustomercartQue70.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.paymentmethod) == 'cardondelivery' ? true : false,
|
|
11253
11319
|
onChange: function onChange() {
|
|
11254
|
-
var
|
|
11255
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11320
|
+
var _fetchcustomercartQue71;
|
|
11321
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 || (_fetchcustomercartQue71 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : _fetchcustomercartQue71.customercart.paymentmethod) != 'cardondelivery') {
|
|
11256
11322
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
11257
11323
|
}
|
|
11258
11324
|
}
|
|
@@ -11270,10 +11336,10 @@ var Checkout = function Checkout(props) {
|
|
|
11270
11336
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11271
11337
|
type: "checkbox",
|
|
11272
11338
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11273
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11339
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue72 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue72 === void 0 || (_fetchcustomercartQue72 = _fetchcustomercartQue72.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.paymentmethod) == 'onlinepayment' ? true : false,
|
|
11274
11340
|
onChange: function onChange() {
|
|
11275
|
-
var
|
|
11276
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11341
|
+
var _fetchcustomercartQue73;
|
|
11342
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 || (_fetchcustomercartQue73 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : _fetchcustomercartQue73.customercart.paymentmethod) != 'onlinepayment') {
|
|
11277
11343
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
11278
11344
|
}
|
|
11279
11345
|
}
|
|
@@ -11291,10 +11357,10 @@ var Checkout = function Checkout(props) {
|
|
|
11291
11357
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11292
11358
|
type: "checkbox",
|
|
11293
11359
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11294
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11360
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue74 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue74 === void 0 || (_fetchcustomercartQue74 = _fetchcustomercartQue74.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.customercart.paymentmethod) == 'valU' ? true : false,
|
|
11295
11361
|
onChange: function onChange() {
|
|
11296
|
-
var
|
|
11297
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11362
|
+
var _fetchcustomercartQue75;
|
|
11363
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 || (_fetchcustomercartQue75 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.customercart.paymentmethod) != 'valU') {
|
|
11298
11364
|
cartinfoupdater('paymentmethod', 'valU');
|
|
11299
11365
|
}
|
|
11300
11366
|
}
|
|
@@ -11312,10 +11378,10 @@ var Checkout = function Checkout(props) {
|
|
|
11312
11378
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11313
11379
|
type: "checkbox",
|
|
11314
11380
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11315
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11381
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 || (_fetchcustomercartQue76 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.paymentmethod) == 'mobilewallet' ? true : false,
|
|
11316
11382
|
onChange: function onChange() {
|
|
11317
|
-
var
|
|
11318
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11383
|
+
var _fetchcustomercartQue77;
|
|
11384
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 || (_fetchcustomercartQue77 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : _fetchcustomercartQue77.customercart.paymentmethod) != 'mobilewallet') {
|
|
11319
11385
|
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
11320
11386
|
}
|
|
11321
11387
|
}
|
|
@@ -11333,10 +11399,10 @@ var Checkout = function Checkout(props) {
|
|
|
11333
11399
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11334
11400
|
type: "checkbox",
|
|
11335
11401
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11336
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11402
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue78 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.data) === null || _fetchcustomercartQue78 === void 0 || (_fetchcustomercartQue78 = _fetchcustomercartQue78.customercart) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.paymentmethod) == 'forsa' ? true : false,
|
|
11337
11403
|
onChange: function onChange() {
|
|
11338
|
-
var
|
|
11339
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11404
|
+
var _fetchcustomercartQue79;
|
|
11405
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue79 === void 0 || (_fetchcustomercartQue79 = _fetchcustomercartQue79.customercart) === null || _fetchcustomercartQue79 === void 0 ? void 0 : _fetchcustomercartQue79.paymentmethod) != 'forsa') {
|
|
11340
11406
|
cartinfoupdater('paymentmethod', 'forsa');
|
|
11341
11407
|
}
|
|
11342
11408
|
}
|
|
@@ -11354,10 +11420,10 @@ var Checkout = function Checkout(props) {
|
|
|
11354
11420
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11355
11421
|
type: "checkbox",
|
|
11356
11422
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11357
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11423
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue80 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.data) === null || _fetchcustomercartQue80 === void 0 || (_fetchcustomercartQue80 = _fetchcustomercartQue80.customercart) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.paymentmethod) == 'bankinstallments' ? true : false,
|
|
11358
11424
|
onChange: function onChange() {
|
|
11359
|
-
var
|
|
11360
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11425
|
+
var _fetchcustomercartQue81;
|
|
11426
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue81 === void 0 || (_fetchcustomercartQue81 = _fetchcustomercartQue81.customercart) === null || _fetchcustomercartQue81 === void 0 ? void 0 : _fetchcustomercartQue81.paymentmethod) != 'bankinstallments') {
|
|
11361
11427
|
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
11362
11428
|
}
|
|
11363
11429
|
}
|
|
@@ -11375,10 +11441,10 @@ var Checkout = function Checkout(props) {
|
|
|
11375
11441
|
}, /*#__PURE__*/React.createElement("input", {
|
|
11376
11442
|
type: "checkbox",
|
|
11377
11443
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11378
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11444
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue82 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue82 === void 0 || (_fetchcustomercartQue82 = _fetchcustomercartQue82.data) === null || _fetchcustomercartQue82 === void 0 || (_fetchcustomercartQue82 = _fetchcustomercartQue82.customercart) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.paymentmethod) == 'Aman' ? true : false,
|
|
11379
11445
|
onChange: function onChange() {
|
|
11380
|
-
var
|
|
11381
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11446
|
+
var _fetchcustomercartQue83;
|
|
11447
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 || (_fetchcustomercartQue83 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue83 === void 0 || (_fetchcustomercartQue83 = _fetchcustomercartQue83.customercart) === null || _fetchcustomercartQue83 === void 0 ? void 0 : _fetchcustomercartQue83.paymentmethod) != 'Aman') {
|
|
11382
11448
|
cartinfoupdater('paymentmethod', 'Aman');
|
|
11383
11449
|
}
|
|
11384
11450
|
}
|
|
@@ -11389,7 +11455,7 @@ var Checkout = function Checkout(props) {
|
|
|
11389
11455
|
d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
|
|
11390
11456
|
})), /*#__PURE__*/React.createElement("p", {
|
|
11391
11457
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
11392
|
-
}, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11458
|
+
}, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue84 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue84 === void 0 || (_fetchcustomercartQue84 = _fetchcustomercartQue84.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React.createElement("div", {
|
|
11393
11459
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
11394
11460
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11395
11461
|
style: {
|
|
@@ -22359,7 +22425,36 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
22359
22425
|
color: sectionproperties.cart_BtnTextcolor_resp
|
|
22360
22426
|
})))), sectionproperties.logocentered == 'Not Centered' && /*#__PURE__*/React.createElement("div", {
|
|
22361
22427
|
className: "col-md-6 col-sm-6 d-flex filter align-items-center p-0"
|
|
22362
|
-
},
|
|
22428
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
22429
|
+
style: {
|
|
22430
|
+
width: sectionproperties.cart_BtnWidth_resp + 'px',
|
|
22431
|
+
height: sectionproperties.cart_BtnHeight_resp + 'px'
|
|
22432
|
+
},
|
|
22433
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
22434
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
22435
|
+
"class": ' h-100 allcentered ',
|
|
22436
|
+
style: {
|
|
22437
|
+
color: sectionproperties.cart_BtnTextcolor_resp
|
|
22438
|
+
},
|
|
22439
|
+
onClick: function onClick() {
|
|
22440
|
+
if (sectionproperties.responsiveheaderstyle == 'Style 2') {
|
|
22441
|
+
if (menuactive == true) {
|
|
22442
|
+
setmenuactive(false);
|
|
22443
|
+
} else {
|
|
22444
|
+
setmenuactive(true);
|
|
22445
|
+
}
|
|
22446
|
+
} else {
|
|
22447
|
+
setopenmenuCanvas(true);
|
|
22448
|
+
setactiveTab('menu');
|
|
22449
|
+
}
|
|
22450
|
+
}
|
|
22451
|
+
}, menuactive == false && /*#__PURE__*/React.createElement(FiMenu, {
|
|
22452
|
+
size: 20,
|
|
22453
|
+
color: sectionproperties.cart_BtnTextcolor_resp
|
|
22454
|
+
}), menuactive == true && /*#__PURE__*/React.createElement(AiOutlineClose, {
|
|
22455
|
+
size: 20,
|
|
22456
|
+
color: sectionproperties.cart_BtnTextcolor_resp
|
|
22457
|
+
}))), InstLogoContainer()), sectionproperties.logocentered == 'Centered' && /*#__PURE__*/React.createElement("div", {
|
|
22363
22458
|
className: "col-md-4 col-sm-6 allcentered p-0"
|
|
22364
22459
|
}, InstLogoContainer()), /*#__PURE__*/React.createElement("div", {
|
|
22365
22460
|
className: sectionproperties.logocentered != 'Centered' ? 'col-md-6 col-sm-6 d-flex align-items-center justify-content-end p-0' : 'col-md-4 col-sm-3 d-flex align-items-center justify-content-end p-0'
|
|
@@ -22465,7 +22560,31 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
22465
22560
|
className: "h-100 allcentered"
|
|
22466
22561
|
}, /*#__PURE__*/React.createElement(BiChevronDown, {
|
|
22467
22562
|
size: 20
|
|
22468
|
-
}))))
|
|
22563
|
+
})))), sectionproperties.logocentered == 'Not Centered' && sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
22564
|
+
"class": langdetect == 'en' ? ' allcentered m-0 cursor-pointer ml-1 ' : ' m-0 cursor-pointer mr-1 ',
|
|
22565
|
+
style: {
|
|
22566
|
+
minWidth: '30px'
|
|
22567
|
+
},
|
|
22568
|
+
onClick: function onClick() {
|
|
22569
|
+
if (langdetect == 'en') {
|
|
22570
|
+
setlang('ar');
|
|
22571
|
+
} else {
|
|
22572
|
+
setlang('en');
|
|
22573
|
+
}
|
|
22574
|
+
}
|
|
22575
|
+
}, langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
|
|
22576
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 allcentered w-100 '
|
|
22577
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
22578
|
+
"class": "m-0 p-0 d-flex align-items-center w-100"
|
|
22579
|
+
}, "En", ' ', /*#__PURE__*/React.createElement("i", {
|
|
22580
|
+
"class": "h-100 allcentered ml-auto pl-3"
|
|
22581
|
+
}, /*#__PURE__*/React.createElement(BsChevronDown, null)))), langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
|
|
22582
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 allcentered w-100 '
|
|
22583
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
22584
|
+
"class": "m-0 p-0 d-flex align-items-center w-100"
|
|
22585
|
+
}, "\u0639", ' ', /*#__PURE__*/React.createElement("i", {
|
|
22586
|
+
"class": "h-100 allcentered mr-auto pr-3"
|
|
22587
|
+
}, /*#__PURE__*/React.createElement(BsChevronDown, null)))))), menuactive == true && /*#__PURE__*/React.createElement("div", {
|
|
22469
22588
|
"class": "px-4 py-4 scrollvertical",
|
|
22470
22589
|
style: {
|
|
22471
22590
|
position: 'fixed',
|
|
@@ -69532,7 +69651,7 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
|
|
|
69532
69651
|
})
|
|
69533
69652
|
};
|
|
69534
69653
|
return /*#__PURE__*/React.createElement("div", {
|
|
69535
|
-
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard)
|
|
69654
|
+
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard, " ").concat(cardstyles$1.container, " ") + ' w-100 ' : "".concat(card_cssstyles.productcard, " ").concat(cardstyles$1.container, " ")
|
|
69536
69655
|
// class={`${cardstyles.container} ${card_cssstyles.container}` + ' row m-0 w-100 '}
|
|
69537
69656
|
,
|
|
69538
69657
|
style: {
|
|
@@ -69682,9 +69801,7 @@ var Classiccategorycard = function Classiccategorycard(props) {
|
|
|
69682
69801
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
69683
69802
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
69684
69803
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
69685
|
-
marginBottom: sectionproperties.
|
|
69686
|
-
marginLeft: langdetect == 'en' ? sectionproperties.image_marginleft + 'px' : sectionproperties.image_marginright + 'px',
|
|
69687
|
-
marginRight: langdetect == 'en' ? sectionproperties.image_marginright + 'px' : sectionproperties.image_marginleft + 'px',
|
|
69804
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
69688
69805
|
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
69689
69806
|
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.image_width + 'px',
|
|
69690
69807
|
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.image_width + 'px',
|
|
@@ -69736,13 +69853,7 @@ var Classiccategorycard = function Classiccategorycard(props) {
|
|
|
69736
69853
|
style: {
|
|
69737
69854
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
69738
69855
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
69739
|
-
}
|
|
69740
|
-
// class={
|
|
69741
|
-
// sectionproperties.image_height > 550
|
|
69742
|
-
// ? `${card_cssstyles.imagestyle} ${productcardsstyles.productcard}` + ' p-0 h-md-300 '
|
|
69743
|
-
// : `${card_cssstyles.imagestyle} ${productcardsstyles.productcard}` + ' p-0 '
|
|
69744
|
-
// }
|
|
69745
|
-
,
|
|
69856
|
+
},
|
|
69746
69857
|
onClick: function onClick() {
|
|
69747
69858
|
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
69748
69859
|
}
|