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.esm.js
CHANGED
|
@@ -1200,88 +1200,6 @@ var defaultstylestranslated = {
|
|
|
1200
1200
|
});
|
|
1201
1201
|
}
|
|
1202
1202
|
};
|
|
1203
|
-
var defaultstylestransparent = {
|
|
1204
|
-
option: function option(provided, state) {
|
|
1205
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1206
|
-
borderBottom: '1px solid #e6e6e6',
|
|
1207
|
-
backgroundColor: state.isSelected ? '' : '',
|
|
1208
|
-
padding: 5,
|
|
1209
|
-
textTransform: 'capitalize',
|
|
1210
|
-
color: state.isSelected ? '#eac435' : 'black',
|
|
1211
|
-
transition: '.3s',
|
|
1212
|
-
'&:hover': {
|
|
1213
|
-
// color: '#eac435',
|
|
1214
|
-
cursor: 'pointer'
|
|
1215
|
-
}
|
|
1216
|
-
});
|
|
1217
|
-
},
|
|
1218
|
-
control: function control() {
|
|
1219
|
-
return {
|
|
1220
|
-
borderBottom: '1px solid #ccc',
|
|
1221
|
-
backgroundColor: 'transparent',
|
|
1222
|
-
display: 'flex',
|
|
1223
|
-
cursor: 'pointer',
|
|
1224
|
-
padding: 0,
|
|
1225
|
-
transition: '.3s',
|
|
1226
|
-
'&:hover': {
|
|
1227
|
-
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1228
|
-
// borderRadius: '10px',
|
|
1229
|
-
}
|
|
1230
|
-
};
|
|
1231
|
-
},
|
|
1232
|
-
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1233
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1234
|
-
'&:hover': {
|
|
1235
|
-
// color: '#eac435',
|
|
1236
|
-
}
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
};
|
|
1240
|
-
var defaultstylestranslatedtransparent = {
|
|
1241
|
-
option: function option(provided, state) {
|
|
1242
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1243
|
-
borderBottom: '1px solid #e6e6e6',
|
|
1244
|
-
backgroundColor: state.isSelected ? '' : '',
|
|
1245
|
-
padding: 5,
|
|
1246
|
-
textTransform: 'capitalize',
|
|
1247
|
-
// color: state.isSelected ? '#eac435' : '#022648',
|
|
1248
|
-
color: state.isSelected ? '#eac435' : 'black',
|
|
1249
|
-
transition: '.3s',
|
|
1250
|
-
textAlign: 'right',
|
|
1251
|
-
'&:hover': {
|
|
1252
|
-
// color: '#eac435',
|
|
1253
|
-
cursor: 'pointer'
|
|
1254
|
-
}
|
|
1255
|
-
});
|
|
1256
|
-
},
|
|
1257
|
-
control: function control() {
|
|
1258
|
-
return {
|
|
1259
|
-
borderBottom: '1px solid #ccc',
|
|
1260
|
-
backgroundColor: 'transparent',
|
|
1261
|
-
display: 'flex',
|
|
1262
|
-
cursor: 'pointer',
|
|
1263
|
-
padding: 0,
|
|
1264
|
-
transition: '.3s',
|
|
1265
|
-
textAlign: 'right',
|
|
1266
|
-
'&:hover': {
|
|
1267
|
-
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1268
|
-
// borderRadius: '10px',
|
|
1269
|
-
}
|
|
1270
|
-
};
|
|
1271
|
-
},
|
|
1272
|
-
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1273
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1274
|
-
'&:hover': {
|
|
1275
|
-
// color: '#eac435',
|
|
1276
|
-
}
|
|
1277
|
-
});
|
|
1278
|
-
},
|
|
1279
|
-
placeholder: function placeholder(provided, state) {
|
|
1280
|
-
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
1281
|
-
textAlign: 'right'
|
|
1282
|
-
});
|
|
1283
|
-
}
|
|
1284
|
-
};
|
|
1285
1203
|
var defaultstylesnone = {
|
|
1286
1204
|
option: function option(provided, state) {
|
|
1287
1205
|
return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
|
|
@@ -7883,7 +7801,7 @@ var Select$3 = /*#__PURE__*/React.lazy(function () {
|
|
|
7883
7801
|
return import('react-select');
|
|
7884
7802
|
});
|
|
7885
7803
|
var Checkout = function Checkout(props) {
|
|
7886
|
-
var _css, _checkoutstyles,
|
|
7804
|
+
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;
|
|
7887
7805
|
var _useState = useState(null),
|
|
7888
7806
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7889
7807
|
timer = _useState2[0],
|
|
@@ -8205,9 +8123,9 @@ var Checkout = function Checkout(props) {
|
|
|
8205
8123
|
}
|
|
8206
8124
|
})), _checkoutstyles);
|
|
8207
8125
|
var Mycart = function Mycart() {
|
|
8208
|
-
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;
|
|
8126
|
+
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;
|
|
8209
8127
|
return /*#__PURE__*/React.createElement("div", {
|
|
8210
|
-
className: "row m-0 w-100"
|
|
8128
|
+
className: "row m-0 w-100 mb-md-3"
|
|
8211
8129
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8212
8130
|
className: "col-lg-12 d-flex align-items-center p-0"
|
|
8213
8131
|
}, /*#__PURE__*/React.createElement("p", {
|
|
@@ -8421,7 +8339,29 @@ var Checkout = function Checkout(props) {
|
|
|
8421
8339
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8422
8340
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8423
8341
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
8424
|
-
}, 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)))
|
|
8342
|
+
}, 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.createElement("div", {
|
|
8343
|
+
className: "row m-0 w-100"
|
|
8344
|
+
}, 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) {
|
|
8345
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
8346
|
+
"class": "col-lg-12 p-0"
|
|
8347
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8348
|
+
className: "row m-0 w-100"
|
|
8349
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
8350
|
+
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
8351
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8352
|
+
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak ',
|
|
8353
|
+
style: {
|
|
8354
|
+
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
8355
|
+
}
|
|
8356
|
+
}, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React.createElement("div", {
|
|
8357
|
+
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8358
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
8359
|
+
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
|
|
8360
|
+
style: {
|
|
8361
|
+
color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
|
|
8362
|
+
}
|
|
8363
|
+
}, item.addsubtype == 'subtract' && /*#__PURE__*/React.createElement("span", null, "-"), item.valuetype == 'value' && /*#__PURE__*/React.createElement("span", null, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " ", item.value, ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), item.valuetype == 'percentage' && /*#__PURE__*/React.createElement("span", null, item.value, "%")))));
|
|
8364
|
+
}))), (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.createElement("div", {
|
|
8425
8365
|
className: "row m-0 w-100"
|
|
8426
8366
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8427
8367
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
@@ -8434,7 +8374,7 @@ var Checkout = function Checkout(props) {
|
|
|
8434
8374
|
style: {
|
|
8435
8375
|
color: 'red'
|
|
8436
8376
|
}
|
|
8437
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8377
|
+
}, 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.createElement("div", {
|
|
8438
8378
|
className: "col-lg-12 p-0 mb-1"
|
|
8439
8379
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8440
8380
|
className: "row m-0 w-100"
|
|
@@ -8446,7 +8386,7 @@ var Checkout = function Checkout(props) {
|
|
|
8446
8386
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8447
8387
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8448
8388
|
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 '
|
|
8449
|
-
}, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8389
|
+
}, (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.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.createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
8450
8390
|
className: "col-lg-12 p-0"
|
|
8451
8391
|
}, /*#__PURE__*/React.createElement("div", {
|
|
8452
8392
|
className: "row m-0 w-100"
|
|
@@ -8454,11 +8394,11 @@ var Checkout = function Checkout(props) {
|
|
|
8454
8394
|
className: "col-lg-6 col-md-6 col-sm-6 p-0"
|
|
8455
8395
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8456
8396
|
className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
|
|
8457
|
-
}, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8397
|
+
}, 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.createElement("div", {
|
|
8458
8398
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8459
8399
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8460
8400
|
className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
|
|
8461
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8401
|
+
}, 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.createElement("div", {
|
|
8462
8402
|
className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
|
|
8463
8403
|
}, /*#__PURE__*/React.createElement("p", {
|
|
8464
8404
|
className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
|
|
@@ -8497,7 +8437,7 @@ var Checkout = function Checkout(props) {
|
|
|
8497
8437
|
textTransform: sectionproperties.total_texttransform,
|
|
8498
8438
|
color: sectionproperties.total_color
|
|
8499
8439
|
}
|
|
8500
|
-
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8440
|
+
}, 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.createElement("div", {
|
|
8501
8441
|
"class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
|
|
8502
8442
|
style: {
|
|
8503
8443
|
background: '#eee',
|
|
@@ -8530,7 +8470,7 @@ var Checkout = function Checkout(props) {
|
|
|
8530
8470
|
width: "20px",
|
|
8531
8471
|
height: "20px",
|
|
8532
8472
|
duration: "1s"
|
|
8533
|
-
}), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8473
|
+
}), !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 : ''))))));
|
|
8534
8474
|
};
|
|
8535
8475
|
return /*#__PURE__*/React.createElement("div", {
|
|
8536
8476
|
className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
|
|
@@ -8677,7 +8617,7 @@ var Checkout = function Checkout(props) {
|
|
|
8677
8617
|
}, lang.name), /*#__PURE__*/React.createElement("input", {
|
|
8678
8618
|
type: 'text',
|
|
8679
8619
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8680
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8620
|
+
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,
|
|
8681
8621
|
onChange: function onChange(event) {
|
|
8682
8622
|
cartinfoupdater('name', event.target.value);
|
|
8683
8623
|
},
|
|
@@ -8692,7 +8632,7 @@ var Checkout = function Checkout(props) {
|
|
|
8692
8632
|
}, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
|
|
8693
8633
|
type: 'text',
|
|
8694
8634
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8695
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8635
|
+
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,
|
|
8696
8636
|
onChange: function onChange(event) {
|
|
8697
8637
|
cartinfoupdater('mobile', event.target.value);
|
|
8698
8638
|
},
|
|
@@ -8707,7 +8647,7 @@ var Checkout = function Checkout(props) {
|
|
|
8707
8647
|
}, lang.email), /*#__PURE__*/React.createElement("input", {
|
|
8708
8648
|
type: 'text',
|
|
8709
8649
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8710
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8650
|
+
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,
|
|
8711
8651
|
onChange: function onChange(event) {
|
|
8712
8652
|
cartinfoupdater('email', event.target.value);
|
|
8713
8653
|
},
|
|
@@ -8751,8 +8691,8 @@ var Checkout = function Checkout(props) {
|
|
|
8751
8691
|
return option.id;
|
|
8752
8692
|
},
|
|
8753
8693
|
value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
|
|
8754
|
-
var
|
|
8755
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8694
|
+
var _fetchcustomercartQue105, _fetchcustomercartQue106;
|
|
8695
|
+
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);
|
|
8756
8696
|
}),
|
|
8757
8697
|
onChange: function onChange(option) {
|
|
8758
8698
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$24({}, FetchTabexStatesPayloadobjContext);
|
|
@@ -8797,12 +8737,12 @@ var Checkout = function Checkout(props) {
|
|
|
8797
8737
|
return option.id;
|
|
8798
8738
|
},
|
|
8799
8739
|
value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
|
|
8800
|
-
var
|
|
8801
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8740
|
+
var _fetchcustomercartQue107, _fetchcustomercartQue108;
|
|
8741
|
+
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);
|
|
8802
8742
|
}),
|
|
8803
8743
|
onChange: function onChange(option) {
|
|
8804
|
-
var
|
|
8805
|
-
if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8744
|
+
var _fetchcustomercartQue109, _fetchcustomercartQue110;
|
|
8745
|
+
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) {
|
|
8806
8746
|
var tempFetchTabexStatesPayloadobjContext = _objectSpread$24({}, FetchTabexStatesPayloadobjContext);
|
|
8807
8747
|
tempFetchTabexStatesPayloadobjContext.functype = 'cities';
|
|
8808
8748
|
tempFetchTabexStatesPayloadobjContext.state_id = option.id;
|
|
@@ -8845,8 +8785,8 @@ var Checkout = function Checkout(props) {
|
|
|
8845
8785
|
return option.id;
|
|
8846
8786
|
},
|
|
8847
8787
|
value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
|
|
8848
|
-
var
|
|
8849
|
-
return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8788
|
+
var _fetchcustomercartQue111, _fetchcustomercartQue112;
|
|
8789
|
+
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);
|
|
8850
8790
|
}),
|
|
8851
8791
|
onChange: function onChange(option) {
|
|
8852
8792
|
cartinfoupdater('cityid', option.id);
|
|
@@ -8861,7 +8801,7 @@ var Checkout = function Checkout(props) {
|
|
|
8861
8801
|
}, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
8862
8802
|
type: 'text',
|
|
8863
8803
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8864
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8804
|
+
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,
|
|
8865
8805
|
onChange: function onChange(event) {
|
|
8866
8806
|
cartinfoupdater('address', event.target.value);
|
|
8867
8807
|
},
|
|
@@ -8876,7 +8816,7 @@ var Checkout = function Checkout(props) {
|
|
|
8876
8816
|
}, langdetect == 'en' ? 'Notes' : 'الملاحظات'), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
8877
8817
|
type: 'text',
|
|
8878
8818
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8879
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8819
|
+
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,
|
|
8880
8820
|
onChange: function onChange(event) {
|
|
8881
8821
|
cartinfoupdater('notes', event.target.value);
|
|
8882
8822
|
},
|
|
@@ -8891,7 +8831,7 @@ var Checkout = function Checkout(props) {
|
|
|
8891
8831
|
}, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React.createElement("input", {
|
|
8892
8832
|
type: 'number',
|
|
8893
8833
|
className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
|
|
8894
|
-
value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8834
|
+
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,
|
|
8895
8835
|
onChange: function onChange(event) {
|
|
8896
8836
|
cartinfoupdater('aff_code', event.target.value);
|
|
8897
8837
|
},
|
|
@@ -8922,10 +8862,10 @@ var Checkout = function Checkout(props) {
|
|
|
8922
8862
|
id: 'codcheckbox',
|
|
8923
8863
|
type: "checkbox",
|
|
8924
8864
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8925
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8865
|
+
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,
|
|
8926
8866
|
onChange: function onChange() {
|
|
8927
|
-
var
|
|
8928
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8867
|
+
var _fetchcustomercartQue122, _fetchcustomercartQue123;
|
|
8868
|
+
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') {
|
|
8929
8869
|
cartinfoupdater('paymentmethod', 'cod');
|
|
8930
8870
|
}
|
|
8931
8871
|
}
|
|
@@ -8946,10 +8886,10 @@ var Checkout = function Checkout(props) {
|
|
|
8946
8886
|
}, /*#__PURE__*/React.createElement("input", {
|
|
8947
8887
|
type: "checkbox",
|
|
8948
8888
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8949
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8889
|
+
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,
|
|
8950
8890
|
onChange: function onChange() {
|
|
8951
|
-
var
|
|
8952
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8891
|
+
var _fetchcustomercartQue126, _fetchcustomercartQue127;
|
|
8892
|
+
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') {
|
|
8953
8893
|
cartinfoupdater('paymentmethod', 'cardondelivery');
|
|
8954
8894
|
}
|
|
8955
8895
|
}
|
|
@@ -8967,10 +8907,10 @@ var Checkout = function Checkout(props) {
|
|
|
8967
8907
|
}, /*#__PURE__*/React.createElement("input", {
|
|
8968
8908
|
type: "checkbox",
|
|
8969
8909
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8970
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8910
|
+
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,
|
|
8971
8911
|
onChange: function onChange() {
|
|
8972
|
-
var
|
|
8973
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8912
|
+
var _fetchcustomercartQue130, _fetchcustomercartQue131;
|
|
8913
|
+
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') {
|
|
8974
8914
|
cartinfoupdater('paymentmethod', 'onlinepayment');
|
|
8975
8915
|
}
|
|
8976
8916
|
}
|
|
@@ -8988,10 +8928,10 @@ var Checkout = function Checkout(props) {
|
|
|
8988
8928
|
}, /*#__PURE__*/React.createElement("input", {
|
|
8989
8929
|
type: "checkbox",
|
|
8990
8930
|
className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
|
|
8991
|
-
checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8931
|
+
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,
|
|
8992
8932
|
onChange: function onChange() {
|
|
8993
|
-
var
|
|
8994
|
-
if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8933
|
+
var _fetchcustomercartQue134, _fetchcustomercartQue135;
|
|
8934
|
+
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') {
|
|
8995
8935
|
cartinfoupdater('paymentmethod', 'valU');
|
|
8996
8936
|
}
|
|
8997
8937
|
}
|
|
@@ -9002,7 +8942,7 @@ var Checkout = function Checkout(props) {
|
|
|
9002
8942
|
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"
|
|
9003
8943
|
})), /*#__PURE__*/React.createElement("p", {
|
|
9004
8944
|
className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
|
|
9005
|
-
}, " ValU")))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (
|
|
8945
|
+
}, " 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.createElement("div", {
|
|
9006
8946
|
className: "col-lg-12 p-0 w-100 mb-3"
|
|
9007
8947
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9008
8948
|
style: {
|
|
@@ -13341,6 +13281,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
13341
13281
|
if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
|
|
13342
13282
|
var _categories;
|
|
13343
13283
|
var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
|
|
13284
|
+
// alert(JSON.stringify(categories));
|
|
13344
13285
|
var parentcollections = [];
|
|
13345
13286
|
(_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
|
|
13346
13287
|
catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
|
|
@@ -13358,6 +13299,15 @@ var CardsSection = function CardsSection(props) {
|
|
|
13358
13299
|
});
|
|
13359
13300
|
parentcollections = arrafterfilter;
|
|
13360
13301
|
}
|
|
13302
|
+
if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
|
|
13303
|
+
var arrafterfilter = [];
|
|
13304
|
+
parentcollections.forEach(function (parentcolitem, parcolindex) {
|
|
13305
|
+
if (parentcolitem.categoryid == props.collectionidprops) {
|
|
13306
|
+
arrafterfilter.push(parentcolitem);
|
|
13307
|
+
}
|
|
13308
|
+
});
|
|
13309
|
+
parentcollections = arrafterfilter;
|
|
13310
|
+
}
|
|
13361
13311
|
}
|
|
13362
13312
|
if (fetchingtype == 'innercategories') {
|
|
13363
13313
|
var arrafterfilter = [];
|
|
@@ -13937,6 +13887,8 @@ var CardsSection = function CardsSection(props) {
|
|
|
13937
13887
|
} else {
|
|
13938
13888
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
|
|
13939
13889
|
}
|
|
13890
|
+
} else if (fetchingtype == 'parentcollections') {
|
|
13891
|
+
routingcountext(StaticPagesLinksContext.InnerCategory, true, 'parentcollections/' + (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid), true);
|
|
13940
13892
|
} else {
|
|
13941
13893
|
routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
|
|
13942
13894
|
}
|
|
@@ -35544,7 +35496,7 @@ var Footer7 = function Footer7(props) {
|
|
|
35544
35496
|
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; }
|
|
35545
35497
|
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(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; }
|
|
35546
35498
|
var Footer8 = function Footer8(props) {
|
|
35547
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i8, _authdetailsContext$i9, _templatepropcontext$;
|
|
35499
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i10, _authdetailsContext$i13, _authdetailsContext$i16, _authdetailsContext$i19, _templatepropcontext$;
|
|
35548
35500
|
var _useState = useState(''),
|
|
35549
35501
|
_useState2 = _slicedToArray(_useState, 2),
|
|
35550
35502
|
sectionproperties = _useState2[0],
|
|
@@ -35842,39 +35794,52 @@ var Footer8 = function Footer8(props) {
|
|
|
35842
35794
|
}
|
|
35843
35795
|
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), /*#__PURE__*/React.createElement("div", {
|
|
35844
35796
|
"class": 'col-lg-12 p-0 d-flex align-items-center justify-content-start mt-3'
|
|
35845
|
-
}, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
35846
|
-
"class": "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
|
|
35797
|
+
}, 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.createElement("div", {
|
|
35798
|
+
"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 ',
|
|
35847
35799
|
onClick: function onClick() {
|
|
35848
|
-
var _authdetailsContext$
|
|
35849
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35850
|
-
var _authdetailsContext$
|
|
35851
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35800
|
+
var _authdetailsContext$i11;
|
|
35801
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.facebooklink) != null) {
|
|
35802
|
+
var _authdetailsContext$i12;
|
|
35803
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.facebooklink, '_blank');
|
|
35852
35804
|
}
|
|
35853
35805
|
}
|
|
35854
35806
|
}, /*#__PURE__*/React.createElement(FaFacebookF, {
|
|
35855
35807
|
size: sectionproperties.facebkbtnniconfontsize
|
|
35856
|
-
})), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
35857
|
-
"class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-
|
|
35808
|
+
})), 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.createElement("div", {
|
|
35809
|
+
"class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-2 mr-2 ',
|
|
35858
35810
|
onClick: function onClick() {
|
|
35859
|
-
var _authdetailsContext$
|
|
35860
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35861
|
-
var _authdetailsContext$
|
|
35862
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35811
|
+
var _authdetailsContext$i14;
|
|
35812
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.instagramlink) != null) {
|
|
35813
|
+
var _authdetailsContext$i15;
|
|
35814
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.instagramlink, '_blank');
|
|
35863
35815
|
}
|
|
35864
35816
|
}
|
|
35865
35817
|
}, /*#__PURE__*/React.createElement(AiFillInstagram, {
|
|
35866
35818
|
size: sectionproperties.instgrambtniconfontsize
|
|
35867
|
-
})), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
35868
|
-
"class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ',
|
|
35819
|
+
})), 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.createElement("div", {
|
|
35820
|
+
"class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-2 mr-2 ',
|
|
35869
35821
|
onClick: function onClick() {
|
|
35870
|
-
var _authdetailsContext$
|
|
35871
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35872
|
-
var _authdetailsContext$
|
|
35873
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
35822
|
+
var _authdetailsContext$i17;
|
|
35823
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.whatsappnumber) != null) {
|
|
35824
|
+
var _authdetailsContext$i18;
|
|
35825
|
+
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');
|
|
35874
35826
|
}
|
|
35875
35827
|
}
|
|
35876
35828
|
}, /*#__PURE__*/React.createElement(FaWhatsapp, {
|
|
35877
35829
|
size: sectionproperties.youtubebtniconfontsize
|
|
35830
|
+
})), 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.createElement("div", {
|
|
35831
|
+
"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 '
|
|
35832
|
+
// class={`${footerStyles.youtube_btn}` + ' d-flex align-items-center justify-content-center ml-1 mr-1 '}
|
|
35833
|
+
,
|
|
35834
|
+
onClick: function onClick() {
|
|
35835
|
+
var _authdetailsContext$i20;
|
|
35836
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.tiktoklink) != null) {
|
|
35837
|
+
var _authdetailsContext$i21;
|
|
35838
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.tiktoklink, '_blank');
|
|
35839
|
+
}
|
|
35840
|
+
}
|
|
35841
|
+
}, /*#__PURE__*/React.createElement(IoLogoTiktok, {
|
|
35842
|
+
size: sectionproperties.youtubebtniconfontsize
|
|
35878
35843
|
})))))), sectionproperties.showhidemainpages == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
35879
35844
|
"class": "row m-0 allcentered"
|
|
35880
35845
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -42705,7 +42670,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42705
42670
|
}
|
|
42706
42671
|
},
|
|
42707
42672
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42708
|
-
placeholder:
|
|
42673
|
+
placeholder: '',
|
|
42709
42674
|
isSearchable: true
|
|
42710
42675
|
})), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
42711
42676
|
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'
|
|
@@ -42725,7 +42690,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42725
42690
|
duration: "1s"
|
|
42726
42691
|
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select, {
|
|
42727
42692
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42728
|
-
placeholder:
|
|
42693
|
+
placeholder: '',
|
|
42729
42694
|
isSearchable: true
|
|
42730
42695
|
}), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
|
|
42731
42696
|
options: fetchTabexStatesQueryContext.data.data.states,
|
|
@@ -42764,7 +42729,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42764
42729
|
}
|
|
42765
42730
|
},
|
|
42766
42731
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42767
|
-
placeholder:
|
|
42732
|
+
placeholder: '',
|
|
42768
42733
|
isSearchable: true
|
|
42769
42734
|
})), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
42770
42735
|
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'
|
|
@@ -42783,7 +42748,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42783
42748
|
height: "20px",
|
|
42784
42749
|
duration: "1s"
|
|
42785
42750
|
})), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React.createElement(Select, {
|
|
42786
|
-
placeholder:
|
|
42751
|
+
placeholder: '',
|
|
42787
42752
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42788
42753
|
isSearchable: true
|
|
42789
42754
|
}), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
|
|
@@ -42819,7 +42784,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
|
|
|
42819
42784
|
}
|
|
42820
42785
|
},
|
|
42821
42786
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
42822
|
-
placeholder:
|
|
42787
|
+
placeholder: '',
|
|
42823
42788
|
isSearchable: true
|
|
42824
42789
|
})), sectionproperties.hideaddress == 'Show' && props.srcfrom != 'filter' && /*#__PURE__*/React.createElement("div", {
|
|
42825
42790
|
className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
@@ -42867,7 +42832,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42867
42832
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
42868
42833
|
imagesarray = _useState6[0],
|
|
42869
42834
|
setimagesarray = _useState6[1];
|
|
42870
|
-
|
|
42835
|
+
props.actions.lang;
|
|
42871
42836
|
var langdetect = props.actions.langdetect;
|
|
42872
42837
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
42873
42838
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
@@ -42880,6 +42845,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42880
42845
|
var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
|
|
42881
42846
|
var routingcountext = props.actions.routingcountext;
|
|
42882
42847
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
42848
|
+
// const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
|
|
42883
42849
|
var _useState7 = useState({
|
|
42884
42850
|
countryid: '',
|
|
42885
42851
|
stateid: '',
|
|
@@ -42888,14 +42854,35 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42888
42854
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
42889
42855
|
payloadobj = _useState8[0],
|
|
42890
42856
|
setpayloadobj = _useState8[1];
|
|
42857
|
+
var _useState9 = useState([]),
|
|
42858
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
42859
|
+
collectionsarray = _useState10[0],
|
|
42860
|
+
setcollectionsarray = _useState10[1];
|
|
42861
|
+
var _useState11 = useState([]),
|
|
42862
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
42863
|
+
_useState12[0];
|
|
42864
|
+
_useState12[1];
|
|
42891
42865
|
var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
|
|
42892
42866
|
var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
|
|
42867
|
+
var authdetailsContext = props.actions.authdetailsContext;
|
|
42868
|
+
props.actions.fetchcollectionsQueryContext;
|
|
42893
42869
|
useEffect(function () {
|
|
42894
42870
|
var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
|
|
42895
42871
|
tempFetchQueriesEngineContext.fetchtabexcountries = true;
|
|
42872
|
+
tempFetchQueriesEngineContext.collections = true;
|
|
42896
42873
|
setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
|
|
42897
42874
|
var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
|
|
42875
|
+
|
|
42876
|
+
// authdetailsContext?.instinfo?.instcollections?
|
|
42898
42877
|
}, []);
|
|
42878
|
+
useEffect(function () {
|
|
42879
|
+
var _authdetailsContext$i, _authdetailsContext$i2;
|
|
42880
|
+
var temppcollarray = _toConsumableArray(collectionsarray);
|
|
42881
|
+
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) {
|
|
42882
|
+
temppcollarray.push(arrayItem);
|
|
42883
|
+
});
|
|
42884
|
+
setcollectionsarray(_toConsumableArray(temppcollarray));
|
|
42885
|
+
}, [authdetailsContext]);
|
|
42899
42886
|
useEffect(function () {
|
|
42900
42887
|
var secpropobj = {};
|
|
42901
42888
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -42906,7 +42893,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42906
42893
|
}
|
|
42907
42894
|
});
|
|
42908
42895
|
setsectionproperties(_objectSpread$15({}, secpropobj));
|
|
42909
|
-
// alert(JSON.stringify(fetchTabexCountriesQueryContext));
|
|
42910
42896
|
}, [StatePagePropertiesContext]);
|
|
42911
42897
|
useEffect(function () {
|
|
42912
42898
|
if (sectionproperties.length != 0) {
|
|
@@ -42994,29 +42980,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
42994
42980
|
}
|
|
42995
42981
|
})
|
|
42996
42982
|
};
|
|
42997
|
-
var countries = [{
|
|
42998
|
-
value: 'egypt',
|
|
42999
|
-
label: 'Egypt'
|
|
43000
|
-
}, {
|
|
43001
|
-
value: 'algeria',
|
|
43002
|
-
label: 'Algeria'
|
|
43003
|
-
}, {
|
|
43004
|
-
value: 'georgia',
|
|
43005
|
-
label: 'Georgia'
|
|
43006
|
-
}];
|
|
43007
|
-
var states = [{
|
|
43008
|
-
value: 'cairo',
|
|
43009
|
-
label: 'Cairo'
|
|
43010
|
-
}, {
|
|
43011
|
-
vlaue: 'giza',
|
|
43012
|
-
label: 'Giza'
|
|
43013
|
-
}, {
|
|
43014
|
-
vlaue: 'chlef',
|
|
43015
|
-
label: 'Chlef'
|
|
43016
|
-
}, {
|
|
43017
|
-
vlaue: 'alabama',
|
|
43018
|
-
label: 'Alabama'
|
|
43019
|
-
}];
|
|
43020
42983
|
return /*#__PURE__*/React.createElement("div", {
|
|
43021
42984
|
"class": sectionstyles.container + ' allcentered mx-md-0 '
|
|
43022
42985
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -43093,37 +43056,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43093
43056
|
fontWeight: sectionproperties.formRightTextFontWeight2,
|
|
43094
43057
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
43095
43058
|
}
|
|
43096
|
-
}, langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar), /*#__PURE__*/React.createElement("div", {
|
|
43097
|
-
"class": "row m-0 w-100 mt-2"
|
|
43098
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
43099
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
43100
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
43101
|
-
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
43102
|
-
}, lang.country), /*#__PURE__*/React.createElement(Select$5, {
|
|
43103
|
-
options: countries,
|
|
43104
|
-
styles: langdetect == 'en' ? defaultstylestransparent : defaultstylestranslatedtransparent
|
|
43105
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
43106
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
43107
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
43108
|
-
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
43109
|
-
}, langdetect == 'en' ? 'State' : 'الولاية'), /*#__PURE__*/React.createElement(Select$5, {
|
|
43110
|
-
options: states,
|
|
43111
|
-
styles: langdetect == 'en' ? defaultstylestransparent : defaultstylestranslatedtransparent
|
|
43112
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
43113
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
43114
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
43115
|
-
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
43116
|
-
}, langdetect == 'en' ? 'From' : 'من'), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", {
|
|
43117
|
-
className: "".concat(sectionstyles.dateInput),
|
|
43118
|
-
type: "date"
|
|
43119
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
43120
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
43121
|
-
}, /*#__PURE__*/React.createElement("label", {
|
|
43122
|
-
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
43123
|
-
}, langdetect == 'en' ? 'To' : 'إلى'), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("input", {
|
|
43124
|
-
className: "".concat(sectionstyles.dateInput),
|
|
43125
|
-
type: "date"
|
|
43126
|
-
})))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43059
|
+
}, langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43127
43060
|
"class": "row m-0 w-100 justify-content-center"
|
|
43128
43061
|
}, /*#__PURE__*/React.createElement("button", {
|
|
43129
43062
|
"class": sectionstyles.btnstyles + ' allcentered '
|
|
@@ -43140,7 +43073,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43140
43073
|
}, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43141
43074
|
"class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
|
|
43142
43075
|
}, /*#__PURE__*/React.createElement("div", {
|
|
43143
|
-
"class": "wordbreak",
|
|
43076
|
+
"class": "wordbreak text-md-center",
|
|
43144
43077
|
style: {
|
|
43145
43078
|
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
43146
43079
|
color: sectionproperties.sectionTitleColor,
|
|
@@ -43159,7 +43092,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43159
43092
|
maxWidth: '500px'
|
|
43160
43093
|
}
|
|
43161
43094
|
}, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React.createElement("div", {
|
|
43162
|
-
"class":
|
|
43095
|
+
"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',
|
|
43163
43096
|
style: {
|
|
43164
43097
|
backgroundColor: sectionproperties.reservation_bgcolor,
|
|
43165
43098
|
borderRadius: sectionproperties.reservation_borderradius + 'px',
|
|
@@ -43174,8 +43107,45 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43174
43107
|
"class": "col-lg-12 p-0"
|
|
43175
43108
|
}, /*#__PURE__*/React.createElement("div", {
|
|
43176
43109
|
"class": "row m-0 w-100 allcentered"
|
|
43177
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
43178
|
-
|
|
43110
|
+
}, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43111
|
+
className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
|
|
43112
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
43113
|
+
className: ' d-flex justify-content-start ',
|
|
43114
|
+
style: {
|
|
43115
|
+
color: sectionproperties.form_labelcolor,
|
|
43116
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
43117
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
43118
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
43119
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
43120
|
+
}
|
|
43121
|
+
}, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React.createElement(Select$5, {
|
|
43122
|
+
options: collectionsarray,
|
|
43123
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
43124
|
+
var crname = '';
|
|
43125
|
+
if (langdetect == 'en') {
|
|
43126
|
+
crname = option.title_en;
|
|
43127
|
+
} else if (langdetect == 'ar') {
|
|
43128
|
+
crname = option.title_ar;
|
|
43129
|
+
}
|
|
43130
|
+
return crname;
|
|
43131
|
+
},
|
|
43132
|
+
getOptionValue: function getOptionValue(option) {
|
|
43133
|
+
return option.collectionid;
|
|
43134
|
+
},
|
|
43135
|
+
autocomplete: "new-password"
|
|
43136
|
+
// value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == props?.payloadobj?.countryid)}
|
|
43137
|
+
,
|
|
43138
|
+
onChange: function onChange(option) {
|
|
43139
|
+
var temp = payloadobj;
|
|
43140
|
+
temp.collections = [];
|
|
43141
|
+
temp.collections.push(option.collectionid);
|
|
43142
|
+
setpayloadobj(_objectSpread$15({}, temp));
|
|
43143
|
+
},
|
|
43144
|
+
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
|
|
43145
|
+
isSearchable: true,
|
|
43146
|
+
placeholder: ''
|
|
43147
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
43148
|
+
"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'
|
|
43179
43149
|
}, /*#__PURE__*/React.createElement(CustomerAddressForm
|
|
43180
43150
|
// customeraddressrequierd={customeraddressrequierd}
|
|
43181
43151
|
// payloadobj={payloadobj}
|
|
@@ -43193,7 +43163,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43193
43163
|
fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
|
|
43194
43164
|
fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
|
|
43195
43165
|
})), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43196
|
-
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
|
|
43166
|
+
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 '
|
|
43197
43167
|
}, /*#__PURE__*/React.createElement("label", {
|
|
43198
43168
|
className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
|
|
43199
43169
|
}, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React.createElement("div", {
|
|
@@ -43206,14 +43176,14 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43206
43176
|
formatLabel: function formatLabel(value) {
|
|
43207
43177
|
return "".concat(value);
|
|
43208
43178
|
},
|
|
43209
|
-
maxValue:
|
|
43210
|
-
minValue:
|
|
43179
|
+
maxValue: parseInt(sectionproperties.filterpricemaxvalue),
|
|
43180
|
+
minValue: parseInt(sectionproperties.filterpriceminvalue),
|
|
43211
43181
|
value: pricevalue,
|
|
43212
43182
|
onChange: function onChange(value) {
|
|
43213
43183
|
setpricevalue(_objectSpread$15({}, value));
|
|
43214
43184
|
}
|
|
43215
|
-
}))
|
|
43216
|
-
"class":
|
|
43185
|
+
}))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
43186
|
+
"class": 'col-lg-12 mt-3 p-0 allcentered'
|
|
43217
43187
|
}, /*#__PURE__*/React.createElement("button", {
|
|
43218
43188
|
"class": sectionstyles.btnstyles + ' allcentered ',
|
|
43219
43189
|
onClick: function onClick() {
|
|
@@ -43240,6 +43210,9 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
43240
43210
|
tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
|
|
43241
43211
|
}
|
|
43242
43212
|
}
|
|
43213
|
+
if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
|
|
43214
|
+
tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
|
|
43215
|
+
}
|
|
43243
43216
|
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) {
|
|
43244
43217
|
tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
|
|
43245
43218
|
}
|