tabexseriescomponents 0.50.159 → 0.50.160
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 +37 -19
- package/dist/index.esm.js +37 -19
- package/dist/index.umd.js +37 -19
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -14070,7 +14070,7 @@ styleInject(css_248z$G);
|
|
|
14070
14070
|
function ownKeys$2w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14071
14071
|
function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14072
14072
|
var Checkout = function Checkout(props) {
|
|
14073
|
-
var _fetchTabexCountriesQ2, _css, _authdetailsContext$
|
|
14073
|
+
var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue65, _authdetailsContext$i10, _fetchcustomercartQue66, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _fetchcustomercartQue67, _authdetailsContext$i15, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _authdetailsContext$i16, _fetchcustomercartQue89, _authdetailsContext$i17, _fetchcustomercartQue91, _authdetailsContext$i18, _fetchcustomercartQue93, _authdetailsContext$i19, _fetchcustomercartQue95, _authdetailsContext$i20, _fetchcustomercartQue97, _authdetailsContext$i21, _authdetailsContext$i22, _fetchcustomercartQue99, _fetchcustomercartQue100;
|
|
14074
14074
|
var _useState = React.useState(null),
|
|
14075
14075
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
14076
14076
|
_useState2[0];
|
|
@@ -14340,6 +14340,22 @@ var Checkout = function Checkout(props) {
|
|
|
14340
14340
|
}
|
|
14341
14341
|
});
|
|
14342
14342
|
};
|
|
14343
|
+
var is_order_extrafileds_required_fulfiled = function is_order_extrafileds_required_fulfiled() {
|
|
14344
|
+
var _authdetailsContext$i5, _authdetailsContext$i6;
|
|
14345
|
+
var is_fulfilled = true;
|
|
14346
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.contactinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instid) == '66d99c87c0a20' || (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) == '68c6a5ff3e0d0') {
|
|
14347
|
+
var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
|
|
14348
|
+
OrderExtraFieldsToBeSentArr === null || OrderExtraFieldsToBeSentArr === void 0 || OrderExtraFieldsToBeSentArr.forEach(function (item, index) {
|
|
14349
|
+
if (item.isrequired == 1 && (item.value == undefined || item.value == null || item.value.length == 0)) {
|
|
14350
|
+
is_fulfilled = false;
|
|
14351
|
+
}
|
|
14352
|
+
});
|
|
14353
|
+
}
|
|
14354
|
+
if (is_fulfilled === false) {
|
|
14355
|
+
alert(lang.completemissingfields);
|
|
14356
|
+
}
|
|
14357
|
+
return is_fulfilled;
|
|
14358
|
+
};
|
|
14343
14359
|
var checkoutstyles = _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"]({
|
|
14344
14360
|
Salepricestyless: glamor.css({
|
|
14345
14361
|
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
@@ -14580,7 +14596,9 @@ var Checkout = function Checkout(props) {
|
|
|
14580
14596
|
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.mobile.length) < 11) {
|
|
14581
14597
|
NotificationManager.warning('', langdetect === 'ar' ? 'اكتب رقم تليفون صحيح' : langdetect === 'chin' ? '请输入有效的手机号码' : langdetect === 'es' ? 'Escribe un número de teléfono válido' : langdetect === 'fr' ? 'Entrez un numéro de téléphone valide' : langdetect === 'rus' ? 'Введите действительный номер телефона' : 'Write valid mobile number');
|
|
14582
14598
|
} else {
|
|
14583
|
-
|
|
14599
|
+
if (is_order_extrafileds_required_fulfiled()) {
|
|
14600
|
+
AddOrderMutationContext.mutate();
|
|
14601
|
+
}
|
|
14584
14602
|
}
|
|
14585
14603
|
// AddOrderMutationContext.mutate();
|
|
14586
14604
|
} else {
|
|
@@ -14608,7 +14626,7 @@ var Checkout = function Checkout(props) {
|
|
|
14608
14626
|
return isloading;
|
|
14609
14627
|
};
|
|
14610
14628
|
var Mycart = function Mycart() {
|
|
14611
|
-
var _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _authdetailsContext$
|
|
14629
|
+
var _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _authdetailsContext$i7, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _authdetailsContext$i8, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _authdetailsContext$i9, _fetchcustomercartQue64;
|
|
14612
14630
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14613
14631
|
className: "row m-0 w-100 mb-md-3"
|
|
14614
14632
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -14844,7 +14862,7 @@ var Checkout = function Checkout(props) {
|
|
|
14844
14862
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
14845
14863
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14846
14864
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
14847
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14865
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) === '6808c6295b598' ? langdetect === 'ar' ? 'تكلفة المنتجات' : langdetect === 'chin' ? '小计' : langdetect === 'es' ? 'Subtotal' : langdetect === 'fr' ? 'Sous-total' : langdetect === 'rus' ? 'Промежуточный итог' : 'Sub Total' : lang.subtotal)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14848
14866
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14849
14867
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14850
14868
|
className: langdetect != 'ar' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
@@ -14933,7 +14951,7 @@ var Checkout = function Checkout(props) {
|
|
|
14933
14951
|
textTransform: sectionproperties.total_texttransform,
|
|
14934
14952
|
color: sectionproperties.total_color
|
|
14935
14953
|
}
|
|
14936
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14954
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) == '6808c6295b598' ? langdetect != 'ar' ? 'Total' : 'المبلغ الإجمالي' : lang.total)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14937
14955
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
14938
14956
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14939
14957
|
className: "row m-0 w-100"
|
|
@@ -14968,7 +14986,7 @@ var Checkout = function Checkout(props) {
|
|
|
14968
14986
|
style: {
|
|
14969
14987
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
14970
14988
|
}
|
|
14971
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14989
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) != '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
14972
14990
|
className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
|
|
14973
14991
|
onClick: function onClick() {
|
|
14974
14992
|
if (sectionproperties.showpaymentfooter == 'Hide') {
|
|
@@ -15079,7 +15097,7 @@ var Checkout = function Checkout(props) {
|
|
|
15079
15097
|
}
|
|
15080
15098
|
}, /*#__PURE__*/React__default["default"].createElement(BiPhone.BiPhone, null)), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15081
15099
|
className: "m-0 p-0 wordbreak"
|
|
15082
|
-
}, authdetailsContext.customerinfo.mobile))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15100
|
+
}, authdetailsContext.customerinfo.mobile))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) != '6808c6295b598' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15083
15101
|
className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
|
|
15084
15102
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15085
15103
|
className: "m-0 p-0 d-flex align-items-center"
|
|
@@ -15143,7 +15161,7 @@ var Checkout = function Checkout(props) {
|
|
|
15143
15161
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15144
15162
|
className: "row m-0 w-100 mb-3 pl-3 pr-3 pb-3"
|
|
15145
15163
|
}, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15146
|
-
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15164
|
+
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
|
|
15147
15165
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15148
15166
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
15149
15167
|
}, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
@@ -15158,7 +15176,7 @@ var Checkout = function Checkout(props) {
|
|
|
15158
15176
|
boxShadow: 'none'
|
|
15159
15177
|
}
|
|
15160
15178
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15161
|
-
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15179
|
+
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
|
|
15162
15180
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15163
15181
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
15164
15182
|
}, langdetect === 'ar' ? 'رقم الهاتف' : langdetect === 'chin' ? '电话号码' : langdetect === 'es' ? 'Número de teléfono' : langdetect === 'fr' ? 'Numéro de téléphone' : langdetect === 'rus' ? 'Номер телефона' : 'Phone Number'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
@@ -15175,11 +15193,11 @@ var Checkout = function Checkout(props) {
|
|
|
15175
15193
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15176
15194
|
className: "col-lg-4 col-md-12 mb-3 flex-column",
|
|
15177
15195
|
style: {
|
|
15178
|
-
display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15196
|
+
display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.customerEmailrequiered) == 1 ? 'flex' : sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.customerEmailrequiered) == 0 ? 'none' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '6808c6295b598' ? 'none' : 'flex'
|
|
15179
15197
|
}
|
|
15180
15198
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15181
15199
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
15182
|
-
}, lang.email, ' ', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15200
|
+
}, lang.email, ' ', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '6739bf5880c04' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
15183
15201
|
"class": "mx-2",
|
|
15184
15202
|
style: {
|
|
15185
15203
|
fontSize: 13
|
|
@@ -15257,7 +15275,7 @@ var Checkout = function Checkout(props) {
|
|
|
15257
15275
|
className: sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-4 col-md-12 mb-3 selectwhite' : 'col-lg-4 col-md-12 mb-3'
|
|
15258
15276
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15259
15277
|
className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
|
|
15260
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15278
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '67e448d2ef6e0' ? langdetect != 'ar' ? 'Governorate' : 'المحافظة' : lang.stategov, authdetailsContext.instinfo.customerAddressrequiered == 1 && /*#__PURE__*/React__default["default"].createElement("sup", {
|
|
15261
15279
|
"class": "mx-2",
|
|
15262
15280
|
style: {
|
|
15263
15281
|
color: 'var(--danger)'
|
|
@@ -15674,7 +15692,7 @@ var Checkout = function Checkout(props) {
|
|
|
15674
15692
|
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"
|
|
15675
15693
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15676
15694
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15677
|
-
}, langdetect != 'ar' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15695
|
+
}, langdetect != 'ar' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.acceptForsaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15678
15696
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15679
15697
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15680
15698
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15696,7 +15714,7 @@ var Checkout = function Checkout(props) {
|
|
|
15696
15714
|
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"
|
|
15697
15715
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15698
15716
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15699
|
-
}, langdetect != 'ar' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15717
|
+
}, langdetect != 'ar' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.acceptSouhoolaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15700
15718
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15701
15719
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15702
15720
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15718,7 +15736,7 @@ var Checkout = function Checkout(props) {
|
|
|
15718
15736
|
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"
|
|
15719
15737
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15720
15738
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15721
|
-
}, langdetect != 'ar' ? 'Souhoola' : ' Souhoola'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15739
|
+
}, langdetect != 'ar' ? 'Souhoola' : ' Souhoola'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.acceptonlinePaypal) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15722
15740
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15723
15741
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15724
15742
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15740,7 +15758,7 @@ var Checkout = function Checkout(props) {
|
|
|
15740
15758
|
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"
|
|
15741
15759
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15742
15760
|
className: "".concat(formstyles.checkbox_label, " + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '")
|
|
15743
|
-
}, langdetect != 'ar' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15761
|
+
}, langdetect != 'ar' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15744
15762
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15745
15763
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15746
15764
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15762,7 +15780,7 @@ var Checkout = function Checkout(props) {
|
|
|
15762
15780
|
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"
|
|
15763
15781
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15764
15782
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15765
|
-
}, langdetect != 'ar' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15783
|
+
}, langdetect != 'ar' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.acceptAmanCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15766
15784
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15767
15785
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15768
15786
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15784,7 +15802,7 @@ var Checkout = function Checkout(props) {
|
|
|
15784
15802
|
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"
|
|
15785
15803
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15786
15804
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15787
|
-
}, langdetect != 'ar' ? 'Aman' : 'Aman'))), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15805
|
+
}, langdetect != 'ar' ? 'Aman' : 'Aman'))), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '6808cf481006d' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15788
15806
|
"class": "col-12 px-3 px-md-2 my-3"
|
|
15789
15807
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15790
15808
|
"class": ' pb-0 pl-md-2 pr-md-2 ',
|
|
@@ -15794,7 +15812,7 @@ var Checkout = function Checkout(props) {
|
|
|
15794
15812
|
dangerouslySetInnerHTML: {
|
|
15795
15813
|
__html: langdetect != 'ar' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar
|
|
15796
15814
|
}
|
|
15797
|
-
})), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15815
|
+
})), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '6808cf481006d' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15798
15816
|
"class": "col-12 px-3 px-md-2 my-3"
|
|
15799
15817
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15800
15818
|
"class": ' pb-0 pl-md-2 pr-md-2 ',
|
package/dist/index.esm.js
CHANGED
|
@@ -14018,7 +14018,7 @@ styleInject(css_248z$G);
|
|
|
14018
14018
|
function ownKeys$2w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
14019
14019
|
function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14020
14020
|
var Checkout = function Checkout(props) {
|
|
14021
|
-
var _fetchTabexCountriesQ2, _css, _authdetailsContext$
|
|
14021
|
+
var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue65, _authdetailsContext$i10, _fetchcustomercartQue66, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _fetchcustomercartQue67, _authdetailsContext$i15, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _authdetailsContext$i16, _fetchcustomercartQue89, _authdetailsContext$i17, _fetchcustomercartQue91, _authdetailsContext$i18, _fetchcustomercartQue93, _authdetailsContext$i19, _fetchcustomercartQue95, _authdetailsContext$i20, _fetchcustomercartQue97, _authdetailsContext$i21, _authdetailsContext$i22, _fetchcustomercartQue99, _fetchcustomercartQue100;
|
|
14022
14022
|
var _useState = useState(null),
|
|
14023
14023
|
_useState2 = _slicedToArray(_useState, 2);
|
|
14024
14024
|
_useState2[0];
|
|
@@ -14288,6 +14288,22 @@ var Checkout = function Checkout(props) {
|
|
|
14288
14288
|
}
|
|
14289
14289
|
});
|
|
14290
14290
|
};
|
|
14291
|
+
var is_order_extrafileds_required_fulfiled = function is_order_extrafileds_required_fulfiled() {
|
|
14292
|
+
var _authdetailsContext$i5, _authdetailsContext$i6;
|
|
14293
|
+
var is_fulfilled = true;
|
|
14294
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.contactinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instid) == '66d99c87c0a20' || (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) == '68c6a5ff3e0d0') {
|
|
14295
|
+
var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
|
|
14296
|
+
OrderExtraFieldsToBeSentArr === null || OrderExtraFieldsToBeSentArr === void 0 || OrderExtraFieldsToBeSentArr.forEach(function (item, index) {
|
|
14297
|
+
if (item.isrequired == 1 && (item.value == undefined || item.value == null || item.value.length == 0)) {
|
|
14298
|
+
is_fulfilled = false;
|
|
14299
|
+
}
|
|
14300
|
+
});
|
|
14301
|
+
}
|
|
14302
|
+
if (is_fulfilled === false) {
|
|
14303
|
+
alert(lang.completemissingfields);
|
|
14304
|
+
}
|
|
14305
|
+
return is_fulfilled;
|
|
14306
|
+
};
|
|
14291
14307
|
var checkoutstyles = _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
14292
14308
|
Salepricestyless: css({
|
|
14293
14309
|
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
@@ -14528,7 +14544,9 @@ var Checkout = function Checkout(props) {
|
|
|
14528
14544
|
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.mobile.length) < 11) {
|
|
14529
14545
|
NotificationManager.warning('', langdetect === 'ar' ? 'اكتب رقم تليفون صحيح' : langdetect === 'chin' ? '请输入有效的手机号码' : langdetect === 'es' ? 'Escribe un número de teléfono válido' : langdetect === 'fr' ? 'Entrez un numéro de téléphone valide' : langdetect === 'rus' ? 'Введите действительный номер телефона' : 'Write valid mobile number');
|
|
14530
14546
|
} else {
|
|
14531
|
-
|
|
14547
|
+
if (is_order_extrafileds_required_fulfiled()) {
|
|
14548
|
+
AddOrderMutationContext.mutate();
|
|
14549
|
+
}
|
|
14532
14550
|
}
|
|
14533
14551
|
// AddOrderMutationContext.mutate();
|
|
14534
14552
|
} else {
|
|
@@ -14556,7 +14574,7 @@ var Checkout = function Checkout(props) {
|
|
|
14556
14574
|
return isloading;
|
|
14557
14575
|
};
|
|
14558
14576
|
var Mycart = function Mycart() {
|
|
14559
|
-
var _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _authdetailsContext$
|
|
14577
|
+
var _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _authdetailsContext$i7, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _authdetailsContext$i8, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _authdetailsContext$i9, _fetchcustomercartQue64;
|
|
14560
14578
|
return /*#__PURE__*/React.createElement("div", {
|
|
14561
14579
|
className: "row m-0 w-100 mb-md-3"
|
|
14562
14580
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -14792,7 +14810,7 @@ var Checkout = function Checkout(props) {
|
|
|
14792
14810
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
14793
14811
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14794
14812
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
14795
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14813
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) === '6808c6295b598' ? langdetect === 'ar' ? 'تكلفة المنتجات' : langdetect === 'chin' ? '小计' : langdetect === 'es' ? 'Subtotal' : langdetect === 'fr' ? 'Sous-total' : langdetect === 'rus' ? 'Промежуточный итог' : 'Sub Total' : lang.subtotal)), /*#__PURE__*/React.createElement("div", {
|
|
14796
14814
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14797
14815
|
}, /*#__PURE__*/React.createElement("p", {
|
|
14798
14816
|
className: langdetect != 'ar' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
@@ -14881,7 +14899,7 @@ var Checkout = function Checkout(props) {
|
|
|
14881
14899
|
textTransform: sectionproperties.total_texttransform,
|
|
14882
14900
|
color: sectionproperties.total_color
|
|
14883
14901
|
}
|
|
14884
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14902
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) == '6808c6295b598' ? langdetect != 'ar' ? 'Total' : 'المبلغ الإجمالي' : lang.total)), /*#__PURE__*/React.createElement("div", {
|
|
14885
14903
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
14886
14904
|
}, /*#__PURE__*/React.createElement("div", {
|
|
14887
14905
|
className: "row m-0 w-100"
|
|
@@ -14916,7 +14934,7 @@ var Checkout = function Checkout(props) {
|
|
|
14916
14934
|
style: {
|
|
14917
14935
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
14918
14936
|
}
|
|
14919
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14937
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) != '67e448d2ef6e0' && /*#__PURE__*/React.createElement("button", {
|
|
14920
14938
|
className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
|
|
14921
14939
|
onClick: function onClick() {
|
|
14922
14940
|
if (sectionproperties.showpaymentfooter == 'Hide') {
|
|
@@ -15027,7 +15045,7 @@ var Checkout = function Checkout(props) {
|
|
|
15027
15045
|
}
|
|
15028
15046
|
}, /*#__PURE__*/React.createElement(BiPhone, null)), /*#__PURE__*/React.createElement("p", {
|
|
15029
15047
|
className: "m-0 p-0 wordbreak"
|
|
15030
|
-
}, authdetailsContext.customerinfo.mobile))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15048
|
+
}, authdetailsContext.customerinfo.mobile))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) != '6808c6295b598' && /*#__PURE__*/React.createElement("div", {
|
|
15031
15049
|
className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
|
|
15032
15050
|
}, /*#__PURE__*/React.createElement("div", {
|
|
15033
15051
|
className: "m-0 p-0 d-flex align-items-center"
|
|
@@ -15091,7 +15109,7 @@ var Checkout = function Checkout(props) {
|
|
|
15091
15109
|
})), /*#__PURE__*/React.createElement("div", {
|
|
15092
15110
|
className: "row m-0 w-100 mb-3 pl-3 pr-3 pb-3"
|
|
15093
15111
|
}, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
15094
|
-
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15112
|
+
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
|
|
15095
15113
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15096
15114
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
15097
15115
|
}, lang.name), /*#__PURE__*/React.createElement("input", {
|
|
@@ -15106,7 +15124,7 @@ var Checkout = function Checkout(props) {
|
|
|
15106
15124
|
boxShadow: 'none'
|
|
15107
15125
|
}
|
|
15108
15126
|
})), /*#__PURE__*/React.createElement("div", {
|
|
15109
|
-
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15127
|
+
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
|
|
15110
15128
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15111
15129
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
15112
15130
|
}, langdetect === 'ar' ? 'رقم الهاتف' : langdetect === 'chin' ? '电话号码' : langdetect === 'es' ? 'Número de teléfono' : langdetect === 'fr' ? 'Numéro de téléphone' : langdetect === 'rus' ? 'Номер телефона' : 'Phone Number'), /*#__PURE__*/React.createElement("input", {
|
|
@@ -15123,11 +15141,11 @@ var Checkout = function Checkout(props) {
|
|
|
15123
15141
|
})), /*#__PURE__*/React.createElement("div", {
|
|
15124
15142
|
className: "col-lg-4 col-md-12 mb-3 flex-column",
|
|
15125
15143
|
style: {
|
|
15126
|
-
display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15144
|
+
display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.customerEmailrequiered) == 1 ? 'flex' : sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.customerEmailrequiered) == 0 ? 'none' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '6808c6295b598' ? 'none' : 'flex'
|
|
15127
15145
|
}
|
|
15128
15146
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15129
15147
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
15130
|
-
}, lang.email, ' ', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15148
|
+
}, lang.email, ' ', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '6739bf5880c04' && /*#__PURE__*/React.createElement("span", {
|
|
15131
15149
|
"class": "mx-2",
|
|
15132
15150
|
style: {
|
|
15133
15151
|
fontSize: 13
|
|
@@ -15205,7 +15223,7 @@ var Checkout = function Checkout(props) {
|
|
|
15205
15223
|
className: sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-4 col-md-12 mb-3 selectwhite' : 'col-lg-4 col-md-12 mb-3'
|
|
15206
15224
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15207
15225
|
className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
|
|
15208
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15226
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '67e448d2ef6e0' ? langdetect != 'ar' ? 'Governorate' : 'المحافظة' : lang.stategov, authdetailsContext.instinfo.customerAddressrequiered == 1 && /*#__PURE__*/React.createElement("sup", {
|
|
15209
15227
|
"class": "mx-2",
|
|
15210
15228
|
style: {
|
|
15211
15229
|
color: 'var(--danger)'
|
|
@@ -15622,7 +15640,7 @@ var Checkout = function Checkout(props) {
|
|
|
15622
15640
|
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"
|
|
15623
15641
|
})), /*#__PURE__*/React.createElement("p", {
|
|
15624
15642
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15625
|
-
}, langdetect != 'ar' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15643
|
+
}, langdetect != 'ar' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.acceptForsaCard) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
15626
15644
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15627
15645
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15628
15646
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15644,7 +15662,7 @@ var Checkout = function Checkout(props) {
|
|
|
15644
15662
|
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"
|
|
15645
15663
|
})), /*#__PURE__*/React.createElement("p", {
|
|
15646
15664
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15647
|
-
}, langdetect != 'ar' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15665
|
+
}, langdetect != 'ar' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.acceptSouhoolaCard) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
15648
15666
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15649
15667
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15650
15668
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15666,7 +15684,7 @@ var Checkout = function Checkout(props) {
|
|
|
15666
15684
|
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"
|
|
15667
15685
|
})), /*#__PURE__*/React.createElement("p", {
|
|
15668
15686
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15669
|
-
}, langdetect != 'ar' ? 'Souhoola' : ' Souhoola'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15687
|
+
}, langdetect != 'ar' ? 'Souhoola' : ' Souhoola'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.acceptonlinePaypal) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
15670
15688
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15671
15689
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15672
15690
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15688,7 +15706,7 @@ var Checkout = function Checkout(props) {
|
|
|
15688
15706
|
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"
|
|
15689
15707
|
})), /*#__PURE__*/React.createElement("p", {
|
|
15690
15708
|
className: "".concat(formstyles.checkbox_label, " + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '")
|
|
15691
|
-
}, langdetect != 'ar' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15709
|
+
}, langdetect != 'ar' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
15692
15710
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15693
15711
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15694
15712
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15710,7 +15728,7 @@ var Checkout = function Checkout(props) {
|
|
|
15710
15728
|
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"
|
|
15711
15729
|
})), /*#__PURE__*/React.createElement("p", {
|
|
15712
15730
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15713
|
-
}, langdetect != 'ar' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15731
|
+
}, langdetect != 'ar' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.acceptAmanCard) == 1 && /*#__PURE__*/React.createElement("div", {
|
|
15714
15732
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15715
15733
|
}, /*#__PURE__*/React.createElement("label", {
|
|
15716
15734
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15732,7 +15750,7 @@ var Checkout = function Checkout(props) {
|
|
|
15732
15750
|
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"
|
|
15733
15751
|
})), /*#__PURE__*/React.createElement("p", {
|
|
15734
15752
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15735
|
-
}, langdetect != 'ar' ? 'Aman' : 'Aman'))), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15753
|
+
}, langdetect != 'ar' ? 'Aman' : 'Aman'))), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '6808cf481006d' && /*#__PURE__*/React.createElement("div", {
|
|
15736
15754
|
"class": "col-12 px-3 px-md-2 my-3"
|
|
15737
15755
|
}, /*#__PURE__*/React.createElement("p", {
|
|
15738
15756
|
"class": ' pb-0 pl-md-2 pr-md-2 ',
|
|
@@ -15742,7 +15760,7 @@ var Checkout = function Checkout(props) {
|
|
|
15742
15760
|
dangerouslySetInnerHTML: {
|
|
15743
15761
|
__html: langdetect != 'ar' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar
|
|
15744
15762
|
}
|
|
15745
|
-
})), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15763
|
+
})), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '6808cf481006d' && /*#__PURE__*/React.createElement("div", {
|
|
15746
15764
|
"class": "col-12 px-3 px-md-2 my-3"
|
|
15747
15765
|
}, /*#__PURE__*/React.createElement("p", {
|
|
15748
15766
|
"class": ' pb-0 pl-md-2 pr-md-2 ',
|
package/dist/index.umd.js
CHANGED
|
@@ -13877,7 +13877,7 @@
|
|
|
13877
13877
|
function ownKeys$2w(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13878
13878
|
function _objectSpread$2w(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2w(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2w(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13879
13879
|
var Checkout = function Checkout(props) {
|
|
13880
|
-
var _fetchTabexCountriesQ2, _css, _authdetailsContext$
|
|
13880
|
+
var _fetchTabexCountriesQ2, _css, _authdetailsContext$i0, _authdetailsContext$i1, _fetchcustomercartQue65, _authdetailsContext$i10, _fetchcustomercartQue66, _authdetailsContext$i11, _authdetailsContext$i12, _authdetailsContext$i13, _authdetailsContext$i14, _fetchcustomercartQue67, _authdetailsContext$i15, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue79, _fetchcustomercartQue81, _fetchcustomercartQue83, _fetchcustomercartQue85, _fetchcustomercartQue87, _authdetailsContext$i16, _fetchcustomercartQue89, _authdetailsContext$i17, _fetchcustomercartQue91, _authdetailsContext$i18, _fetchcustomercartQue93, _authdetailsContext$i19, _fetchcustomercartQue95, _authdetailsContext$i20, _fetchcustomercartQue97, _authdetailsContext$i21, _authdetailsContext$i22, _fetchcustomercartQue99, _fetchcustomercartQue100;
|
|
13881
13881
|
var _useState = React.useState(null),
|
|
13882
13882
|
_useState2 = _slicedToArray__default["default"](_useState, 2);
|
|
13883
13883
|
_useState2[0];
|
|
@@ -14147,6 +14147,22 @@
|
|
|
14147
14147
|
}
|
|
14148
14148
|
});
|
|
14149
14149
|
};
|
|
14150
|
+
var is_order_extrafileds_required_fulfiled = function is_order_extrafileds_required_fulfiled() {
|
|
14151
|
+
var _authdetailsContext$i5, _authdetailsContext$i6;
|
|
14152
|
+
var is_fulfilled = true;
|
|
14153
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 || (_authdetailsContext$i5 = _authdetailsContext$i5.contactinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instid) == '66d99c87c0a20' || (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 || (_authdetailsContext$i6 = _authdetailsContext$i6.contactinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instid) == '68c6a5ff3e0d0') {
|
|
14154
|
+
var OrderExtraFieldsToBeSentArr = returnOrderExtraFieldsArrayTobeSnetarr();
|
|
14155
|
+
OrderExtraFieldsToBeSentArr === null || OrderExtraFieldsToBeSentArr === void 0 || OrderExtraFieldsToBeSentArr.forEach(function (item, index) {
|
|
14156
|
+
if (item.isrequired == 1 && (item.value == undefined || item.value == null || item.value.length == 0)) {
|
|
14157
|
+
is_fulfilled = false;
|
|
14158
|
+
}
|
|
14159
|
+
});
|
|
14160
|
+
}
|
|
14161
|
+
if (is_fulfilled === false) {
|
|
14162
|
+
alert(lang.completemissingfields);
|
|
14163
|
+
}
|
|
14164
|
+
return is_fulfilled;
|
|
14165
|
+
};
|
|
14150
14166
|
var checkoutstyles = _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"]({
|
|
14151
14167
|
Salepricestyless: glamor.css({
|
|
14152
14168
|
fontSize: sectionproperties.prodsalepriceFontSize + 'px',
|
|
@@ -14387,7 +14403,9 @@
|
|
|
14387
14403
|
} else if (sectionproperties.verifyemailandphone == 'Yes' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 || (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 || (_fetchcustomercartQue33 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : _fetchcustomercartQue33.customercart.mobile.length) < 11) {
|
|
14388
14404
|
NotificationManager.warning('', langdetect === 'ar' ? 'اكتب رقم تليفون صحيح' : langdetect === 'chin' ? '请输入有效的手机号码' : langdetect === 'es' ? 'Escribe un número de teléfono válido' : langdetect === 'fr' ? 'Entrez un numéro de téléphone valide' : langdetect === 'rus' ? 'Введите действительный номер телефона' : 'Write valid mobile number');
|
|
14389
14405
|
} else {
|
|
14390
|
-
|
|
14406
|
+
if (is_order_extrafileds_required_fulfiled()) {
|
|
14407
|
+
AddOrderMutationContext.mutate();
|
|
14408
|
+
}
|
|
14391
14409
|
}
|
|
14392
14410
|
// AddOrderMutationContext.mutate();
|
|
14393
14411
|
} else {
|
|
@@ -14415,7 +14433,7 @@
|
|
|
14415
14433
|
return isloading;
|
|
14416
14434
|
};
|
|
14417
14435
|
var Mycart = function Mycart() {
|
|
14418
|
-
var _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _authdetailsContext$
|
|
14436
|
+
var _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44, _authdetailsContext$i7, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _authdetailsContext$i8, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _authdetailsContext$i9, _fetchcustomercartQue64;
|
|
14419
14437
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14420
14438
|
className: "row m-0 w-100 mb-md-3"
|
|
14421
14439
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -14651,7 +14669,7 @@
|
|
|
14651
14669
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
14652
14670
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14653
14671
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
|
|
14654
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14672
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 || (_authdetailsContext$i7 = _authdetailsContext$i7.contactinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.instid) === '6808c6295b598' ? langdetect === 'ar' ? 'تكلفة المنتجات' : langdetect === 'chin' ? '小计' : langdetect === 'es' ? 'Subtotal' : langdetect === 'fr' ? 'Sous-total' : langdetect === 'rus' ? 'Промежуточный итог' : 'Sub Total' : lang.subtotal)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14655
14673
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
14656
14674
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14657
14675
|
className: langdetect != 'ar' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
@@ -14740,7 +14758,7 @@
|
|
|
14740
14758
|
textTransform: sectionproperties.total_texttransform,
|
|
14741
14759
|
color: sectionproperties.total_color
|
|
14742
14760
|
}
|
|
14743
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14761
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.contactinfo.instid) == '6808c6295b598' ? langdetect != 'ar' ? 'Total' : 'المبلغ الإجمالي' : lang.total)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14744
14762
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
14745
14763
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14746
14764
|
className: "row m-0 w-100"
|
|
@@ -14775,7 +14793,7 @@
|
|
|
14775
14793
|
style: {
|
|
14776
14794
|
marginTop: sectionproperties.showtotalsection == 'Show' ? 0 : '0.5rem'
|
|
14777
14795
|
}
|
|
14778
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14796
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : _authdetailsContext$i9.contactinfo.instid) != '67e448d2ef6e0' && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
14779
14797
|
className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
|
|
14780
14798
|
onClick: function onClick() {
|
|
14781
14799
|
if (sectionproperties.showpaymentfooter == 'Hide') {
|
|
@@ -14886,7 +14904,7 @@
|
|
|
14886
14904
|
}
|
|
14887
14905
|
}, /*#__PURE__*/React__default["default"].createElement(BiPhone.BiPhone, null)), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
14888
14906
|
className: "m-0 p-0 wordbreak"
|
|
14889
|
-
}, authdetailsContext.customerinfo.mobile))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14907
|
+
}, authdetailsContext.customerinfo.mobile))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i0 = authdetailsContext.instinfo) === null || _authdetailsContext$i0 === void 0 ? void 0 : _authdetailsContext$i0.contactinfo.instid) != '6808c6295b598' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14890
14908
|
className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
|
|
14891
14909
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14892
14910
|
className: "m-0 p-0 d-flex align-items-center"
|
|
@@ -14950,7 +14968,7 @@
|
|
|
14950
14968
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14951
14969
|
className: "row m-0 w-100 mb-3 pl-3 pr-3 pb-3"
|
|
14952
14970
|
}, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14953
|
-
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14971
|
+
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
|
|
14954
14972
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14955
14973
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
14956
14974
|
}, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
@@ -14965,7 +14983,7 @@
|
|
|
14965
14983
|
boxShadow: 'none'
|
|
14966
14984
|
}
|
|
14967
14985
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14968
|
-
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
14986
|
+
className: sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.customerEmailrequiered) == 0 ? 'col-lg-6 col-md-12 mb-3' : 'col-lg-4 col-md-12 mb-3'
|
|
14969
14987
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14970
14988
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
14971
14989
|
}, langdetect === 'ar' ? 'رقم الهاتف' : langdetect === 'chin' ? '电话号码' : langdetect === 'es' ? 'Número de teléfono' : langdetect === 'fr' ? 'Numéro de téléphone' : langdetect === 'rus' ? 'Номер телефона' : 'Phone Number'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
@@ -14982,11 +15000,11 @@
|
|
|
14982
15000
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
14983
15001
|
className: "col-lg-4 col-md-12 mb-3 flex-column",
|
|
14984
15002
|
style: {
|
|
14985
|
-
display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15003
|
+
display: (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.customerEmailrequiered) == 1 ? 'flex' : sectionproperties.showemail == 'Hide' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.customerEmailrequiered) == 0 ? 'none' : (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '6808c6295b598' ? 'none' : 'flex'
|
|
14986
15004
|
}
|
|
14987
15005
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
14988
15006
|
className: "".concat(checkoutstyles.input_label_name) + ' d-flex align-items-start '
|
|
14989
|
-
}, lang.email, ' ', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15007
|
+
}, lang.email, ' ', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '6739bf5880c04' && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
14990
15008
|
"class": "mx-2",
|
|
14991
15009
|
style: {
|
|
14992
15010
|
fontSize: 13
|
|
@@ -15064,7 +15082,7 @@
|
|
|
15064
15082
|
className: sectionproperties.inputfieldcolor == '#ffffff' ? 'col-lg-4 col-md-12 mb-3 selectwhite' : 'col-lg-4 col-md-12 mb-3'
|
|
15065
15083
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15066
15084
|
className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
|
|
15067
|
-
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15085
|
+
}, (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '67e448d2ef6e0' ? langdetect != 'ar' ? 'Governorate' : 'المحافظة' : lang.stategov, authdetailsContext.instinfo.customerAddressrequiered == 1 && /*#__PURE__*/React__default["default"].createElement("sup", {
|
|
15068
15086
|
"class": "mx-2",
|
|
15069
15087
|
style: {
|
|
15070
15088
|
color: 'var(--danger)'
|
|
@@ -15481,7 +15499,7 @@
|
|
|
15481
15499
|
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"
|
|
15482
15500
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15483
15501
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15484
|
-
}, langdetect != 'ar' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15502
|
+
}, langdetect != 'ar' ? sectionproperties.walletnameen : sectionproperties.walletnamear))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.acceptForsaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15485
15503
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15486
15504
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15487
15505
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15503,7 +15521,7 @@
|
|
|
15503
15521
|
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"
|
|
15504
15522
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15505
15523
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15506
|
-
}, langdetect != 'ar' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15524
|
+
}, langdetect != 'ar' ? 'Forsa' : ' Forsa'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.acceptSouhoolaCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15507
15525
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15508
15526
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15509
15527
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15525,7 +15543,7 @@
|
|
|
15525
15543
|
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"
|
|
15526
15544
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15527
15545
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15528
|
-
}, langdetect != 'ar' ? 'Souhoola' : ' Souhoola'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15546
|
+
}, langdetect != 'ar' ? 'Souhoola' : ' Souhoola'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.acceptonlinePaypal) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15529
15547
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15530
15548
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15531
15549
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15547,7 +15565,7 @@
|
|
|
15547
15565
|
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"
|
|
15548
15566
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15549
15567
|
className: "".concat(formstyles.checkbox_label, " + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '")
|
|
15550
|
-
}, langdetect != 'ar' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15568
|
+
}, langdetect != 'ar' ? 'Paypal' : ' Paypal'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.acceptBankInstallementsCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15551
15569
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15552
15570
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15553
15571
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15569,7 +15587,7 @@
|
|
|
15569
15587
|
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"
|
|
15570
15588
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15571
15589
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15572
|
-
}, langdetect != 'ar' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15590
|
+
}, langdetect != 'ar' ? 'Bank Installments' : ' التقسيط عن طريق البنك'))), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.acceptAmanCard) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15573
15591
|
className: "col-xl-4 col-lg-4 col-md-12 mb-3"
|
|
15574
15592
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
15575
15593
|
className: langdetect != 'ar' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
|
|
@@ -15591,7 +15609,7 @@
|
|
|
15591
15609
|
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"
|
|
15592
15610
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15593
15611
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
15594
|
-
}, langdetect != 'ar' ? 'Aman' : 'Aman'))), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15612
|
+
}, langdetect != 'ar' ? 'Aman' : 'Aman'))), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.contactinfo.instid) != '6808cf481006d' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15595
15613
|
"class": "col-12 px-3 px-md-2 my-3"
|
|
15596
15614
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15597
15615
|
"class": ' pb-0 pl-md-2 pr-md-2 ',
|
|
@@ -15601,7 +15619,7 @@
|
|
|
15601
15619
|
dangerouslySetInnerHTML: {
|
|
15602
15620
|
__html: langdetect != 'ar' ? sectionproperties.instapayoptioncontenten : sectionproperties.instapayoptioncontentar
|
|
15603
15621
|
}
|
|
15604
|
-
})), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$
|
|
15622
|
+
})), instapaychosen && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i22 = authdetailsContext.instinfo) === null || _authdetailsContext$i22 === void 0 ? void 0 : _authdetailsContext$i22.contactinfo.instid) == '6808cf481006d' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
15605
15623
|
"class": "col-12 px-3 px-md-2 my-3"
|
|
15606
15624
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
15607
15625
|
"class": ' pb-0 pl-md-2 pr-md-2 ',
|