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 CHANGED
@@ -1247,88 +1247,6 @@ var defaultstylestranslated = {
1247
1247
  });
1248
1248
  }
1249
1249
  };
1250
- var defaultstylestransparent = {
1251
- option: function option(provided, state) {
1252
- return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
1253
- borderBottom: '1px solid #e6e6e6',
1254
- backgroundColor: state.isSelected ? '' : '',
1255
- padding: 5,
1256
- textTransform: 'capitalize',
1257
- color: state.isSelected ? '#eac435' : 'black',
1258
- transition: '.3s',
1259
- '&:hover': {
1260
- // color: '#eac435',
1261
- cursor: 'pointer'
1262
- }
1263
- });
1264
- },
1265
- control: function control() {
1266
- return {
1267
- borderBottom: '1px solid #ccc',
1268
- backgroundColor: 'transparent',
1269
- display: 'flex',
1270
- cursor: 'pointer',
1271
- padding: 0,
1272
- transition: '.3s',
1273
- '&:hover': {
1274
- // boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
1275
- // borderRadius: '10px',
1276
- }
1277
- };
1278
- },
1279
- dropdownIndicator: function dropdownIndicator(provided) {
1280
- return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
1281
- '&:hover': {
1282
- // color: '#eac435',
1283
- }
1284
- });
1285
- }
1286
- };
1287
- var defaultstylestranslatedtransparent = {
1288
- option: function option(provided, state) {
1289
- return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
1290
- borderBottom: '1px solid #e6e6e6',
1291
- backgroundColor: state.isSelected ? '' : '',
1292
- padding: 5,
1293
- textTransform: 'capitalize',
1294
- // color: state.isSelected ? '#eac435' : '#022648',
1295
- color: state.isSelected ? '#eac435' : 'black',
1296
- transition: '.3s',
1297
- textAlign: 'right',
1298
- '&:hover': {
1299
- // color: '#eac435',
1300
- cursor: 'pointer'
1301
- }
1302
- });
1303
- },
1304
- control: function control() {
1305
- return {
1306
- borderBottom: '1px solid #ccc',
1307
- backgroundColor: 'transparent',
1308
- display: 'flex',
1309
- cursor: 'pointer',
1310
- padding: 0,
1311
- transition: '.3s',
1312
- textAlign: 'right',
1313
- '&:hover': {
1314
- // boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
1315
- // borderRadius: '10px',
1316
- }
1317
- };
1318
- },
1319
- dropdownIndicator: function dropdownIndicator(provided) {
1320
- return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
1321
- '&:hover': {
1322
- // color: '#eac435',
1323
- }
1324
- });
1325
- },
1326
- placeholder: function placeholder(provided, state) {
1327
- return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
1328
- textAlign: 'right'
1329
- });
1330
- }
1331
- };
1332
1250
  var defaultstylesnone = {
1333
1251
  option: function option(provided, state) {
1334
1252
  return _objectSpread$2f(_objectSpread$2f({}, provided), {}, {
@@ -7930,7 +7848,7 @@ var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
7930
7848
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
7931
7849
  });
7932
7850
  var Checkout = function Checkout(props) {
7933
- var _css, _checkoutstyles, _fetchcustomercartQue91, _fetchcustomercartQue92, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue95, _fetchcustomercartQue96, _fetchcustomercartQue105, _fetchcustomercartQue106, _fetchcustomercartQue107, _fetchcustomercartQue108, _fetchcustomercartQue109, _fetchcustomercartQue110, _fetchcustomercartQue111, _fetchcustomercartQue112, _fetchcustomercartQue113, _fetchcustomercartQue116, _fetchcustomercartQue117, _fetchcustomercartQue120, _fetchcustomercartQue121, _fetchcustomercartQue124, _fetchcustomercartQue125, _fetchcustomercartQue128, _fetchcustomercartQue129;
7851
+ 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;
7934
7852
  var _useState = React.useState(null),
7935
7853
  _useState2 = _slicedToArray__default["default"](_useState, 2),
7936
7854
  timer = _useState2[0],
@@ -8252,9 +8170,9 @@ var Checkout = function Checkout(props) {
8252
8170
  }
8253
8171
  })), _checkoutstyles);
8254
8172
  var Mycart = function Mycart() {
8255
- 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;
8173
+ 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;
8256
8174
  return /*#__PURE__*/React__default["default"].createElement("div", {
8257
- className: "row m-0 w-100"
8175
+ className: "row m-0 w-100 mb-md-3"
8258
8176
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8259
8177
  className: "col-lg-12 d-flex align-items-center p-0"
8260
8178
  }, /*#__PURE__*/React__default["default"].createElement("p", {
@@ -8468,7 +8386,29 @@ var Checkout = function Checkout(props) {
8468
8386
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8469
8387
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8470
8388
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
8471
- }, 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)))), (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 : _fetchcustomercartQue67.usewalletpoints) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
8389
+ }, 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", {
8390
+ className: "row m-0 w-100"
8391
+ }, 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) {
8392
+ return /*#__PURE__*/React__default["default"].createElement("div", {
8393
+ "class": "col-lg-12 p-0"
8394
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
8395
+ className: "row m-0 w-100"
8396
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
8397
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
8398
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
8399
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak ',
8400
+ style: {
8401
+ color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
8402
+ }
8403
+ }, langdetect == 'en' ? item.title_en : item.title_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
8404
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8405
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
8406
+ className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left ',
8407
+ style: {
8408
+ color: item.addsubtype == 'subtract' ? 'var(--danger)' : 'var(--success)'
8409
+ }
8410
+ }, 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, "%")))));
8411
+ }))), (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", {
8472
8412
  className: "row m-0 w-100"
8473
8413
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8474
8414
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
@@ -8481,7 +8421,7 @@ var Checkout = function Checkout(props) {
8481
8421
  style: {
8482
8422
  color: 'red'
8483
8423
  }
8484
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', " -", ' ', parseFloat(fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue68 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : (_fetchcustomercartQue69 = _fetchcustomercartQue68.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : (_fetchcustomercartQue70 = _fetchcustomercartQue69.customercart) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.walletpointsused), " ", langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : (_fetchcustomercartQue72 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.couponexists) && (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 : _fetchcustomercartQue74.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
8424
+ }, 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", {
8485
8425
  className: "col-lg-12 p-0 mb-1"
8486
8426
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8487
8427
  className: "row m-0 w-100"
@@ -8493,7 +8433,7 @@ var Checkout = function Checkout(props) {
8493
8433
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8494
8434
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8495
8435
  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 '
8496
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : (_fetchcustomercartQue76 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.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 : (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : (_fetchcustomercartQue78 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.customercart.discountprice).toFixed(2), ' ', 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.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
8436
+ }, (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", {
8497
8437
  className: "col-lg-12 p-0"
8498
8438
  }, /*#__PURE__*/React__default["default"].createElement("div", {
8499
8439
  className: "row m-0 w-100"
@@ -8501,11 +8441,11 @@ var Checkout = function Checkout(props) {
8501
8441
  className: "col-lg-6 col-md-6 col-sm-6 p-0"
8502
8442
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8503
8443
  className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
8504
- }, lang.shippingfees)), (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.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
8444
+ }, 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", {
8505
8445
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8506
8446
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8507
8447
  className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
8508
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(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.zoneprice).toFixed(2), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue85 !== void 0 && (_fetchcustomercartQue86 = _fetchcustomercartQue85.data) !== null && _fetchcustomercartQue86 !== void 0 && _fetchcustomercartQue86.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
8448
+ }, 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", {
8509
8449
  className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
8510
8450
  }, /*#__PURE__*/React__default["default"].createElement("p", {
8511
8451
  className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
@@ -8544,7 +8484,7 @@ var Checkout = function Checkout(props) {
8544
8484
  textTransform: sectionproperties.total_texttransform,
8545
8485
  color: sectionproperties.total_color
8546
8486
  }
8547
- }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(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.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", {
8487
+ }, 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", {
8548
8488
  "class": "col-lg-12 p-0 my-2 p-2 allcentered mb-3",
8549
8489
  style: {
8550
8490
  background: '#eee',
@@ -8577,7 +8517,7 @@ var Checkout = function Checkout(props) {
8577
8517
  width: "20px",
8578
8518
  height: "20px",
8579
8519
  duration: "1s"
8580
- }), !AddOrderMutationContext.isLoading ? (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.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 : ''))))));
8520
+ }), !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 : ''))))));
8581
8521
  };
8582
8522
  return /*#__PURE__*/React__default["default"].createElement("div", {
8583
8523
  className: 'row m-0 w-100 d-flex justify-content-center p-sm-0 '
@@ -8724,7 +8664,7 @@ var Checkout = function Checkout(props) {
8724
8664
  }, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
8725
8665
  type: 'text',
8726
8666
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8727
- value: 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.name,
8667
+ 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,
8728
8668
  onChange: function onChange(event) {
8729
8669
  cartinfoupdater('name', event.target.value);
8730
8670
  },
@@ -8739,7 +8679,7 @@ var Checkout = function Checkout(props) {
8739
8679
  }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
8740
8680
  type: 'text',
8741
8681
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8742
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue93 === void 0 ? void 0 : (_fetchcustomercartQue94 = _fetchcustomercartQue93.data) === null || _fetchcustomercartQue94 === void 0 ? void 0 : _fetchcustomercartQue94.customercart.mobile,
8682
+ 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,
8743
8683
  onChange: function onChange(event) {
8744
8684
  cartinfoupdater('mobile', event.target.value);
8745
8685
  },
@@ -8754,7 +8694,7 @@ var Checkout = function Checkout(props) {
8754
8694
  }, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
8755
8695
  type: 'text',
8756
8696
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8757
- value: 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.email,
8697
+ 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,
8758
8698
  onChange: function onChange(event) {
8759
8699
  cartinfoupdater('email', event.target.value);
8760
8700
  },
@@ -8798,8 +8738,8 @@ var Checkout = function Checkout(props) {
8798
8738
  return option.id;
8799
8739
  },
8800
8740
  value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
8801
- var _fetchcustomercartQue97, _fetchcustomercartQue98;
8802
- return option.id == (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.countryid);
8741
+ var _fetchcustomercartQue105, _fetchcustomercartQue106;
8742
+ 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);
8803
8743
  }),
8804
8744
  onChange: function onChange(option) {
8805
8745
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$24({}, FetchTabexStatesPayloadobjContext);
@@ -8844,12 +8784,12 @@ var Checkout = function Checkout(props) {
8844
8784
  return option.id;
8845
8785
  },
8846
8786
  value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
8847
- var _fetchcustomercartQue99, _fetchcustomercartQue100;
8848
- return option.id == (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.stateid);
8787
+ var _fetchcustomercartQue107, _fetchcustomercartQue108;
8788
+ 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);
8849
8789
  }),
8850
8790
  onChange: function onChange(option) {
8851
- var _fetchcustomercartQue101, _fetchcustomercartQue102;
8852
- if (option.id.length != 0 && (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.countryid.length) != 0) {
8791
+ var _fetchcustomercartQue109, _fetchcustomercartQue110;
8792
+ 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) {
8853
8793
  var tempFetchTabexStatesPayloadobjContext = _objectSpread$24({}, FetchTabexStatesPayloadobjContext);
8854
8794
  tempFetchTabexStatesPayloadobjContext.functype = 'cities';
8855
8795
  tempFetchTabexStatesPayloadobjContext.state_id = option.id;
@@ -8892,8 +8832,8 @@ var Checkout = function Checkout(props) {
8892
8832
  return option.id;
8893
8833
  },
8894
8834
  value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
8895
- var _fetchcustomercartQue103, _fetchcustomercartQue104;
8896
- return option.id == (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.cityid);
8835
+ var _fetchcustomercartQue111, _fetchcustomercartQue112;
8836
+ 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);
8897
8837
  }),
8898
8838
  onChange: function onChange(option) {
8899
8839
  cartinfoupdater('cityid', option.id);
@@ -8908,7 +8848,7 @@ var Checkout = function Checkout(props) {
8908
8848
  }, langdetect == 'en' ? sectionproperties.shippingaddressen : sectionproperties.shippingaddressar), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
8909
8849
  type: 'text',
8910
8850
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8911
- value: 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.address,
8851
+ 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,
8912
8852
  onChange: function onChange(event) {
8913
8853
  cartinfoupdater('address', event.target.value);
8914
8854
  },
@@ -8923,7 +8863,7 @@ var Checkout = function Checkout(props) {
8923
8863
  }, langdetect == 'en' ? 'Notes' : 'الملاحظات'), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
8924
8864
  type: 'text',
8925
8865
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8926
- value: 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.notes,
8866
+ 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,
8927
8867
  onChange: function onChange(event) {
8928
8868
  cartinfoupdater('notes', event.target.value);
8929
8869
  },
@@ -8938,7 +8878,7 @@ var Checkout = function Checkout(props) {
8938
8878
  }, langdetect == 'en' ? 'Affiliate code' : 'رمز المسوق'), /*#__PURE__*/React__default["default"].createElement("input", {
8939
8879
  type: 'number',
8940
8880
  className: "".concat(formstyles.form_control, " ").concat(checkoutstyles.form_control),
8941
- value: 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 : (_fetchcustomercartQue111 = _fetchcustomercartQue110.customercart) === null || _fetchcustomercartQue111 === void 0 ? void 0 : _fetchcustomercartQue111.aff_code,
8881
+ 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,
8942
8882
  onChange: function onChange(event) {
8943
8883
  cartinfoupdater('aff_code', event.target.value);
8944
8884
  },
@@ -8969,10 +8909,10 @@ var Checkout = function Checkout(props) {
8969
8909
  id: 'codcheckbox',
8970
8910
  type: "checkbox",
8971
8911
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
8972
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue112 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue112 === void 0 ? void 0 : (_fetchcustomercartQue113 = _fetchcustomercartQue112.data) === null || _fetchcustomercartQue113 === void 0 ? void 0 : _fetchcustomercartQue113.customercart.paymentmethod) == 'cod' ? true : false,
8912
+ 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,
8973
8913
  onChange: function onChange() {
8974
- var _fetchcustomercartQue114, _fetchcustomercartQue115;
8975
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue114 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue114 === void 0 ? void 0 : (_fetchcustomercartQue115 = _fetchcustomercartQue114.data) === null || _fetchcustomercartQue115 === void 0 ? void 0 : _fetchcustomercartQue115.customercart.paymentmethod) != 'cod') {
8914
+ var _fetchcustomercartQue122, _fetchcustomercartQue123;
8915
+ 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') {
8976
8916
  cartinfoupdater('paymentmethod', 'cod');
8977
8917
  }
8978
8918
  }
@@ -8993,10 +8933,10 @@ var Checkout = function Checkout(props) {
8993
8933
  }, /*#__PURE__*/React__default["default"].createElement("input", {
8994
8934
  type: "checkbox",
8995
8935
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
8996
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue116 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue116 === void 0 ? void 0 : (_fetchcustomercartQue117 = _fetchcustomercartQue116.data) === null || _fetchcustomercartQue117 === void 0 ? void 0 : _fetchcustomercartQue117.customercart.paymentmethod) == 'cardondelivery' ? true : false,
8936
+ 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,
8997
8937
  onChange: function onChange() {
8998
- var _fetchcustomercartQue118, _fetchcustomercartQue119;
8999
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue118 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue118 === void 0 ? void 0 : (_fetchcustomercartQue119 = _fetchcustomercartQue118.data) === null || _fetchcustomercartQue119 === void 0 ? void 0 : _fetchcustomercartQue119.customercart.paymentmethod) != 'cardondelivery') {
8938
+ var _fetchcustomercartQue126, _fetchcustomercartQue127;
8939
+ 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') {
9000
8940
  cartinfoupdater('paymentmethod', 'cardondelivery');
9001
8941
  }
9002
8942
  }
@@ -9014,10 +8954,10 @@ var Checkout = function Checkout(props) {
9014
8954
  }, /*#__PURE__*/React__default["default"].createElement("input", {
9015
8955
  type: "checkbox",
9016
8956
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
9017
- 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) == 'onlinepayment' ? true : false,
8957
+ 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,
9018
8958
  onChange: function onChange() {
9019
- var _fetchcustomercartQue122, _fetchcustomercartQue123;
9020
- 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) != 'onlinepayment') {
8959
+ var _fetchcustomercartQue130, _fetchcustomercartQue131;
8960
+ 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') {
9021
8961
  cartinfoupdater('paymentmethod', 'onlinepayment');
9022
8962
  }
9023
8963
  }
@@ -9035,10 +8975,10 @@ var Checkout = function Checkout(props) {
9035
8975
  }, /*#__PURE__*/React__default["default"].createElement("input", {
9036
8976
  type: "checkbox",
9037
8977
  className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
9038
- 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) == 'valU' ? true : false,
8978
+ 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,
9039
8979
  onChange: function onChange() {
9040
- var _fetchcustomercartQue126, _fetchcustomercartQue127;
9041
- 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) != 'valU') {
8980
+ var _fetchcustomercartQue134, _fetchcustomercartQue135;
8981
+ 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') {
9042
8982
  cartinfoupdater('paymentmethod', 'valU');
9043
8983
  }
9044
8984
  }
@@ -9049,7 +8989,7 @@ var Checkout = function Checkout(props) {
9049
8989
  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"
9050
8990
  })), /*#__PURE__*/React__default["default"].createElement("p", {
9051
8991
  className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
9052
- }, " ValU")))))), (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) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
8992
+ }, " 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", {
9053
8993
  className: "col-lg-12 p-0 w-100 mb-3"
9054
8994
  }, /*#__PURE__*/React__default["default"].createElement("div", {
9055
8995
  style: {
@@ -13388,6 +13328,7 @@ var CardsSection = function CardsSection(props) {
13388
13328
  if (fetchAuthorizationQueryContext !== null && fetchAuthorizationQueryContext !== void 0 && fetchAuthorizationQueryContext.isSuccess) {
13389
13329
  var _categories;
13390
13330
  var categories = fetchAuthorizationQueryContext.data.data.instinfo.instcategories;
13331
+ // alert(JSON.stringify(categories));
13391
13332
  var parentcollections = [];
13392
13333
  (_categories = categories) === null || _categories === void 0 ? void 0 : _categories.forEach(function (catitem, catindex) {
13393
13334
  catitem === null || catitem === void 0 ? void 0 : catitem.parentcolletions.forEach(function (parentcolitem) {
@@ -13405,6 +13346,15 @@ var CardsSection = function CardsSection(props) {
13405
13346
  });
13406
13347
  parentcollections = arrafterfilter;
13407
13348
  }
13349
+ if (props.collectionidprops != null && props.collectionidprops != undefined && props.collectionidprops != 'all') {
13350
+ var arrafterfilter = [];
13351
+ parentcollections.forEach(function (parentcolitem, parcolindex) {
13352
+ if (parentcolitem.categoryid == props.collectionidprops) {
13353
+ arrafterfilter.push(parentcolitem);
13354
+ }
13355
+ });
13356
+ parentcollections = arrafterfilter;
13357
+ }
13408
13358
  }
13409
13359
  if (fetchingtype == 'innercategories') {
13410
13360
  var arrafterfilter = [];
@@ -13984,6 +13934,8 @@ var CardsSection = function CardsSection(props) {
13984
13934
  } else {
13985
13935
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(ProductFilterObjContext)));
13986
13936
  }
13937
+ } else if (fetchingtype == 'parentcollections') {
13938
+ routingcountext(StaticPagesLinksContext.InnerCategory, true, 'parentcollections/' + (sectionitem === null || sectionitem === void 0 ? void 0 : sectionitem.productsfetchingtypeparentcollectioncategoryid), true);
13987
13939
  } else {
13988
13940
  routingcountext(StaticPagesLinksContext.GeneralProductsComponent, false);
13989
13941
  }
@@ -35591,7 +35543,7 @@ var Footer7 = function Footer7(props) {
35591
35543
  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; }
35592
35544
  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; }
35593
35545
  var Footer8 = function Footer8(props) {
35594
- var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i8, _authdetailsContext$i9, _templatepropcontext$;
35546
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i10, _authdetailsContext$i13, _authdetailsContext$i16, _authdetailsContext$i19, _templatepropcontext$;
35595
35547
  var _useState = React.useState(''),
35596
35548
  _useState2 = _slicedToArray__default["default"](_useState, 2),
35597
35549
  sectionproperties = _useState2[0],
@@ -35889,39 +35841,52 @@ var Footer8 = function Footer8(props) {
35889
35841
  }
35890
35842
  }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.CuContactphonenumber))), /*#__PURE__*/React__default["default"].createElement("div", {
35891
35843
  "class": 'col-lg-12 p-0 d-flex align-items-center justify-content-start mt-3'
35892
- }, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
35893
- "class": "".concat(footerStyles.facebook_btn) + ' d-flex align-items-center justify-content-center ',
35844
+ }, 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", {
35845
+ "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 ',
35894
35846
  onClick: function onClick() {
35895
- var _authdetailsContext$i10;
35896
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.facebooklink) != null) {
35897
- var _authdetailsContext$i11;
35898
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.facebooklink, '_blank');
35847
+ var _authdetailsContext$i11;
35848
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.facebooklink) != null) {
35849
+ var _authdetailsContext$i12;
35850
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.facebooklink, '_blank');
35899
35851
  }
35900
35852
  }
35901
35853
  }, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
35902
35854
  size: sectionproperties.facebkbtnniconfontsize
35903
- })), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
35904
- "class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
35855
+ })), 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", {
35856
+ "class": "".concat(footerStyles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-2 mr-2 ',
35905
35857
  onClick: function onClick() {
35906
- var _authdetailsContext$i12;
35907
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.instagramlink) != null) {
35908
- var _authdetailsContext$i13;
35909
- window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.instagramlink, '_blank');
35858
+ var _authdetailsContext$i14;
35859
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.instagramlink) != null) {
35860
+ var _authdetailsContext$i15;
35861
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.instagramlink, '_blank');
35910
35862
  }
35911
35863
  }
35912
35864
  }, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
35913
35865
  size: sectionproperties.instgrambtniconfontsize
35914
- })), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
35915
- "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ',
35866
+ })), 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", {
35867
+ "class": "".concat(footerStyles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-2 mr-2 ',
35916
35868
  onClick: function onClick() {
35917
- var _authdetailsContext$i14;
35918
- if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.whatsappnumber) != null) {
35919
- var _authdetailsContext$i15;
35920
- window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.whatsappnumber), '_blank');
35869
+ var _authdetailsContext$i17;
35870
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i17 = authdetailsContext.instinfo) === null || _authdetailsContext$i17 === void 0 ? void 0 : _authdetailsContext$i17.whatsappnumber) != null) {
35871
+ var _authdetailsContext$i18;
35872
+ 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');
35921
35873
  }
35922
35874
  }
35923
35875
  }, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
35924
35876
  size: sectionproperties.youtubebtniconfontsize
35877
+ })), 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", {
35878
+ "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 '
35879
+ // class={`${footerStyles.youtube_btn}` + ' d-flex align-items-center justify-content-center ml-1 mr-1 '}
35880
+ ,
35881
+ onClick: function onClick() {
35882
+ var _authdetailsContext$i20;
35883
+ if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i20 = authdetailsContext.instinfo) === null || _authdetailsContext$i20 === void 0 ? void 0 : _authdetailsContext$i20.tiktoklink) != null) {
35884
+ var _authdetailsContext$i21;
35885
+ window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i21 = authdetailsContext.instinfo) === null || _authdetailsContext$i21 === void 0 ? void 0 : _authdetailsContext$i21.tiktoklink, '_blank');
35886
+ }
35887
+ }
35888
+ }, /*#__PURE__*/React__default["default"].createElement(IoLogoTiktok.IoLogoTiktok, {
35889
+ size: sectionproperties.youtubebtniconfontsize
35925
35890
  })))))), sectionproperties.showhidemainpages == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
35926
35891
  "class": "row m-0 allcentered"
35927
35892
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -42752,7 +42717,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42752
42717
  }
42753
42718
  },
42754
42719
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42755
- placeholder: langdetect == 'en' ? 'Choose Country' : 'إختر البلد',
42720
+ placeholder: '',
42756
42721
  isSearchable: true
42757
42722
  })), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42758
42723
  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'
@@ -42772,7 +42737,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42772
42737
  duration: "1s"
42773
42738
  })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
42774
42739
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42775
- placeholder: lang.choosestategov,
42740
+ placeholder: '',
42776
42741
  isSearchable: true
42777
42742
  }), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
42778
42743
  options: fetchTabexStatesQueryContext.data.data.states,
@@ -42811,7 +42776,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42811
42776
  }
42812
42777
  },
42813
42778
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42814
- placeholder: lang.choosestategov,
42779
+ placeholder: '',
42815
42780
  isSearchable: true
42816
42781
  })), sectionproperties.hidecountrystatecity == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
42817
42782
  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'
@@ -42830,7 +42795,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42830
42795
  height: "20px",
42831
42796
  duration: "1s"
42832
42797
  })), FetchTabexStatesPayloadobjContext.country_id == '' && /*#__PURE__*/React__default["default"].createElement(Select, {
42833
- placeholder: lang.choosecity,
42798
+ placeholder: '',
42834
42799
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42835
42800
  isSearchable: true
42836
42801
  }), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
@@ -42866,7 +42831,7 @@ var CustomerAddressForm = function CustomerAddressForm(props) {
42866
42831
  }
42867
42832
  },
42868
42833
  styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
42869
- placeholder: lang.choosecity,
42834
+ placeholder: '',
42870
42835
  isSearchable: true
42871
42836
  })), sectionproperties.hideaddress == 'Show' && props.srcfrom != 'filter' && /*#__PURE__*/React__default["default"].createElement("div", {
42872
42837
  className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
@@ -42914,7 +42879,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42914
42879
  _useState6 = _slicedToArray__default["default"](_useState5, 2),
42915
42880
  imagesarray = _useState6[0],
42916
42881
  setimagesarray = _useState6[1];
42917
- var lang = props.actions.lang;
42882
+ props.actions.lang;
42918
42883
  var langdetect = props.actions.langdetect;
42919
42884
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
42920
42885
  var ikimagecredcontext = props.actions.ikimagecredcontext;
@@ -42927,6 +42892,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42927
42892
  var fetchproductsfilerobjcontext = props.actions.fetchproductsfilerobjcontext;
42928
42893
  var routingcountext = props.actions.routingcountext;
42929
42894
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
42895
+ // const fetchcollectionsQueryContext = props.actions.fetchcollectionsQueryContext;
42930
42896
  var _useState7 = React.useState({
42931
42897
  countryid: '',
42932
42898
  stateid: '',
@@ -42935,14 +42901,35 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42935
42901
  _useState8 = _slicedToArray__default["default"](_useState7, 2),
42936
42902
  payloadobj = _useState8[0],
42937
42903
  setpayloadobj = _useState8[1];
42904
+ var _useState9 = React.useState([]),
42905
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
42906
+ collectionsarray = _useState10[0],
42907
+ setcollectionsarray = _useState10[1];
42908
+ var _useState11 = React.useState([]),
42909
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
42910
+ _useState12[0];
42911
+ _useState12[1];
42938
42912
  var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
42939
42913
  var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
42914
+ var authdetailsContext = props.actions.authdetailsContext;
42915
+ props.actions.fetchcollectionsQueryContext;
42940
42916
  React.useEffect(function () {
42941
42917
  var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
42942
42918
  tempFetchQueriesEngineContext.fetchtabexcountries = true;
42919
+ tempFetchQueriesEngineContext.collections = true;
42943
42920
  setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
42944
42921
  var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
42922
+
42923
+ // authdetailsContext?.instinfo?.instcollections?
42945
42924
  }, []);
42925
+ React.useEffect(function () {
42926
+ var _authdetailsContext$i, _authdetailsContext$i2;
42927
+ var temppcollarray = _toConsumableArray__default["default"](collectionsarray);
42928
+ 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) {
42929
+ temppcollarray.push(arrayItem);
42930
+ });
42931
+ setcollectionsarray(_toConsumableArray__default["default"](temppcollarray));
42932
+ }, [authdetailsContext]);
42946
42933
  React.useEffect(function () {
42947
42934
  var secpropobj = {};
42948
42935
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -42953,7 +42940,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
42953
42940
  }
42954
42941
  });
42955
42942
  setsectionproperties(_objectSpread$15({}, secpropobj));
42956
- // alert(JSON.stringify(fetchTabexCountriesQueryContext));
42957
42943
  }, [StatePagePropertiesContext]);
42958
42944
  React.useEffect(function () {
42959
42945
  if (sectionproperties.length != 0) {
@@ -43041,29 +43027,6 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43041
43027
  }
43042
43028
  })
43043
43029
  };
43044
- var countries = [{
43045
- value: 'egypt',
43046
- label: 'Egypt'
43047
- }, {
43048
- value: 'algeria',
43049
- label: 'Algeria'
43050
- }, {
43051
- value: 'georgia',
43052
- label: 'Georgia'
43053
- }];
43054
- var states = [{
43055
- value: 'cairo',
43056
- label: 'Cairo'
43057
- }, {
43058
- vlaue: 'giza',
43059
- label: 'Giza'
43060
- }, {
43061
- vlaue: 'chlef',
43062
- label: 'Chlef'
43063
- }, {
43064
- vlaue: 'alabama',
43065
- label: 'Alabama'
43066
- }];
43067
43030
  return /*#__PURE__*/React__default["default"].createElement("div", {
43068
43031
  "class": sectionstyles.container + ' allcentered mx-md-0 '
43069
43032
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -43140,37 +43103,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43140
43103
  fontWeight: sectionproperties.formRightTextFontWeight2,
43141
43104
  textAlign: langdetect == 'en' ? 'left' : 'right'
43142
43105
  }
43143
- }, langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar), /*#__PURE__*/React__default["default"].createElement("div", {
43144
- "class": "row m-0 w-100 mt-2"
43145
- }, /*#__PURE__*/React__default["default"].createElement("div", {
43146
- className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
43147
- }, /*#__PURE__*/React__default["default"].createElement("label", {
43148
- className: "".concat(sectionstyles.input_label_name) + ' m-0 '
43149
- }, lang.country), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
43150
- options: countries,
43151
- styles: langdetect == 'en' ? defaultstylestransparent : defaultstylestranslatedtransparent
43152
- })), /*#__PURE__*/React__default["default"].createElement("div", {
43153
- className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
43154
- }, /*#__PURE__*/React__default["default"].createElement("label", {
43155
- className: "".concat(sectionstyles.input_label_name) + ' m-0 '
43156
- }, langdetect == 'en' ? 'State' : 'الولاية'), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
43157
- options: states,
43158
- styles: langdetect == 'en' ? defaultstylestransparent : defaultstylestranslatedtransparent
43159
- })), /*#__PURE__*/React__default["default"].createElement("div", {
43160
- className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
43161
- }, /*#__PURE__*/React__default["default"].createElement("label", {
43162
- className: "".concat(sectionstyles.input_label_name) + ' m-0 '
43163
- }, langdetect == 'en' ? 'From' : 'من'), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("input", {
43164
- className: "".concat(sectionstyles.dateInput),
43165
- type: "date"
43166
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
43167
- className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
43168
- }, /*#__PURE__*/React__default["default"].createElement("label", {
43169
- className: "".concat(sectionstyles.input_label_name) + ' m-0 '
43170
- }, langdetect == 'en' ? 'To' : 'إلى'), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement("input", {
43171
- className: "".concat(sectionstyles.dateInput),
43172
- type: "date"
43173
- })))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43106
+ }, langdetect == 'en' ? sectionproperties.formRightText2 : sectionproperties.formRightText2_ar), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43174
43107
  "class": "row m-0 w-100 justify-content-center"
43175
43108
  }, /*#__PURE__*/React__default["default"].createElement("button", {
43176
43109
  "class": sectionstyles.btnstyles + ' allcentered '
@@ -43187,7 +43120,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43187
43120
  }, sectionproperties.sectiontitleshow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43188
43121
  "class": "col-lg-12 col-md-12 col-sm-12 p-0 allcentered"
43189
43122
  }, /*#__PURE__*/React__default["default"].createElement("div", {
43190
- "class": "wordbreak",
43123
+ "class": "wordbreak text-md-center",
43191
43124
  style: {
43192
43125
  fontSize: sectionproperties.sectionTitleFontSize + 'px',
43193
43126
  color: sectionproperties.sectionTitleColor,
@@ -43206,7 +43139,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43206
43139
  maxWidth: '500px'
43207
43140
  }
43208
43141
  }, langdetect == 'en' ? sectionproperties.descriptionContentEn : sectionproperties.descriptionContentAr)), /*#__PURE__*/React__default["default"].createElement("div", {
43209
- "class": "col-lg-9 col-md-10 col-sm-10 allcentered mt-3",
43142
+ "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',
43210
43143
  style: {
43211
43144
  backgroundColor: sectionproperties.reservation_bgcolor,
43212
43145
  borderRadius: sectionproperties.reservation_borderradius + 'px',
@@ -43221,8 +43154,45 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43221
43154
  "class": "col-lg-12 p-0"
43222
43155
  }, /*#__PURE__*/React__default["default"].createElement("div", {
43223
43156
  "class": "row m-0 w-100 allcentered"
43224
- }, /*#__PURE__*/React__default["default"].createElement("div", {
43225
- "class": sectionproperties.showpricerange == 'Show' ? 'col-lg-9 p-0' : 'col-lg-12 p-0'
43157
+ }, sectionproperties.showcollectionsfilter == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43158
+ className: ' col-lg-2 col-md-12 col-sm-12 mb-md-3 '
43159
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
43160
+ className: ' d-flex justify-content-start ',
43161
+ style: {
43162
+ color: sectionproperties.form_labelcolor,
43163
+ textTransform: sectionproperties.form_labeltexttransform,
43164
+ fontWeight: sectionproperties.form_labelfontweight,
43165
+ fontSize: sectionproperties.form_labelfontsize + 'px',
43166
+ marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
43167
+ }
43168
+ }, langdetect == 'en' ? sectionproperties.collectionsfilternameen : sectionproperties.collectionsfilternamear), /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
43169
+ options: collectionsarray,
43170
+ getOptionLabel: function getOptionLabel(option) {
43171
+ var crname = '';
43172
+ if (langdetect == 'en') {
43173
+ crname = option.title_en;
43174
+ } else if (langdetect == 'ar') {
43175
+ crname = option.title_ar;
43176
+ }
43177
+ return crname;
43178
+ },
43179
+ getOptionValue: function getOptionValue(option) {
43180
+ return option.collectionid;
43181
+ },
43182
+ autocomplete: "new-password"
43183
+ // value={fetchTabexCountriesQueryContext.data.data.countries.filter((option) => option.id == props?.payloadobj?.countryid)}
43184
+ ,
43185
+ onChange: function onChange(option) {
43186
+ var temp = payloadobj;
43187
+ temp.collections = [];
43188
+ temp.collections.push(option.collectionid);
43189
+ setpayloadobj(_objectSpread$15({}, temp));
43190
+ },
43191
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
43192
+ isSearchable: true,
43193
+ placeholder: ''
43194
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
43195
+ "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'
43226
43196
  }, /*#__PURE__*/React__default["default"].createElement(CustomerAddressForm
43227
43197
  // customeraddressrequierd={customeraddressrequierd}
43228
43198
  // payloadobj={payloadobj}
@@ -43240,7 +43210,7 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43240
43210
  fetchTabexStatesQueryContext: fetchTabexStatesQueryContext,
43241
43211
  fetchTabexCitiesQueryContext: fetchTabexCitiesQueryContext
43242
43212
  })), sectionproperties.showpricerange == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43243
- className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-3 col-md-12 col-sm-12 mb-sm-3 '
43213
+ 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 '
43244
43214
  }, /*#__PURE__*/React__default["default"].createElement("label", {
43245
43215
  className: "".concat(sectionstyles.input_label_name) + ' mb-3 '
43246
43216
  }, langdetect == 'en' ? 'Price' : 'السعر'), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -43253,14 +43223,14 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43253
43223
  formatLabel: function formatLabel(value) {
43254
43224
  return "".concat(value);
43255
43225
  },
43256
- maxValue: 10000,
43257
- minValue: 0,
43226
+ maxValue: parseInt(sectionproperties.filterpricemaxvalue),
43227
+ minValue: parseInt(sectionproperties.filterpriceminvalue),
43258
43228
  value: pricevalue,
43259
43229
  onChange: function onChange(value) {
43260
43230
  setpricevalue(_objectSpread$15({}, value));
43261
43231
  }
43262
- })), /*#__PURE__*/React__default["default"].createElement("div", null)))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43263
- "class": "col-lg-12 p-0 allcentered mt-3"
43232
+ }))))), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
43233
+ "class": 'col-lg-12 mt-3 p-0 allcentered'
43264
43234
  }, /*#__PURE__*/React__default["default"].createElement("button", {
43265
43235
  "class": sectionstyles.btnstyles + ' allcentered ',
43266
43236
  onClick: function onClick() {
@@ -43287,6 +43257,9 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
43287
43257
  tempfetchproductsfilerobjcontext.cityid = payloadobj.cityid;
43288
43258
  }
43289
43259
  }
43260
+ if ((payloadobj === null || payloadobj === void 0 ? void 0 : payloadobj.collections) != null && payloadobj.collections.length != 0) {
43261
+ tempfetchproductsfilerobjcontext.collections = payloadobj.collections;
43262
+ }
43290
43263
  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) {
43291
43264
  tempfetchproductsfilerobjcontext.price_min = pricevalue.min;
43292
43265
  }