tabexseriescomponents 0.0.330 → 0.0.332
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 +181 -208
- package/dist/index.esm.js +181 -208
- package/dist/index.umd.js +181 -208
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1088,88 +1088,6 @@
|
|
|
1088
1088
|
});
|
|
1089
1089
|
}
|
|
1090
1090
|
};
|
|
1091
|
-
var defaultstylestransparent = {
|
|
1092
|
-
option: function option(provided, state) {
|
|
1093
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1094
|
-
borderBottom: '1px solid #e6e6e6',
|
|
1095
|
-
backgroundColor: state.isSelected ? '' : '',
|
|
1096
|
-
padding: 5,
|
|
1097
|
-
textTransform: 'capitalize',
|
|
1098
|
-
color: state.isSelected ? '#eac435' : 'black',
|
|
1099
|
-
transition: '.3s',
|
|
1100
|
-
'&:hover': {
|
|
1101
|
-
// color: '#eac435',
|
|
1102
|
-
cursor: 'pointer'
|
|
1103
|
-
}
|
|
1104
|
-
});
|
|
1105
|
-
},
|
|
1106
|
-
control: function control() {
|
|
1107
|
-
return {
|
|
1108
|
-
borderBottom: '1px solid #ccc',
|
|
1109
|
-
backgroundColor: 'transparent',
|
|
1110
|
-
display: 'flex',
|
|
1111
|
-
cursor: 'pointer',
|
|
1112
|
-
padding: 0,
|
|
1113
|
-
transition: '.3s',
|
|
1114
|
-
'&:hover': {
|
|
1115
|
-
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1116
|
-
// borderRadius: '10px',
|
|
1117
|
-
}
|
|
1118
|
-
};
|
|
1119
|
-
},
|
|
1120
|
-
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1121
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1122
|
-
'&:hover': {
|
|
1123
|
-
// color: '#eac435',
|
|
1124
|
-
}
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
};
|
|
1128
|
-
var defaultstylestranslatedtransparent = {
|
|
1129
|
-
option: function option(provided, state) {
|
|
1130
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1131
|
-
borderBottom: '1px solid #e6e6e6',
|
|
1132
|
-
backgroundColor: state.isSelected ? '' : '',
|
|
1133
|
-
padding: 5,
|
|
1134
|
-
textTransform: 'capitalize',
|
|
1135
|
-
// color: state.isSelected ? '#eac435' : '#022648',
|
|
1136
|
-
color: state.isSelected ? '#eac435' : 'black',
|
|
1137
|
-
transition: '.3s',
|
|
1138
|
-
textAlign: 'right',
|
|
1139
|
-
'&:hover': {
|
|
1140
|
-
// color: '#eac435',
|
|
1141
|
-
cursor: 'pointer'
|
|
1142
|
-
}
|
|
1143
|
-
});
|
|
1144
|
-
},
|
|
1145
|
-
control: function control() {
|
|
1146
|
-
return {
|
|
1147
|
-
borderBottom: '1px solid #ccc',
|
|
1148
|
-
backgroundColor: 'transparent',
|
|
1149
|
-
display: 'flex',
|
|
1150
|
-
cursor: 'pointer',
|
|
1151
|
-
padding: 0,
|
|
1152
|
-
transition: '.3s',
|
|
1153
|
-
textAlign: 'right',
|
|
1154
|
-
'&:hover': {
|
|
1155
|
-
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1156
|
-
// borderRadius: '10px',
|
|
1157
|
-
}
|
|
1158
|
-
};
|
|
1159
|
-
},
|
|
1160
|
-
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1161
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1162
|
-
'&:hover': {
|
|
1163
|
-
// color: '#eac435',
|
|
1164
|
-
}
|
|
1165
|
-
});
|
|
1166
|
-
},
|
|
1167
|
-
placeholder: function placeholder(provided, state) {
|
|
1168
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1169
|
-
textAlign: 'right'
|
|
1170
|
-
});
|
|
1171
|
-
}
|
|
1172
|
-
};
|
|
1173
1091
|
var defaultstylesnone = {
|
|
1174
1092
|
option: function option(provided, state) {
|
|
1175
1093
|
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
@@ -7771,7 +7689,7 @@
|
|
|
7771
7689
|
return import('react-select');
|
|
7772
7690
|
});
|
|
7773
7691
|
var Checkout = function Checkout(props) {
|
|
7774
|
-
var _css, _checkoutstyles,
|
|
7692
|
+
var _css, _checkoutstyles, _fetchcustomercartQue99, _fetchcustomercartQue100, _fetchcustomercartQue101, _fetchcustomercartQue102, _fetchcustomercartQue103, _fetchcustomercartQue104, _fetchcustomercartQue113, _fetchcustomercartQue114, _fetchcustomercartQue115, _fetchcustomercartQue116, _fetchcustomercartQue117, _fetchcustomercartQue118, _fetchcustomercartQue119, _fetchcustomercartQue120, _fetchcustomercartQue121, _fetchcustomercartQue124, _fetchcustomercartQue125, _fetchcustomercartQue128, _fetchcustomercartQue129, _fetchcustomercartQue132, _fetchcustomercartQue133, _fetchcustomercartQue136, _fetchcustomercartQue137;
|
|
7775
7693
|
var _useState = React.useState(null),
|
|
7776
7694
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
7777
7695
|
timer = _useState2[0],
|
|
@@ -8093,9 +8011,9 @@
|
|
|
8093
8011
|
}
|
|
8094
8012
|
})), _checkoutstyles);
|
|
8095
8013
|
var Mycart = function Mycart() {
|
|
8096
|
-
var _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue80, _fetchcustomercartQue81, _fetchcustomercartQue82, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _fetchcustomercartQue87, _fetchcustomercartQue88, _fetchcustomercartQue89, _fetchcustomercartQue90;
|
|
8014
|
+
var _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue39, _fetchcustomercartQue40, _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68, _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue75, _fetchcustomercartQue76, _fetchcustomercartQue77, _fetchcustomercartQue78, _fetchcustomercartQue79, _fetchcustomercartQue80, _fetchcustomercartQue81, _fetchcustomercartQue82, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _fetchcustomercartQue87, _fetchcustomercartQue88, _fetchcustomercartQue89, _fetchcustomercartQue90, _fetchcustomercartQue91, _fetchcustomercartQue92, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue95, _fetchcustomercartQue96, _fetchcustomercartQue97, _fetchcustomercartQue98;
|
|
8097
8015
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8098
|
-
className: "row m-0 w-100"
|
|
8016
|
+
className: "row m-0 w-100 mb-md-3"
|
|
8099
8017
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8100
8018
|
className: "col-lg-12 d-flex align-items-center p-0"
|
|
8101
8019
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -8309,7 +8227,29 @@
|
|
|
8309
8227
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8310
8228
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8311
8229
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
8312
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : (_fetchcustomercartQue64 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))
|
|
8230
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue63 === void 0 ? void 0 : (_fetchcustomercartQue64 = _fetchcustomercartQue63.data) === null || _fetchcustomercartQue64 === void 0 ? void 0 : _fetchcustomercartQue64.customercart.totalprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), sectionproperties.showtotalsection == 'Show' && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : (_fetchcustomercartQue66 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : (_fetchcustomercartQue67 = _fetchcustomercartQue66.customercart) === null || _fetchcustomercartQue67 === void 0 ? void 0 : (_fetchcustomercartQue68 = _fetchcustomercartQue67.genpayments) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8231
|
+
className: "row m-0 w-100"
|
|
8232
|
+
}, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : (_fetchcustomercartQue70 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : (_fetchcustomercartQue71 = _fetchcustomercartQue70.customercart) === null || _fetchcustomercartQue71 === void 0 ? void 0 : (_fetchcustomercartQue72 = _fetchcustomercartQue71.genpayments) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.map(function (item, index) {
|
|
8233
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8234
|
+
"class": "col-lg-12 p-0"
|
|
8235
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8236
|
+
className: "row m-0 w-100"
|
|
8237
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8238
|
+
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
8239
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8240
|
+
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak ',
|
|
8241
|
+
style: {
|
|
8242
|
+
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
8243
|
+
}
|
|
8244
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8245
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8246
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8247
|
+
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
|
|
8248
|
+
style: {
|
|
8249
|
+
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
8250
|
+
}
|
|
8251
|
+
}, 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, "%")))));
|
|
8252
|
+
}))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : (_fetchcustomercartQue74 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : (_fetchcustomercartQue75 = _fetchcustomercartQue74.customercart) === null || _fetchcustomercartQue75 === void 0 ? void 0 : _fetchcustomercartQue75.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8313
8253
|
className: "row m-0 w-100"
|
|
8314
8254
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8315
8255
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -8322,7 +8262,7 @@
|
|
|
8322
8262
|
style: {
|
|
8323
8263
|
color: 'red'
|
|
8324
8264
|
}
|
|
8325
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8265
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue76 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : (_fetchcustomercartQue77 = _fetchcustomercartQue76.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : (_fetchcustomercartQue78 = _fetchcustomercartQue77.customercart) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 ? void 0 : (_fetchcustomercartQue80 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : (_fetchcustomercartQue82 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8326
8266
|
className: "col-lg-12 p-0 mb-1"
|
|
8327
8267
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8328
8268
|
className: "row m-0 w-100"
|
|
@@ -8334,7 +8274,7 @@
|
|
|
8334
8274
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8335
8275
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8336
8276
|
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 '
|
|
8337
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8277
|
+
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : (_fetchcustomercartQue84 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.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 ? void 0 : (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue85 === void 0 ? void 0 : (_fetchcustomercartQue86 = _fetchcustomercartQue85.data) === null || _fetchcustomercartQue86 === void 0 ? void 0 : _fetchcustomercartQue86.customercart.discountprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 ? void 0 : (_fetchcustomercartQue88 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8338
8278
|
className: "col-lg-12 p-0"
|
|
8339
8279
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8340
8280
|
className: "row m-0 w-100"
|
|
@@ -8342,11 +8282,11 @@
|
|
|
8342
8282
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
8343
8283
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8344
8284
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
8345
|
-
}, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8285
|
+
}, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 ? void 0 : (_fetchcustomercartQue90 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue90 === void 0 ? void 0 : _fetchcustomercartQue90.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8346
8286
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8347
8287
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8348
8288
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
8349
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8289
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue91 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue91 === void 0 ? void 0 : (_fetchcustomercartQue92 = _fetchcustomercartQue91.data) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.customercart.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue93 !== void 0 && (_fetchcustomercartQue94 = _fetchcustomercartQue93.data) !== null && _fetchcustomercartQue94 !== void 0 && _fetchcustomercartQue94.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8350
8290
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8351
8291
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8352
8292
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -8385,7 +8325,7 @@
|
|
|
8385
8325
|
textTransform: sectionproperties.total_texttransform,
|
|
8386
8326
|
color: sectionproperties.total_color
|
|
8387
8327
|
}
|
|
8388
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8328
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue95 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue95 === void 0 ? void 0 : (_fetchcustomercartQue96 = _fetchcustomercartQue95.data) === null || _fetchcustomercartQue96 === void 0 ? void 0 : _fetchcustomercartQue96.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", {
|
|
8389
8329
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
8390
8330
|
style: {
|
|
8391
8331
|
background: '#eee',
|
|
@@ -8418,7 +8358,7 @@
|
|
|
8418
8358
|
width: "20px",
|
|
8419
8359
|
height: "20px",
|
|
8420
8360
|
duration: "1s"
|
|
8421
|
-
}), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8361
|
+
}), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 ? void 0 : (_fetchcustomercartQue98 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.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 : ''))))));
|
|
8422
8362
|
};
|
|
8423
8363
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8424
8364
|
className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
|
|
@@ -8565,7 +8505,7 @@
|
|
|
8565
8505
|
}, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8566
8506
|
type: 'text',
|
|
8567
8507
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8568
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8508
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue99 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue99 === void 0 ? void 0 : (_fetchcustomercartQue100 = _fetchcustomercartQue99.data) === null || _fetchcustomercartQue100 === void 0 ? void 0 : _fetchcustomercartQue100.customercart.name,
|
|
8569
8509
|
onChange: function onChange(event) {
|
|
8570
8510
|
cartinfoupdater('name', event.target.value);
|
|
8571
8511
|
},
|
|
@@ -8580,7 +8520,7 @@
|
|
|
8580
8520
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8581
8521
|
type: 'text',
|
|
8582
8522
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8583
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8523
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue101 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue101 === void 0 ? void 0 : (_fetchcustomercartQue102 = _fetchcustomercartQue101.data) === null || _fetchcustomercartQue102 === void 0 ? void 0 : _fetchcustomercartQue102.customercart.mobile,
|
|
8584
8524
|
onChange: function onChange(event) {
|
|
8585
8525
|
cartinfoupdater('mobile', event.target.value);
|
|
8586
8526
|
},
|
|
@@ -8595,7 +8535,7 @@
|
|
|
8595
8535
|
}, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8596
8536
|
type: 'text',
|
|
8597
8537
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8598
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8538
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue103 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue103 === void 0 ? void 0 : (_fetchcustomercartQue104 = _fetchcustomercartQue103.data) === null || _fetchcustomercartQue104 === void 0 ? void 0 : _fetchcustomercartQue104.customercart.email,
|
|
8599
8539
|
onChange: function onChange(event) {
|
|
8600
8540
|
cartinfoupdater('email', event.target.value);
|
|
8601
8541
|
},
|
|
@@ -8639,8 +8579,8 @@
|
|
|
8639
8579
|
return option.id;
|
|
8640
8580
|
},
|
|
8641
8581
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
8642
|
-
var
|
|
8643
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8582
|
+
var _fetchcustomercartQue105, _fetchcustomercartQue106;
|
|
8583
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue105 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue105 === void 0 ? void 0 : (_fetchcustomercartQue106 = _fetchcustomercartQue105.data) === null || _fetchcustomercartQue106 === void 0 ? void 0 : _fetchcustomercartQue106.customercart.countryid);
|
|
8644
8584
|
}),
|
|
8645
8585
|
onChange: function onChange(option) {
|
|
8646
8586
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$24({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -8685,12 +8625,12 @@
|
|
|
8685
8625
|
return option.id;
|
|
8686
8626
|
},
|
|
8687
8627
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
8688
|
-
var
|
|
8689
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8628
|
+
var _fetchcustomercartQue107, _fetchcustomercartQue108;
|
|
8629
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue107 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue107 === void 0 ? void 0 : (_fetchcustomercartQue108 = _fetchcustomercartQue107.data) === null || _fetchcustomercartQue108 === void 0 ? void 0 : _fetchcustomercartQue108.customercart.stateid);
|
|
8690
8630
|
}),
|
|
8691
8631
|
onChange: function onChange(option) {
|
|
8692
|
-
var
|
|
8693
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8632
|
+
var _fetchcustomercartQue109, _fetchcustomercartQue110;
|
|
8633
|
+
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue109 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue109 === void 0 ? void 0 : (_fetchcustomercartQue110 = _fetchcustomercartQue109.data) === null || _fetchcustomercartQue110 === void 0 ? void 0 : _fetchcustomercartQue110.customercart.countryid.length) != 0) {
|
|
8694
8634
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$24({}, FetchTabexStatesPayloadobjContext);
|
|
8695
8635
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
8696
8636
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -8733,8 +8673,8 @@
|
|
|
8733
8673
|
return option.id;
|
|
8734
8674
|
},
|
|
8735
8675
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
8736
|
-
var
|
|
8737
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8676
|
+
var _fetchcustomercartQue111, _fetchcustomercartQue112;
|
|
8677
|
+
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue111 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue111 === void 0 ? void 0 : (_fetchcustomercartQue112 = _fetchcustomercartQue111.data) === null || _fetchcustomercartQue112 === void 0 ? void 0 : _fetchcustomercartQue112.customercart.cityid);
|
|
8738
8678
|
}),
|
|
8739
8679
|
onChange: function onChange(option) {
|
|
8740
8680
|
cartinfoupdater('cityid', option.id);
|
|
@@ -8749,7 +8689,7 @@
|
|
|
8749
8689
|
}, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
8750
8690
|
type: 'text',
|
|
8751
8691
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8752
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8692
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue113 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue113 === void 0 ? void 0 : (_fetchcustomercartQue114 = _fetchcustomercartQue113.data) === null || _fetchcustomercartQue114 === void 0 ? void 0 : _fetchcustomercartQue114.customercart.address,
|
|
8753
8693
|
onChange: function onChange(event) {
|
|
8754
8694
|
cartinfoupdater('address', event.target.value);
|
|
8755
8695
|
},
|
|
@@ -8764,7 +8704,7 @@
|
|
|
8764
8704
|
}, langdetect == 'en' ? 'Notes' : 'الملاحظات'), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
|
|
8765
8705
|
type: 'text',
|
|
8766
8706
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8767
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8707
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue115 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue115 === void 0 ? void 0 : (_fetchcustomercartQue116 = _fetchcustomercartQue115.data) === null || _fetchcustomercartQue116 === void 0 ? void 0 : _fetchcustomercartQue116.customercart.notes,
|
|
8768
8708
|
onChange: function onChange(event) {
|
|
8769
8709
|
cartinfoupdater('notes', event.target.value);
|
|
8770
8710
|
},
|
|
@@ -8779,7 +8719,7 @@
|
|
|
8779
8719
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8780
8720
|
type: 'number',
|
|
8781
8721
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8782
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8722
|
+
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue117 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue117 === void 0 ? void 0 : (_fetchcustomercartQue118 = _fetchcustomercartQue117.data) === null || _fetchcustomercartQue118 === void 0 ? void 0 : (_fetchcustomercartQue119 = _fetchcustomercartQue118.customercart) === null || _fetchcustomercartQue119 === void 0 ? void 0 : _fetchcustomercartQue119.aff_code,
|
|
8783
8723
|
onChange: function onChange(event) {
|
|
8784
8724
|
cartinfoupdater('aff_code', event.target.value);
|
|
8785
8725
|
},
|
|
@@ -8810,10 +8750,10 @@
|
|
|
8810
8750
|
id: 'codcheckbox',
|
|
8811
8751
|
type: "checkbox",
|
|
8812
8752
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8813
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8753
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue120 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue120 === void 0 ? void 0 : (_fetchcustomercartQue121 = _fetchcustomercartQue120.data) === null || _fetchcustomercartQue121 === void 0 ? void 0 : _fetchcustomercartQue121.customercart.paymentmethod) == 'cod' ? true : false,
|
|
8814
8754
|
onChange: function onChange() {
|
|
8815
|
-
var
|
|
8816
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8755
|
+
var _fetchcustomercartQue122, _fetchcustomercartQue123;
|
|
8756
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue122 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue122 === void 0 ? void 0 : (_fetchcustomercartQue123 = _fetchcustomercartQue122.data) === null || _fetchcustomercartQue123 === void 0 ? void 0 : _fetchcustomercartQue123.customercart.paymentmethod) != 'cod') {
|
|
8817
8757
|
cartinfoupdater('paymentmethod', 'cod');
|
|
8818
8758
|
}
|
|
8819
8759
|
}
|
|
@@ -8834,10 +8774,10 @@
|
|
|
8834
8774
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8835
8775
|
type: "checkbox",
|
|
8836
8776
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8837
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8777
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue124 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue124 === void 0 ? void 0 : (_fetchcustomercartQue125 = _fetchcustomercartQue124.data) === null || _fetchcustomercartQue125 === void 0 ? void 0 : _fetchcustomercartQue125.customercart.paymentmethod) == 'cardondelivery' ? true : false,
|
|
8838
8778
|
onChange: function onChange() {
|
|
8839
|
-
var
|
|
8840
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8779
|
+
var _fetchcustomercartQue126, _fetchcustomercartQue127;
|
|
8780
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue126 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue126 === void 0 ? void 0 : (_fetchcustomercartQue127 = _fetchcustomercartQue126.data) === null || _fetchcustomercartQue127 === void 0 ? void 0 : _fetchcustomercartQue127.customercart.paymentmethod) != 'cardondelivery') {
|
|
8841
8781
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
8842
8782
|
}
|
|
8843
8783
|
}
|
|
@@ -8855,10 +8795,10 @@
|
|
|
8855
8795
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8856
8796
|
type: "checkbox",
|
|
8857
8797
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8858
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8798
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue128 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue128 === void 0 ? void 0 : (_fetchcustomercartQue129 = _fetchcustomercartQue128.data) === null || _fetchcustomercartQue129 === void 0 ? void 0 : _fetchcustomercartQue129.customercart.paymentmethod) == 'onlinepayment' ? true : false,
|
|
8859
8799
|
onChange: function onChange() {
|
|
8860
|
-
var
|
|
8861
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8800
|
+
var _fetchcustomercartQue130, _fetchcustomercartQue131;
|
|
8801
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue130 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue130 === void 0 ? void 0 : (_fetchcustomercartQue131 = _fetchcustomercartQue130.data) === null || _fetchcustomercartQue131 === void 0 ? void 0 : _fetchcustomercartQue131.customercart.paymentmethod) != 'onlinepayment') {
|
|
8862
8802
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
8863
8803
|
}
|
|
8864
8804
|
}
|
|
@@ -8876,10 +8816,10 @@
|
|
|
8876
8816
|
}, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
8877
8817
|
type: "checkbox",
|
|
8878
8818
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8879
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8819
|
+
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue132 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue132 === void 0 ? void 0 : (_fetchcustomercartQue133 = _fetchcustomercartQue132.data) === null || _fetchcustomercartQue133 === void 0 ? void 0 : _fetchcustomercartQue133.customercart.paymentmethod) == 'valU' ? true : false,
|
|
8880
8820
|
onChange: function onChange() {
|
|
8881
|
-
var
|
|
8882
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8821
|
+
var _fetchcustomercartQue134, _fetchcustomercartQue135;
|
|
8822
|
+
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue134 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue134 === void 0 ? void 0 : (_fetchcustomercartQue135 = _fetchcustomercartQue134.data) === null || _fetchcustomercartQue135 === void 0 ? void 0 : _fetchcustomercartQue135.customercart.paymentmethod) != 'valU') {
|
|
8883
8823
|
cartinfoupdater('paymentmethod', 'valU');
|
|
8884
8824
|
}
|
|
8885
8825
|
}
|
|
@@ -8890,7 +8830,7 @@
|
|
|
8890
8830
|
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"
|
|
8891
8831
|
})), /*#__PURE__*/React__default["default"].createElement("p", {
|
|
8892
8832
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
8893
|
-
}, " ValU")))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8833
|
+
}, " ValU")))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue136 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue136 === void 0 ? void 0 : (_fetchcustomercartQue137 = _fetchcustomercartQue136.data) === null || _fetchcustomercartQue137 === void 0 ? void 0 : _fetchcustomercartQue137.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8894
8834
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
8895
8835
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
8896
8836
|
style: {
|
|
@@ -13229,6 +13169,7 @@
|
|
|
13229
13169
|
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
13230
13170
|
var _categories;
|
|
13231
13171
|
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
13172
|
+
// alert(JSON.stringify(categories));
|
|
13232
13173
|
var parentcollections = [];
|
|
13233
13174
|
(_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
|
|
13234
13175
|
catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
@@ -13246,6 +13187,15 @@
|
|
|
13246
13187
|
});
|
|
13247
13188
|
parentcollections = arrafterfilter;
|
|
13248
13189
|
}
|
|
13190
|
+
if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
|
|
13191
|
+
var arrafterfilter = [];
|
|
13192
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
13193
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
13194
|
+
arrafterfilter.push(parentcolitem);
|
|
13195
|
+
}
|
|
13196
|
+
});
|
|
13197
|
+
parentcollections = arrafterfilter;
|
|
13198
|
+
}
|
|
13249
13199
|
}
|
|
13250
13200
|
if (fetchingtype == 'innercategories') {
|
|
13251
13201
|
var arrafterfilter = [];
|
|
@@ -13825,6 +13775,8 @@
|
|
|
13825
13775
|
} else {
|
|
13826
13776
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
|
|
13827
13777
|
}
|
|
13778
|
+
} else if (fetchingtype == 'parentcollections') {
|
|
13779
|
+
routingcountext(StaticPagesLinksContext.InnerCategory, true, 'parentcollections/' + (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid), true);
|
|
13828
13780
|
} else {
|
|
13829
13781
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
13830
13782
|
}
|
|
@@ -35432,7 +35384,7 @@
|
|
|
35432
35384
|
function ownKeys$1o(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35433
35385
|
function _objectSpread$1o(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1o(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1o(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35434
35386
|
var Footer8 = function Footer8(props) {
|
|
35435
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i8, _authdetailsContext$i9, _templatepropcontext$;
|
|
35387
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i10, _authdetailsContext$i13, _authdetailsContext$i16, _authdetailsContext$i19, _templatepropcontext$;
|
|
35436
35388
|
var _useState = React.useState(''),
|
|
35437
35389
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
35438
35390
|
sectionproperties = _useState2[0],
|
|
@@ -35730,39 +35682,52 @@
|
|
|
35730
35682
|
}
|
|
35731
35683
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35732
35684
|
"class": 'col-lg-12 p-0 d-flex align-items-center justify-content-start mt-3'
|
|
35733
|
-
}, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35734
|
-
"class": "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
|
|
35685
|
+
}, sectionproperties.fbbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.facebooklink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35686
|
+
"class": langdetect == 'en' ? "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center mr-2 ' : "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center ml-2 ',
|
|
35735
35687
|
onClick: function onClick() {
|
|
35736
|
-
var _authdetailsContext$
|
|
35737
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35738
|
-
var _authdetailsContext$
|
|
35739
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35688
|
+
var _authdetailsContext$i11;
|
|
35689
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.facebooklink) != null) {
|
|
35690
|
+
var _authdetailsContext$i12;
|
|
35691
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.facebooklink, '_blank');
|
|
35740
35692
|
}
|
|
35741
35693
|
}
|
|
35742
35694
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
|
|
35743
35695
|
size: sectionproperties.facebkbtnniconfontsize
|
|
35744
|
-
})), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35745
|
-
"class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-
|
|
35696
|
+
})), sectionproperties.instbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instagramlink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35697
|
+
"class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-2 mr-2 ',
|
|
35746
35698
|
onClick: function onClick() {
|
|
35747
|
-
var _authdetailsContext$
|
|
35748
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35749
|
-
var _authdetailsContext$
|
|
35750
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35699
|
+
var _authdetailsContext$i14;
|
|
35700
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.instagramlink) != null) {
|
|
35701
|
+
var _authdetailsContext$i15;
|
|
35702
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.instagramlink, '_blank');
|
|
35751
35703
|
}
|
|
35752
35704
|
}
|
|
35753
35705
|
}, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
|
|
35754
35706
|
size: sectionproperties.instgrambtniconfontsize
|
|
35755
|
-
})), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35756
|
-
"class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ',
|
|
35707
|
+
})), sectionproperties.youtbtn_show == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i16 = authdetailsContext.instinfo) === null || _authdetailsContext$i16 === void 0 ? void 0 : _authdetailsContext$i16.whatsappnumber) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35708
|
+
"class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-2 mr-2 ',
|
|
35757
35709
|
onClick: function onClick() {
|
|
35758
|
-
var _authdetailsContext$
|
|
35759
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35760
|
-
var _authdetailsContext$
|
|
35761
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35710
|
+
var _authdetailsContext$i17;
|
|
35711
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.whatsappnumber) != null) {
|
|
35712
|
+
var _authdetailsContext$i18;
|
|
35713
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i18 = authdetailsContext.instinfo) === null || _authdetailsContext$i18 === void 0 ? void 0 : _authdetailsContext$i18.whatsappnumber), '_blank');
|
|
35762
35714
|
}
|
|
35763
35715
|
}
|
|
35764
35716
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
35765
35717
|
size: sectionproperties.youtubebtniconfontsize
|
|
35718
|
+
})), sectionproperties.tiktokshow == 'Show' && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i19 = authdetailsContext.instinfo) === null || _authdetailsContext$i19 === void 0 ? void 0 : _authdetailsContext$i19.tiktoklink) != null && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35719
|
+
"class": langdetect == 'en' ? "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-2' : "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center mr-2 '
|
|
35720
|
+
// class={`${footerStyles.youtube_btn}` + ' d-flex align-items-center justify-content-center ml-1 mr-1 '}
|
|
35721
|
+
,
|
|
35722
|
+
onClick: function onClick() {
|
|
35723
|
+
var _authdetailsContext$i20;
|
|
35724
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.tiktoklink) != null) {
|
|
35725
|
+
var _authdetailsContext$i21;
|
|
35726
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.tiktoklink, '_blank');
|
|
35727
|
+
}
|
|
35728
|
+
}
|
|
35729
|
+
}, /*#__PURE__*/React__default["default"].createElement(IoLogoTiktok.IoLogoTiktok, {
|
|
35730
|
+
size: sectionproperties.youtubebtniconfontsize
|
|
35766
35731
|
})))))), sectionproperties.showhidemainpages == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
35767
35732
|
"class": "row m-0 allcentered"
|
|
35768
35733
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -42593,7 +42558,7 @@
|
|
|
42593
42558
|
}
|
|
42594
42559
|
},
|
|
42595
42560
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42596
|
-
placeholder:
|
|
42561
|
+
placeholder: '',
|
|
42597
42562
|
isSearchable: true
|
|
42598
42563
|
})), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42599
42564
|
className: props.srcfrom == 'filter' ? ' col-lg-4 col-md-12 col-sm-12 mb-sm-3 ' : sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
@@ -42613,7 +42578,7 @@
|
|
|
42613
42578
|
duration: "1s"
|
|
42614
42579
|
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
42615
42580
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42616
|
-
placeholder:
|
|
42581
|
+
placeholder: '',
|
|
42617
42582
|
isSearchable: true
|
|
42618
42583
|
}), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
42619
42584
|
options: fetchTabexStatesQueryContext.data.data.states,
|
|
@@ -42652,7 +42617,7 @@
|
|
|
42652
42617
|
}
|
|
42653
42618
|
},
|
|
42654
42619
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42655
|
-
placeholder:
|
|
42620
|
+
placeholder: '',
|
|
42656
42621
|
isSearchable: true
|
|
42657
42622
|
})), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42658
42623
|
className: props.srcfrom == 'filter' ? ' col-lg-4 col-md-12 col-sm-12 mb-sm-3 ' : sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
@@ -42671,7 +42636,7 @@
|
|
|
42671
42636
|
height: "20px",
|
|
42672
42637
|
duration: "1s"
|
|
42673
42638
|
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
42674
|
-
placeholder:
|
|
42639
|
+
placeholder: '',
|
|
42675
42640
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42676
42641
|
isSearchable: true
|
|
42677
42642
|
}), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
|
|
@@ -42707,7 +42672,7 @@
|
|
|
42707
42672
|
}
|
|
42708
42673
|
},
|
|
42709
42674
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42710
|
-
placeholder:
|
|
42675
|
+
placeholder: '',
|
|
42711
42676
|
isSearchable: true
|
|
42712
42677
|
})), sectionproperties.hideaddress == 'Show' && props.srcfrom != 'filter' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42713
42678
|
className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
@@ -42755,7 +42720,7 @@
|
|
|
42755
42720
|
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
42756
42721
|
imagesarray = _useState6[0],
|
|
42757
42722
|
setimagesarray = _useState6[1];
|
|
42758
|
-
|
|
42723
|
+
props.actions.lang;
|
|
42759
42724
|
var langdetect = props.actions.langdetect;
|
|
42760
42725
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
42761
42726
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
@@ -42768,6 +42733,7 @@
|
|
|
42768
42733
|
var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
|
|
42769
42734
|
var routingcountext = props.actions.routingcountext;
|
|
42770
42735
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
42736
|
+
// const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
42771
42737
|
var _useState7 = React.useState({
|
|
42772
42738
|
countryid: '',
|
|
42773
42739
|
stateid: '',
|
|
@@ -42776,14 +42742,35 @@
|
|
|
42776
42742
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
42777
42743
|
payloadobj = _useState8[0],
|
|
42778
42744
|
setpayloadobj = _useState8[1];
|
|
42745
|
+
var _useState9 = React.useState([]),
|
|
42746
|
+
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
42747
|
+
collectionsarray = _useState10[0],
|
|
42748
|
+
setcollectionsarray = _useState10[1];
|
|
42749
|
+
var _useState11 = React.useState([]),
|
|
42750
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2);
|
|
42751
|
+
_useState12[0];
|
|
42752
|
+
_useState12[1];
|
|
42779
42753
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
42780
42754
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
42755
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
42756
|
+
props.actions.fetchcollectionsQueryContext;
|
|
42781
42757
|
React.useEffect(function () {
|
|
42782
42758
|
var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
|
|
42783
42759
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
42760
|
+
tempFetchQueriesEngineContext.collections = true;
|
|
42784
42761
|
setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
|
|
42785
42762
|
var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
|
|
42763
|
+
|
|
42764
|
+
// authdetailsContext?.instinfo?.instcollections?
|
|
42786
42765
|
}, []);
|
|
42766
|
+
React.useEffect(function () {
|
|
42767
|
+
var _authdetailsContext$i, _authdetailsContext$i2;
|
|
42768
|
+
var temppcollarray = _toConsumableArray__default["default"](collectionsarray);
|
|
42769
|
+
authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instcollections) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.forEach(function (arrayItem) {
|
|
42770
|
+
temppcollarray.push(arrayItem);
|
|
42771
|
+
});
|
|
42772
|
+
setcollectionsarray(_toConsumableArray__default["default"](temppcollarray));
|
|
42773
|
+
}, [authdetailsContext]);
|
|
42787
42774
|
React.useEffect(function () {
|
|
42788
42775
|
var secpropobj = {};
|
|
42789
42776
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -42794,7 +42781,6 @@
|
|
|
42794
42781
|
}
|
|
42795
42782
|
});
|
|
42796
42783
|
setsectionproperties(_objectSpread$15({}, secpropobj));
|
|
42797
|
-
// alert(JSON.stringify(fetchTabexCountriesQueryContext));
|
|
42798
42784
|
}, [StatePagePropertiesContext]);
|
|
42799
42785
|
React.useEffect(function () {
|
|
42800
42786
|
if (sectionproperties.length != 0) {
|
|
@@ -42882,29 +42868,6 @@
|
|
|
42882
42868
|
}
|
|
42883
42869
|
})
|
|
42884
42870
|
};
|
|
42885
|
-
var countries = [{
|
|
42886
|
-
value: 'egypt',
|
|
42887
|
-
label: 'Egypt'
|
|
42888
|
-
}, {
|
|
42889
|
-
value: 'algeria',
|
|
42890
|
-
label: 'Algeria'
|
|
42891
|
-
}, {
|
|
42892
|
-
value: 'georgia',
|
|
42893
|
-
label: 'Georgia'
|
|
42894
|
-
}];
|
|
42895
|
-
var states = [{
|
|
42896
|
-
value: 'cairo',
|
|
42897
|
-
label: 'Cairo'
|
|
42898
|
-
}, {
|
|
42899
|
-
vlaue: 'giza',
|
|
42900
|
-
label: 'Giza'
|
|
42901
|
-
}, {
|
|
42902
|
-
vlaue: 'chlef',
|
|
42903
|
-
label: 'Chlef'
|
|
42904
|
-
}, {
|
|
42905
|
-
vlaue: 'alabama',
|
|
42906
|
-
label: 'Alabama'
|
|
42907
|
-
}];
|
|
42908
42871
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42909
42872
|
"class": sectionstyles.container + ' allcentered mx-md-0 '
|
|
42910
42873
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -42981,37 +42944,7 @@
|
|
|
42981
42944
|
fontWeight: sectionproperties.formRightTextFontWeight2,
|
|
42982
42945
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
42983
42946
|
}
|
|
42984
|
-
}, langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42985
|
-
"class": "row m-0 w-100 mt-2"
|
|
42986
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42987
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
42988
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
42989
|
-
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
42990
|
-
}, lang.country), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
42991
|
-
options: countries,
|
|
42992
|
-
styles: langdetect == 'en' ? defaultstylestransparent : defaultstylestranslatedtransparent
|
|
42993
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42994
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
42995
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
42996
|
-
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
42997
|
-
}, langdetect == 'en' ? 'State' : 'الولاية'), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
42998
|
-
options: states,
|
|
42999
|
-
styles: langdetect == 'en' ? defaultstylestransparent : defaultstylestranslatedtransparent
|
|
43000
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43001
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
43002
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
43003
|
-
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
43004
|
-
}, langdetect == 'en' ? 'From' : 'من'), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
43005
|
-
className: "".concat(sectionstyles.dateInput),
|
|
43006
|
-
type: "date"
|
|
43007
|
-
}))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43008
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
43009
|
-
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
43010
|
-
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
43011
|
-
}, langdetect == 'en' ? 'To' : 'إلى'), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("input", {
|
|
43012
|
-
className: "".concat(sectionstyles.dateInput),
|
|
43013
|
-
type: "date"
|
|
43014
|
-
})))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42947
|
+
}, langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43015
42948
|
"class": "row m-0 w-100 justify-content-center"
|
|
43016
42949
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
43017
42950
|
"class": sectionstyles.btnstyles + ' allcentered '
|
|
@@ -43028,7 +42961,7 @@
|
|
|
43028
42961
|
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43029
42962
|
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
43030
42963
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43031
|
-
"class": "wordbreak",
|
|
42964
|
+
"class": "wordbreak text-md-center",
|
|
43032
42965
|
style: {
|
|
43033
42966
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
43034
42967
|
color: sectionproperties.sectionTitleColor,
|
|
@@ -43047,7 +42980,7 @@
|
|
|
43047
42980
|
maxWidth: '500px'
|
|
43048
42981
|
}
|
|
43049
42982
|
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43050
|
-
"class":
|
|
42983
|
+
"class": sectionproperties.showcollectionsfilter == 'Show' ? 'col-lg-11 col-md-10 col-sm-10 allcentered mt-3' : 'col-lg-9 col-md-10 col-sm-10 allcentered mt-3',
|
|
43051
42984
|
style: {
|
|
43052
42985
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
43053
42986
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
@@ -43062,8 +42995,45 @@
|
|
|
43062
42995
|
"class": "col-lg-12 p-0"
|
|
43063
42996
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43064
42997
|
"class": "row m-0 w-100 allcentered"
|
|
43065
|
-
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43066
|
-
|
|
42998
|
+
}, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
42999
|
+
className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
|
|
43000
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
43001
|
+
className: ' d-flex justify-content-start ',
|
|
43002
|
+
style: {
|
|
43003
|
+
color: sectionproperties.form_labelcolor,
|
|
43004
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
43005
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
43006
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
43007
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
43008
|
+
}
|
|
43009
|
+
}, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
|
|
43010
|
+
options: collectionsarray,
|
|
43011
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
43012
|
+
var crname = '';
|
|
43013
|
+
if (langdetect == 'en') {
|
|
43014
|
+
crname = option.title_en;
|
|
43015
|
+
} else if (langdetect == 'ar') {
|
|
43016
|
+
crname = option.title_ar;
|
|
43017
|
+
}
|
|
43018
|
+
return crname;
|
|
43019
|
+
},
|
|
43020
|
+
getOptionValue: function getOptionValue(option) {
|
|
43021
|
+
return option.collectionid;
|
|
43022
|
+
},
|
|
43023
|
+
autocomplete: "new-password"
|
|
43024
|
+
// value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == props?.payloadobj?.countryid)}
|
|
43025
|
+
,
|
|
43026
|
+
onChange: function onChange(option) {
|
|
43027
|
+
var temp = payloadobj;
|
|
43028
|
+
temp.collections = [];
|
|
43029
|
+
temp.collections.push(option.collectionid);
|
|
43030
|
+
setpayloadobj(_objectSpread$15({}, temp));
|
|
43031
|
+
},
|
|
43032
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
43033
|
+
isSearchable: true,
|
|
43034
|
+
placeholder: ''
|
|
43035
|
+
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43036
|
+
"class": sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Show' && sectionproperties.showpricerange == 'Show' ? 'col-lg-8 p-0' : sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'
|
|
43067
43037
|
}, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm
|
|
43068
43038
|
// customeraddressrequierd={customeraddressrequierd}
|
|
43069
43039
|
// payloadobj={payloadobj}
|
|
@@ -43081,7 +43051,7 @@
|
|
|
43081
43051
|
fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
|
|
43082
43052
|
fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
|
|
43083
43053
|
})), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43084
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
|
|
43054
|
+
className: sectionproperties.showcollectionsfilter == 'Show' && sectionproperties.showpricerange == 'Show' && sectionproperties.showpricerange == 'Show' ? "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-2 col-md-12 col-sm-12 mb-sm-3 ' : "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
|
|
43085
43055
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
43086
43056
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
|
|
43087
43057
|
}, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -43094,14 +43064,14 @@
|
|
|
43094
43064
|
formatLabel: function formatLabel(value) {
|
|
43095
43065
|
return "".concat(value);
|
|
43096
43066
|
},
|
|
43097
|
-
maxValue:
|
|
43098
|
-
minValue:
|
|
43067
|
+
maxValue: parseInt(sectionproperties.filterpricemaxvalue),
|
|
43068
|
+
minValue: parseInt(sectionproperties.filterpriceminvalue),
|
|
43099
43069
|
value: pricevalue,
|
|
43100
43070
|
onChange: function onChange(value) {
|
|
43101
43071
|
setpricevalue(_objectSpread$15({}, value));
|
|
43102
43072
|
}
|
|
43103
|
-
}))
|
|
43104
|
-
"class":
|
|
43073
|
+
}))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43074
|
+
"class": 'col-lg-12 mt-3 p-0 allcentered'
|
|
43105
43075
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
43106
43076
|
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
43107
43077
|
onClick: function onClick() {
|
|
@@ -43128,6 +43098,9 @@
|
|
|
43128
43098
|
tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
|
|
43129
43099
|
}
|
|
43130
43100
|
}
|
|
43101
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
|
|
43102
|
+
tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
|
|
43103
|
+
}
|
|
43131
43104
|
if ((pricevalue === null || pricevalue === void 0 ? void 0 : pricevalue.min) != null && (pricevalue === null || pricevalue === void 0 ? void 0 : (_pricevalue$min = pricevalue.min) === null || _pricevalue$min === void 0 ? void 0 : _pricevalue$min.length) != 0) {
|
|
43132
43105
|
tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
|
|
43133
43106
|
}
|