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.cjs.js
CHANGED
|
@@ -118,6 +118,7 @@ var IoSearchOutline = require('@react-icons/all-files/io5/IoSearchOutline');
|
|
|
118
118
|
var AiFillYoutube = require('@react-icons/all-files/ai/AiFillYoutube');
|
|
119
119
|
var IoLogoTiktok = require('@react-icons/all-files/io5/IoLogoTiktok');
|
|
120
120
|
var FiMenu = require('@react-icons/all-files/fi/FiMenu');
|
|
121
|
+
var BsChevronDown = require('@react-icons/all-files/bs/BsChevronDown');
|
|
121
122
|
var IoClose = require('@react-icons/all-files/io5/IoClose');
|
|
122
123
|
var BiSearch = require('@react-icons/all-files/bi/BiSearch');
|
|
123
124
|
var FiUser = require('@react-icons/all-files/fi/FiUser');
|
|
@@ -129,7 +130,6 @@ var BsSearch = require('@react-icons/all-files/bs/BsSearch');
|
|
|
129
130
|
var AiOutlinePhone = require('@react-icons/all-files/ai/AiOutlinePhone');
|
|
130
131
|
var GoSearch = require('@react-icons/all-files/go/GoSearch');
|
|
131
132
|
var AiOutlineInstagram = require('@react-icons/all-files/ai/AiOutlineInstagram');
|
|
132
|
-
var BsChevronDown = require('@react-icons/all-files/bs/BsChevronDown');
|
|
133
133
|
var RiUserSettingsLine = require('@react-icons/all-files/ri/RiUserSettingsLine');
|
|
134
134
|
var HiUserCircle = require('@react-icons/all-files/hi/HiUserCircle');
|
|
135
135
|
var MdKeyboardArrowUp = require('@react-icons/all-files/md/MdKeyboardArrowUp');
|
|
@@ -10116,7 +10116,7 @@ var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
|
10116
10116
|
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
10117
10117
|
});
|
|
10118
10118
|
var Checkout = function Checkout(props) {
|
|
10119
|
-
var _css, _checkoutstyles, _ref,
|
|
10119
|
+
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;
|
|
10120
10120
|
var _useState = React.useState(null),
|
|
10121
10121
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
10122
10122
|
_useState2[0];
|
|
@@ -10155,6 +10155,14 @@ var Checkout = function Checkout(props) {
|
|
|
10155
10155
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
10156
10156
|
insthasaffiliate = _useState8[0],
|
|
10157
10157
|
setinsthasaffiliate = _useState8[1];
|
|
10158
|
+
var _useState9 = React.useState(false),
|
|
10159
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
10160
|
+
land = _useState10[0],
|
|
10161
|
+
setland = _useState10[1];
|
|
10162
|
+
var _useState11 = React.useState(false),
|
|
10163
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
10164
|
+
air = _useState12[0],
|
|
10165
|
+
setair = _useState12[1];
|
|
10158
10166
|
React.useEffect(function () {
|
|
10159
10167
|
var _templatepropcontext$;
|
|
10160
10168
|
var cartindex = templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
|
|
@@ -10223,7 +10231,7 @@ var Checkout = function Checkout(props) {
|
|
|
10223
10231
|
});
|
|
10224
10232
|
}, [authdetailsContext]);
|
|
10225
10233
|
var cartinfoupdater = function cartinfoupdater(key, value) {
|
|
10226
|
-
var _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18;
|
|
10234
|
+
var _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14, _fetchcustomercartQue15, _fetchcustomercartQue16, _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19;
|
|
10227
10235
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10228
10236
|
cartarr.data.customercart[key] = value;
|
|
10229
10237
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
@@ -10237,7 +10245,8 @@ var Checkout = function Checkout(props) {
|
|
|
10237
10245
|
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,
|
|
10238
10246
|
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,
|
|
10239
10247
|
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,
|
|
10240
|
-
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
|
|
10248
|
+
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,
|
|
10249
|
+
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
|
|
10241
10250
|
};
|
|
10242
10251
|
if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email' || key == 'notes' || key == 'aff_code') ; else {
|
|
10243
10252
|
ChooseState_CountryMutationContext.mutate(payloadobj);
|
|
@@ -10436,7 +10445,7 @@ var Checkout = function Checkout(props) {
|
|
|
10436
10445
|
})), _checkoutstyles);
|
|
10437
10446
|
var addorderfuncrunner = function addorderfuncrunner() {
|
|
10438
10447
|
return (_ref = _ref || _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
|
|
10439
|
-
var
|
|
10448
|
+
var _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29;
|
|
10440
10449
|
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) {
|
|
10441
10450
|
while (1) switch (_context.prev = _context.next) {
|
|
10442
10451
|
case 0:
|
|
@@ -10445,19 +10454,19 @@ var Checkout = function Checkout(props) {
|
|
|
10445
10454
|
// temppayload.endpointurl = '/ChooseState_Country';
|
|
10446
10455
|
GeneralAPIMutationContext.mutate({
|
|
10447
10456
|
endpointurl: '/ChooseState_Country',
|
|
10448
|
-
stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10449
|
-
countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10450
|
-
cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10451
|
-
address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10452
|
-
paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10453
|
-
name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10454
|
-
email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10455
|
-
mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10456
|
-
notes: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10457
|
-
aff_code: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10457
|
+
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,
|
|
10458
|
+
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,
|
|
10459
|
+
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,
|
|
10460
|
+
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,
|
|
10461
|
+
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,
|
|
10462
|
+
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,
|
|
10463
|
+
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,
|
|
10464
|
+
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,
|
|
10465
|
+
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,
|
|
10466
|
+
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,
|
|
10458
10467
|
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
10459
10468
|
if (data.data.status) {
|
|
10460
|
-
var
|
|
10469
|
+
var _fetchcustomercartQue30, _fetchcustomercartQue31;
|
|
10461
10470
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10462
10471
|
cartarr.data = data.data.cartresponse;
|
|
10463
10472
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
@@ -10465,9 +10474,9 @@ var Checkout = function Checkout(props) {
|
|
|
10465
10474
|
// const cookies = new Cookies();
|
|
10466
10475
|
localStorage.setItem('cdata', data.data.cdata);
|
|
10467
10476
|
}
|
|
10468
|
-
if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10477
|
+
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) {
|
|
10469
10478
|
NotificationManager.warning('', langdetect == 'en' ? 'Write your full name' : 'اكتب الاسم كاملا');
|
|
10470
|
-
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10479
|
+
} 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) {
|
|
10471
10480
|
NotificationManager.warning('', langdetect == 'en' ? 'Write valid mobile number' : 'اكتب رقم تليفون صحيح');
|
|
10472
10481
|
} else {
|
|
10473
10482
|
AddOrderMutationContext.mutate();
|
|
@@ -10495,7 +10504,7 @@ var Checkout = function Checkout(props) {
|
|
|
10495
10504
|
return isloading;
|
|
10496
10505
|
};
|
|
10497
10506
|
var Mycart = function Mycart() {
|
|
10498
|
-
var
|
|
10507
|
+
var _fetchcustomercartQue32, _fetchcustomercartQue33, _fetchcustomercartQue34, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57;
|
|
10499
10508
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10500
10509
|
className: "row m-0 w-100 mb-md-3"
|
|
10501
10510
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -10520,7 +10529,7 @@ var Checkout = function Checkout(props) {
|
|
|
10520
10529
|
className: "row m-0 w-100"
|
|
10521
10530
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10522
10531
|
className: "col-lg-12 p-0"
|
|
10523
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10532
|
+
}, 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) {
|
|
10524
10533
|
if (item.product_extrafields != null) {
|
|
10525
10534
|
var product_extrafields = JSON.parse(item.product_extrafields);
|
|
10526
10535
|
// var product_extrafields_parsed = JSON.stringify(product_extrafields);
|
|
@@ -10643,13 +10652,13 @@ var Checkout = function Checkout(props) {
|
|
|
10643
10652
|
type: "text",
|
|
10644
10653
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
10645
10654
|
placeholder: lang.giftcarddicountcode,
|
|
10646
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10655
|
+
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,
|
|
10647
10656
|
onChange: function onChange(event) {
|
|
10648
10657
|
var cartarr = queryClient.getQueryData('fetchcustomercart_API');
|
|
10649
10658
|
cartarr.data.customercart.couponname = event.target.value;
|
|
10650
10659
|
queryClient.setQueryData('fetchcustomercart_API', cartarr);
|
|
10651
10660
|
},
|
|
10652
|
-
disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10661
|
+
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,
|
|
10653
10662
|
style: {
|
|
10654
10663
|
boxShadow: 'none'
|
|
10655
10664
|
}
|
|
@@ -10658,14 +10667,14 @@ var Checkout = function Checkout(props) {
|
|
|
10658
10667
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
10659
10668
|
className: " ".concat(checkoutstyles.applybtnstyles),
|
|
10660
10669
|
onClick: function onClick() {
|
|
10661
|
-
var
|
|
10662
|
-
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10663
|
-
var
|
|
10670
|
+
var _fetchcustomercartQue35;
|
|
10671
|
+
if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue35 !== void 0 && (_fetchcustomercartQue35 = _fetchcustomercartQue35.data) !== null && _fetchcustomercartQue35 !== void 0 && _fetchcustomercartQue35.customercart.couponexists)) {
|
|
10672
|
+
var _fetchcustomercartQue36, _fetchcustomercartQue37;
|
|
10664
10673
|
var payloadobj = {
|
|
10665
|
-
couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10674
|
+
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,
|
|
10666
10675
|
functype: 'add'
|
|
10667
10676
|
};
|
|
10668
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10677
|
+
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) {
|
|
10669
10678
|
ApplyPromoCodeMutationContext.mutate(payloadobj);
|
|
10670
10679
|
} else {
|
|
10671
10680
|
NotificationManager.warning('', langdetect == 'en' ? 'Please Write Your Promo Code' : 'من فضلك اكتب كود الخصم');
|
|
@@ -10680,14 +10689,14 @@ var Checkout = function Checkout(props) {
|
|
|
10680
10689
|
disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
|
|
10681
10690
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
10682
10691
|
className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
|
|
10683
|
-
}, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (
|
|
10692
|
+
}, 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__default["default"].createElement("div", {
|
|
10684
10693
|
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 '
|
|
10685
10694
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
10686
10695
|
color: "#fff",
|
|
10687
10696
|
width: "20px",
|
|
10688
10697
|
height: "20px",
|
|
10689
10698
|
duration: "1s"
|
|
10690
|
-
})))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10699
|
+
})))))), (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__default["default"].createElement("div", {
|
|
10691
10700
|
className: "row m-0 w-100"
|
|
10692
10701
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10693
10702
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -10697,7 +10706,7 @@ var Checkout = function Checkout(props) {
|
|
|
10697
10706
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10698
10707
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10699
10708
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10700
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10709
|
+
}, 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__default["default"].createElement("div", {
|
|
10701
10710
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
10702
10711
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10703
10712
|
style: {
|
|
@@ -10707,7 +10716,7 @@ var Checkout = function Checkout(props) {
|
|
|
10707
10716
|
onClick: function onClick() {
|
|
10708
10717
|
usewalletpoints();
|
|
10709
10718
|
}
|
|
10710
|
-
}, langdetect == 'en' ? 'Use Points' : 'إستخدام النقاط'))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10719
|
+
}, 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__default["default"].createElement("div", {
|
|
10711
10720
|
className: "row m-0 w-100"
|
|
10712
10721
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10713
10722
|
className: "col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0"
|
|
@@ -10729,9 +10738,9 @@ var Checkout = function Checkout(props) {
|
|
|
10729
10738
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10730
10739
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10731
10740
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10732
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10741
|
+
}, 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__default["default"].createElement("div", {
|
|
10733
10742
|
className: "row m-0 w-100"
|
|
10734
|
-
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10743
|
+
}, 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) {
|
|
10735
10744
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10736
10745
|
"class": "col-lg-12 p-0"
|
|
10737
10746
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -10751,7 +10760,7 @@ var Checkout = function Checkout(props) {
|
|
|
10751
10760
|
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
10752
10761
|
}
|
|
10753
10762
|
}, item.addsubtype == 'subtract' && /*#__PURE__*/React__default["default"].createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React__default["default"].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__default["default"].createElement("span", null, item.value, "%")))));
|
|
10754
|
-
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10763
|
+
}))), (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__default["default"].createElement("div", {
|
|
10755
10764
|
className: "row m-0 w-100"
|
|
10756
10765
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10757
10766
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -10764,7 +10773,7 @@ var Checkout = function Checkout(props) {
|
|
|
10764
10773
|
style: {
|
|
10765
10774
|
color: 'red'
|
|
10766
10775
|
}
|
|
10767
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10776
|
+
}, 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__default["default"].createElement("div", {
|
|
10768
10777
|
className: "col-lg-12 p-0 mb-1"
|
|
10769
10778
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10770
10779
|
className: "row m-0 w-100"
|
|
@@ -10776,7 +10785,7 @@ var Checkout = function Checkout(props) {
|
|
|
10776
10785
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10777
10786
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10778
10787
|
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 '
|
|
10779
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10788
|
+
}, (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__default["default"].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__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10780
10789
|
className: "col-lg-12 p-0"
|
|
10781
10790
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
10782
10791
|
className: "row m-0 w-100"
|
|
@@ -10784,11 +10793,11 @@ var Checkout = function Checkout(props) {
|
|
|
10784
10793
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
10785
10794
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10786
10795
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
10787
|
-
}, langdetect == 'en' ? sectionproperties.shippingfeestitle_en : sectionproperties.shippingfeestitle_ar)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10796
|
+
}, 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__default["default"].createElement("div", {
|
|
10788
10797
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10789
10798
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10790
10799
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
10791
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10800
|
+
}, 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__default["default"].createElement("div", {
|
|
10792
10801
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
10793
10802
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
10794
10803
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -10827,7 +10836,7 @@ var Checkout = function Checkout(props) {
|
|
|
10827
10836
|
textTransform: sectionproperties.total_texttransform,
|
|
10828
10837
|
color: sectionproperties.total_color
|
|
10829
10838
|
}
|
|
10830
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10839
|
+
}, 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__default["default"].createElement("div", {
|
|
10831
10840
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
10832
10841
|
style: {
|
|
10833
10842
|
background: '#eee',
|
|
@@ -10862,7 +10871,7 @@ var Checkout = function Checkout(props) {
|
|
|
10862
10871
|
width: "20px",
|
|
10863
10872
|
height: "20px",
|
|
10864
10873
|
duration: "1s"
|
|
10865
|
-
}), !ischeckoutbuttonloading() ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
10874
|
+
}), !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__default["default"].createElement("div", {
|
|
10866
10875
|
className: "col-lg-12 d-flex align-items-center justify-content-center mt-4 p-0 mb-2 mt-sm-3",
|
|
10867
10876
|
style: {
|
|
10868
10877
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
@@ -11029,7 +11038,7 @@ var Checkout = function Checkout(props) {
|
|
|
11029
11038
|
}, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11030
11039
|
type: 'text',
|
|
11031
11040
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11032
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11041
|
+
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,
|
|
11033
11042
|
onChange: function onChange(event) {
|
|
11034
11043
|
cartinfoupdater('name', event.target.value);
|
|
11035
11044
|
},
|
|
@@ -11044,7 +11053,7 @@ var Checkout = function Checkout(props) {
|
|
|
11044
11053
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11045
11054
|
type: 'text',
|
|
11046
11055
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11047
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11056
|
+
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,
|
|
11048
11057
|
onChange: function onChange(event) {
|
|
11049
11058
|
cartinfoupdater('mobile', event.target.value);
|
|
11050
11059
|
},
|
|
@@ -11059,7 +11068,7 @@ var Checkout = function Checkout(props) {
|
|
|
11059
11068
|
}, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11060
11069
|
type: 'text',
|
|
11061
11070
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11062
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11071
|
+
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,
|
|
11063
11072
|
onChange: function onChange(event) {
|
|
11064
11073
|
cartinfoupdater('email', event.target.value);
|
|
11065
11074
|
},
|
|
@@ -11103,8 +11112,8 @@ var Checkout = function Checkout(props) {
|
|
|
11103
11112
|
return option.id;
|
|
11104
11113
|
},
|
|
11105
11114
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
11106
|
-
var
|
|
11107
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11115
|
+
var _fetchcustomercartQue61;
|
|
11116
|
+
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);
|
|
11108
11117
|
}),
|
|
11109
11118
|
onChange: function onChange(option) {
|
|
11110
11119
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -11149,12 +11158,12 @@ var Checkout = function Checkout(props) {
|
|
|
11149
11158
|
return option.id;
|
|
11150
11159
|
},
|
|
11151
11160
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
11152
|
-
var
|
|
11153
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11161
|
+
var _fetchcustomercartQue62;
|
|
11162
|
+
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);
|
|
11154
11163
|
}),
|
|
11155
11164
|
onChange: function onChange(option) {
|
|
11156
|
-
var
|
|
11157
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11165
|
+
var _fetchcustomercartQue63;
|
|
11166
|
+
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) {
|
|
11158
11167
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$2l({}, FetchTabexStatesPayloadobjContext);
|
|
11159
11168
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
11160
11169
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -11197,8 +11206,8 @@ var Checkout = function Checkout(props) {
|
|
|
11197
11206
|
return option.id;
|
|
11198
11207
|
},
|
|
11199
11208
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
11200
|
-
var
|
|
11201
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11209
|
+
var _fetchcustomercartQue64;
|
|
11210
|
+
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);
|
|
11202
11211
|
}),
|
|
11203
11212
|
onChange: function onChange(option) {
|
|
11204
11213
|
cartinfoupdater('cityid', option.id);
|
|
@@ -11213,7 +11222,7 @@ var Checkout = function Checkout(props) {
|
|
|
11213
11222
|
}, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
11214
11223
|
type: 'text',
|
|
11215
11224
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11216
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11225
|
+
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,
|
|
11217
11226
|
onChange: function onChange(event) {
|
|
11218
11227
|
cartinfoupdater('address', event.target.value);
|
|
11219
11228
|
},
|
|
@@ -11228,7 +11237,7 @@ var Checkout = function Checkout(props) {
|
|
|
11228
11237
|
}, langdetect == 'en' ? sectionproperties.notesinen : sectionproperties.notesinar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
11229
11238
|
type: 'text',
|
|
11230
11239
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11231
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11240
|
+
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,
|
|
11232
11241
|
onChange: function onChange(event) {
|
|
11233
11242
|
cartinfoupdater('notes', event.target.value);
|
|
11234
11243
|
},
|
|
@@ -11243,7 +11252,7 @@ var Checkout = function Checkout(props) {
|
|
|
11243
11252
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11244
11253
|
type: 'number',
|
|
11245
11254
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
11246
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11255
|
+
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,
|
|
11247
11256
|
onChange: function onChange(event) {
|
|
11248
11257
|
cartinfoupdater('aff_code', event.target.value);
|
|
11249
11258
|
},
|
|
@@ -11251,7 +11260,64 @@ var Checkout = function Checkout(props) {
|
|
|
11251
11260
|
resize: 'none',
|
|
11252
11261
|
boxShadow: 'none'
|
|
11253
11262
|
}
|
|
11254
|
-
}))))), sectionproperties.
|
|
11263
|
+
}))))), sectionproperties.showshippingmethod == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11264
|
+
className: "col-lg-12 p-0 w-100"
|
|
11265
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11266
|
+
"class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
|
|
11267
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11268
|
+
className: "col-lg-12 pl-3 pr-3 pt-2"
|
|
11269
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11270
|
+
className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
|
|
11271
|
+
}, langdetect == 'en' ? 'Shipping Method' : 'طريقة الشحن')), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11272
|
+
className: "col-lg-12 p-0"
|
|
11273
|
+
}, /*#__PURE__*/React__default["default"].createElement("hr", {
|
|
11274
|
+
className: "mt-2 mb-2"
|
|
11275
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11276
|
+
className: "row m-0 w-100 mb-3 pl-3 pr-3"
|
|
11277
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11278
|
+
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
11279
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
11280
|
+
className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
|
|
11281
|
+
"for": "codcheckbox"
|
|
11282
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11283
|
+
id: 'codcheckbox',
|
|
11284
|
+
type: "checkbox",
|
|
11285
|
+
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11286
|
+
checked: land == true ? true : false,
|
|
11287
|
+
onChange: function onChange() {
|
|
11288
|
+
setland(true);
|
|
11289
|
+
setair(false);
|
|
11290
|
+
}
|
|
11291
|
+
}), /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
11292
|
+
viewBox: "0 0 21 21",
|
|
11293
|
+
className: checkoutstyles.svgstyles + ' h-100 '
|
|
11294
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
11295
|
+
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"
|
|
11296
|
+
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11297
|
+
className: ' ml-2 mb-0 cursor-pointer wordbreak mr-2',
|
|
11298
|
+
style: {
|
|
11299
|
+
color: sectionproperties.checkbox_color
|
|
11300
|
+
}
|
|
11301
|
+
}, langdetect == 'en' ? 'Land Shipping' : 'شحن بري'))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11302
|
+
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
11303
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
11304
|
+
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 '
|
|
11305
|
+
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11306
|
+
type: "checkbox",
|
|
11307
|
+
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11308
|
+
checked: air == true ? true : false,
|
|
11309
|
+
onChange: function onChange() {
|
|
11310
|
+
setland(false);
|
|
11311
|
+
setair(true);
|
|
11312
|
+
}
|
|
11313
|
+
}), /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
11314
|
+
viewBox: "0 0 21 21",
|
|
11315
|
+
className: checkoutstyles.svgstyles + ' h-100 '
|
|
11316
|
+
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
11317
|
+
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"
|
|
11318
|
+
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11319
|
+
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
11320
|
+
}, " ", langdetect == 'en' ? 'Air Shipping' : 'شحن جوي')))))), sectionproperties.showpaymentfooter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11255
11321
|
className: "col-lg-12 p-0 w-100"
|
|
11256
11322
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11257
11323
|
"class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
|
|
@@ -11274,10 +11340,10 @@ var Checkout = function Checkout(props) {
|
|
|
11274
11340
|
id: 'codcheckbox',
|
|
11275
11341
|
type: "checkbox",
|
|
11276
11342
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11277
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11343
|
+
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,
|
|
11278
11344
|
onChange: function onChange() {
|
|
11279
|
-
var
|
|
11280
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11345
|
+
var _fetchcustomercartQue69;
|
|
11346
|
+
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') {
|
|
11281
11347
|
cartinfoupdater('paymentmethod', 'cod');
|
|
11282
11348
|
}
|
|
11283
11349
|
}
|
|
@@ -11298,10 +11364,10 @@ var Checkout = function Checkout(props) {
|
|
|
11298
11364
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11299
11365
|
type: "checkbox",
|
|
11300
11366
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11301
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11367
|
+
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,
|
|
11302
11368
|
onChange: function onChange() {
|
|
11303
|
-
var
|
|
11304
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11369
|
+
var _fetchcustomercartQue71;
|
|
11370
|
+
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') {
|
|
11305
11371
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
11306
11372
|
}
|
|
11307
11373
|
}
|
|
@@ -11319,10 +11385,10 @@ var Checkout = function Checkout(props) {
|
|
|
11319
11385
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11320
11386
|
type: "checkbox",
|
|
11321
11387
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11322
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11388
|
+
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,
|
|
11323
11389
|
onChange: function onChange() {
|
|
11324
|
-
var
|
|
11325
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11390
|
+
var _fetchcustomercartQue73;
|
|
11391
|
+
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') {
|
|
11326
11392
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
11327
11393
|
}
|
|
11328
11394
|
}
|
|
@@ -11340,10 +11406,10 @@ var Checkout = function Checkout(props) {
|
|
|
11340
11406
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11341
11407
|
type: "checkbox",
|
|
11342
11408
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11343
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11409
|
+
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,
|
|
11344
11410
|
onChange: function onChange() {
|
|
11345
|
-
var
|
|
11346
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11411
|
+
var _fetchcustomercartQue75;
|
|
11412
|
+
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') {
|
|
11347
11413
|
cartinfoupdater('paymentmethod', 'valU');
|
|
11348
11414
|
}
|
|
11349
11415
|
}
|
|
@@ -11361,10 +11427,10 @@ var Checkout = function Checkout(props) {
|
|
|
11361
11427
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11362
11428
|
type: "checkbox",
|
|
11363
11429
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11364
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11430
|
+
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,
|
|
11365
11431
|
onChange: function onChange() {
|
|
11366
|
-
var
|
|
11367
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11432
|
+
var _fetchcustomercartQue77;
|
|
11433
|
+
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') {
|
|
11368
11434
|
cartinfoupdater('paymentmethod', 'mobilewallet');
|
|
11369
11435
|
}
|
|
11370
11436
|
}
|
|
@@ -11382,10 +11448,10 @@ var Checkout = function Checkout(props) {
|
|
|
11382
11448
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11383
11449
|
type: "checkbox",
|
|
11384
11450
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11385
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11451
|
+
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,
|
|
11386
11452
|
onChange: function onChange() {
|
|
11387
|
-
var
|
|
11388
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11453
|
+
var _fetchcustomercartQue79;
|
|
11454
|
+
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') {
|
|
11389
11455
|
cartinfoupdater('paymentmethod', 'forsa');
|
|
11390
11456
|
}
|
|
11391
11457
|
}
|
|
@@ -11403,10 +11469,10 @@ var Checkout = function Checkout(props) {
|
|
|
11403
11469
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11404
11470
|
type: "checkbox",
|
|
11405
11471
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11406
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11472
|
+
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,
|
|
11407
11473
|
onChange: function onChange() {
|
|
11408
|
-
var
|
|
11409
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11474
|
+
var _fetchcustomercartQue81;
|
|
11475
|
+
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') {
|
|
11410
11476
|
cartinfoupdater('paymentmethod', 'bankinstallments');
|
|
11411
11477
|
}
|
|
11412
11478
|
}
|
|
@@ -11424,10 +11490,10 @@ var Checkout = function Checkout(props) {
|
|
|
11424
11490
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
11425
11491
|
type: "checkbox",
|
|
11426
11492
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
11427
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11493
|
+
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,
|
|
11428
11494
|
onChange: function onChange() {
|
|
11429
|
-
var
|
|
11430
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11495
|
+
var _fetchcustomercartQue83;
|
|
11496
|
+
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') {
|
|
11431
11497
|
cartinfoupdater('paymentmethod', 'Aman');
|
|
11432
11498
|
}
|
|
11433
11499
|
}
|
|
@@ -11438,7 +11504,7 @@ var Checkout = function Checkout(props) {
|
|
|
11438
11504
|
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"
|
|
11439
11505
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
11440
11506
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
11441
|
-
}, langdetect == 'en' ? 'Aman' : 'Aman')))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (
|
|
11507
|
+
}, 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__default["default"].createElement("div", {
|
|
11442
11508
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
11443
11509
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
11444
11510
|
style: {
|
|
@@ -22408,7 +22474,36 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
22408
22474
|
color: sectionproperties.cart_BtnTextcolor_resp
|
|
22409
22475
|
})))), sectionproperties.logocentered == 'Not Centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22410
22476
|
className: "col-md-6 col-sm-6 d-flex filter align-items-center p-0"
|
|
22411
|
-
},
|
|
22477
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22478
|
+
style: {
|
|
22479
|
+
width: sectionproperties.cart_BtnWidth_resp + 'px',
|
|
22480
|
+
height: sectionproperties.cart_BtnHeight_resp + 'px'
|
|
22481
|
+
},
|
|
22482
|
+
"class": langdetect == 'en' ? 'mr-2' : 'ml-2'
|
|
22483
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
22484
|
+
"class": ' h-100 allcentered ',
|
|
22485
|
+
style: {
|
|
22486
|
+
color: sectionproperties.cart_BtnTextcolor_resp
|
|
22487
|
+
},
|
|
22488
|
+
onClick: function onClick() {
|
|
22489
|
+
if (sectionproperties.responsiveheaderstyle == 'Style 2') {
|
|
22490
|
+
if (menuactive == true) {
|
|
22491
|
+
setmenuactive(false);
|
|
22492
|
+
} else {
|
|
22493
|
+
setmenuactive(true);
|
|
22494
|
+
}
|
|
22495
|
+
} else {
|
|
22496
|
+
setopenmenuCanvas(true);
|
|
22497
|
+
setactiveTab('menu');
|
|
22498
|
+
}
|
|
22499
|
+
}
|
|
22500
|
+
}, menuactive == false && /*#__PURE__*/React__default["default"].createElement(FiMenu.FiMenu, {
|
|
22501
|
+
size: 20,
|
|
22502
|
+
color: sectionproperties.cart_BtnTextcolor_resp
|
|
22503
|
+
}), menuactive == true && /*#__PURE__*/React__default["default"].createElement(AiOutlineClose.AiOutlineClose, {
|
|
22504
|
+
size: 20,
|
|
22505
|
+
color: sectionproperties.cart_BtnTextcolor_resp
|
|
22506
|
+
}))), InstLogoContainer()), sectionproperties.logocentered == 'Centered' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22412
22507
|
className: "col-md-4 col-sm-6 allcentered p-0"
|
|
22413
22508
|
}, InstLogoContainer()), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22414
22509
|
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'
|
|
@@ -22514,7 +22609,31 @@ var HeaderresponsiveStyle2 = function HeaderresponsiveStyle2(props) {
|
|
|
22514
22609
|
className: "h-100 allcentered"
|
|
22515
22610
|
}, /*#__PURE__*/React__default["default"].createElement(BiChevronDown.BiChevronDown, {
|
|
22516
22611
|
size: 20
|
|
22517
|
-
}))))
|
|
22612
|
+
})))), sectionproperties.logocentered == 'Not Centered' && sectionproperties.showlanuagecontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22613
|
+
"class": langdetect == 'en' ? ' allcentered m-0 cursor-pointer ml-1 ' : ' m-0 cursor-pointer mr-1 ',
|
|
22614
|
+
style: {
|
|
22615
|
+
minWidth: '30px'
|
|
22616
|
+
},
|
|
22617
|
+
onClick: function onClick() {
|
|
22618
|
+
if (langdetect == 'en') {
|
|
22619
|
+
setlang('ar');
|
|
22620
|
+
} else {
|
|
22621
|
+
setlang('en');
|
|
22622
|
+
}
|
|
22623
|
+
}
|
|
22624
|
+
}, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22625
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 allcentered w-100 '
|
|
22626
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
22627
|
+
"class": "m-0 p-0 d-flex align-items-center w-100"
|
|
22628
|
+
}, "En", ' ', /*#__PURE__*/React__default["default"].createElement("i", {
|
|
22629
|
+
"class": "h-100 allcentered ml-auto pl-3"
|
|
22630
|
+
}, /*#__PURE__*/React__default["default"].createElement(BsChevronDown.BsChevronDown, null)))), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22631
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 allcentered w-100 '
|
|
22632
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
22633
|
+
"class": "m-0 p-0 d-flex align-items-center w-100"
|
|
22634
|
+
}, "\u0639", ' ', /*#__PURE__*/React__default["default"].createElement("i", {
|
|
22635
|
+
"class": "h-100 allcentered mr-auto pr-3"
|
|
22636
|
+
}, /*#__PURE__*/React__default["default"].createElement(BsChevronDown.BsChevronDown, null)))))), menuactive == true && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
22518
22637
|
"class": "px-4 py-4 scrollvertical",
|
|
22519
22638
|
style: {
|
|
22520
22639
|
position: 'fixed',
|
|
@@ -69581,7 +69700,7 @@ var CategoryCardwithhoveraction = function CategoryCardwithhoveraction(props) {
|
|
|
69581
69700
|
})
|
|
69582
69701
|
};
|
|
69583
69702
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
69584
|
-
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard) + ' w-100 ' : "".concat(card_cssstyles.productcard)
|
|
69703
|
+
"class": props.sectiontypeprops2 == 'vertical' ? "".concat(card_cssstyles.productcard, " ").concat(cardstyles$1.container, " ") + ' w-100 ' : "".concat(card_cssstyles.productcard, " ").concat(cardstyles$1.container, " ")
|
|
69585
69704
|
// class={`${cardstyles.container} ${card_cssstyles.container}` + ' row m-0 w-100 '}
|
|
69586
69705
|
,
|
|
69587
69706
|
style: {
|
|
@@ -69731,9 +69850,7 @@ var Classiccategorycard = function Classiccategorycard(props) {
|
|
|
69731
69850
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
69732
69851
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
69733
69852
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
69734
|
-
marginBottom: sectionproperties.
|
|
69735
|
-
marginLeft: langdetect == 'en' ? sectionproperties.image_marginleft + 'px' : sectionproperties.image_marginright + 'px',
|
|
69736
|
-
marginRight: langdetect == 'en' ? sectionproperties.image_marginright + 'px' : sectionproperties.image_marginleft + 'px',
|
|
69853
|
+
marginBottom: sectionproperties.marginBottom + 'px',
|
|
69737
69854
|
border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
69738
69855
|
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.image_width + 'px',
|
|
69739
69856
|
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.image_width + 'px',
|
|
@@ -69785,13 +69902,7 @@ var Classiccategorycard = function Classiccategorycard(props) {
|
|
|
69785
69902
|
style: {
|
|
69786
69903
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
69787
69904
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
69788
|
-
}
|
|
69789
|
-
// class={
|
|
69790
|
-
// sectionproperties.image_height > 550
|
|
69791
|
-
// ? `${card_cssstyles.imagestyle} ${productcardsstyles.productcard}` + ' p-0 h-md-300 '
|
|
69792
|
-
// : `${card_cssstyles.imagestyle} ${productcardsstyles.productcard}` + ' p-0 '
|
|
69793
|
-
// }
|
|
69794
|
-
,
|
|
69905
|
+
},
|
|
69795
69906
|
onClick: function onClick() {
|
|
69796
69907
|
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
69797
69908
|
}
|