tabexseriescomponents 0.60.2 → 0.60.4

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
@@ -49,6 +49,8 @@ require('@react-icons/all-files/hi/HiOutlinePlusCircle');
49
49
  require('@react-icons/all-files/hi/HiOutlineMinusCircle');
50
50
  var TextareaAutosize = require('react-textarea-autosize');
51
51
  var InputRange = require('react-input-range');
52
+ var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
53
+ var _regeneratorRuntime = require('@babel/runtime/regenerator');
52
54
  var AiOutlineClockCircle = require('@react-icons/all-files/ai/AiOutlineClockCircle');
53
55
  var AiOutlinePlus = require('@react-icons/all-files/ai/AiOutlinePlus');
54
56
  var AiOutlineCheck = require('@react-icons/all-files/ai/AiOutlineCheck');
@@ -69,13 +71,11 @@ var HiOutlineChevronLeft = require('@react-icons/all-files/hi/HiOutlineChevronLe
69
71
  var GoGlobe = require('@react-icons/all-files/go/GoGlobe');
70
72
  var VscGlobe = require('@react-icons/all-files/vsc/VscGlobe');
71
73
  var Dropdown = require('react-bootstrap/Dropdown');
72
- var _asyncToGenerator = require('@babel/runtime/helpers/asyncToGenerator');
73
- var _regeneratorRuntime = require('@babel/runtime/regenerator');
74
74
  var HiUser = require('@react-icons/all-files/hi/HiUser');
75
75
  var GrMail = require('@react-icons/all-files/gr/GrMail');
76
76
  var FiCheckCircle = require('@react-icons/all-files/fi/FiCheckCircle');
77
77
  var BiPhone = require('@react-icons/all-files/bi/BiPhone');
78
- var Select$4 = require('react-select');
78
+ var Select$5 = require('react-select');
79
79
  var PhoneInput = require('react-phone-input-2');
80
80
  require('@mui/system');
81
81
  var BsChevronLeft = require('@react-icons/all-files/bs/BsChevronLeft');
@@ -214,12 +214,12 @@ var ImageGallery__default = /*#__PURE__*/_interopDefaultLegacy(ImageGallery);
214
214
  var ReactStars__default = /*#__PURE__*/_interopDefaultLegacy(ReactStars);
215
215
  var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
216
216
  var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
217
+ var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
218
+ var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
217
219
  var DatePicker__default = /*#__PURE__*/_interopDefaultLegacy(DatePicker);
218
220
  var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
219
221
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
220
- var _asyncToGenerator__default = /*#__PURE__*/_interopDefaultLegacy(_asyncToGenerator);
221
- var _regeneratorRuntime__default = /*#__PURE__*/_interopDefaultLegacy(_regeneratorRuntime);
222
- var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$4);
222
+ var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$5);
223
223
  var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
224
224
  var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
225
225
  var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
@@ -779,8 +779,8 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
779
779
  })));
780
780
  };
781
781
 
782
- function ownKeys$2G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
783
- function _objectSpread$2G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2G(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
782
+ function ownKeys$2I(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
783
+ function _objectSpread$2I(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2I(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2I(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
784
784
  var Login = function Login(props) {
785
785
  var _css;
786
786
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -856,7 +856,7 @@ var Login = function Login(props) {
856
856
  StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 || (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 || (_StatePagePropertiesC = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC === void 0 || _StatePagePropertiesC.forEach(function (arrayItem, arrayindex) {
857
857
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
858
858
  });
859
- setsectionproperties(_objectSpread$2G({}, secpropobj));
859
+ setsectionproperties(_objectSpread$2I({}, secpropobj));
860
860
  }
861
861
  }, [StatePagePropertiesContext]);
862
862
  React.useEffect(function () {
@@ -1024,9 +1024,9 @@ var Login = function Login(props) {
1024
1024
  className: "".concat(loginstyles2.form_control),
1025
1025
  value: payloadobj.email,
1026
1026
  onChange: function onChange(event) {
1027
- var temppayloadobj = _objectSpread$2G({}, payloadobj);
1027
+ var temppayloadobj = _objectSpread$2I({}, payloadobj);
1028
1028
  temppayloadobj.email = event.target.value;
1029
- setpayloadobj(_objectSpread$2G({}, temppayloadobj));
1029
+ setpayloadobj(_objectSpread$2I({}, temppayloadobj));
1030
1030
  },
1031
1031
  style: {
1032
1032
  background: sectionproperties.input_bgcolor
@@ -1048,9 +1048,9 @@ var Login = function Login(props) {
1048
1048
  textplaceholder: "",
1049
1049
  value: payloadobj.password,
1050
1050
  onChange: function onChange(event) {
1051
- var temppayloadobj = _objectSpread$2G({}, payloadobj);
1051
+ var temppayloadobj = _objectSpread$2I({}, payloadobj);
1052
1052
  temppayloadobj.password = event.target.value;
1053
- setpayloadobj(_objectSpread$2G({}, temppayloadobj));
1053
+ setpayloadobj(_objectSpread$2I({}, temppayloadobj));
1054
1054
  },
1055
1055
  style: {
1056
1056
  background: sectionproperties.input_bgcolor
@@ -1227,9 +1227,9 @@ var Login = function Login(props) {
1227
1227
  className: "".concat(loginstyles2.form_control),
1228
1228
  value: forgotpasswordpayload.email,
1229
1229
  onChange: function onChange(event) {
1230
- var temppayloadobj = _objectSpread$2G({}, forgotpasswordpayload);
1230
+ var temppayloadobj = _objectSpread$2I({}, forgotpasswordpayload);
1231
1231
  temppayloadobj.email = event.target.value;
1232
- setforgotpasswordpayload(_objectSpread$2G({}, temppayloadobj));
1232
+ setforgotpasswordpayload(_objectSpread$2I({}, temppayloadobj));
1233
1233
  },
1234
1234
  disabled: forgetpasswordstage == 'verify' ? true : false,
1235
1235
  style: {
@@ -1244,9 +1244,9 @@ var Login = function Login(props) {
1244
1244
  className: "".concat(loginstyles2.form_control),
1245
1245
  value: forgotpasswordpayload.code,
1246
1246
  onChange: function onChange(event) {
1247
- var temppayloadobj = _objectSpread$2G({}, forgotpasswordpayload);
1247
+ var temppayloadobj = _objectSpread$2I({}, forgotpasswordpayload);
1248
1248
  temppayloadobj.code = event.target.value;
1249
- setforgotpasswordpayload(_objectSpread$2G({}, temppayloadobj));
1249
+ setforgotpasswordpayload(_objectSpread$2I({}, temppayloadobj));
1250
1250
  },
1251
1251
  style: {
1252
1252
  background: sectionproperties.input_bgcolor
@@ -1260,9 +1260,9 @@ var Login = function Login(props) {
1260
1260
  className: "".concat(loginstyles2.form_control),
1261
1261
  value: forgotpasswordpayload.newpassword,
1262
1262
  onChange: function onChange(event) {
1263
- var temppayloadobj = _objectSpread$2G({}, forgotpasswordpayload);
1263
+ var temppayloadobj = _objectSpread$2I({}, forgotpasswordpayload);
1264
1264
  temppayloadobj.newpassword = event.target.value;
1265
- setforgotpasswordpayload(_objectSpread$2G({}, temppayloadobj));
1265
+ setforgotpasswordpayload(_objectSpread$2I({}, temppayloadobj));
1266
1266
  },
1267
1267
  style: {
1268
1268
  background: sectionproperties.input_bgcolor
@@ -1276,9 +1276,9 @@ var Login = function Login(props) {
1276
1276
  className: "".concat(loginstyles2.form_control),
1277
1277
  value: forgotpasswordpayload.confirmnewpassword,
1278
1278
  onChange: function onChange(event) {
1279
- var temppayloadobj = _objectSpread$2G({}, forgotpasswordpayload);
1279
+ var temppayloadobj = _objectSpread$2I({}, forgotpasswordpayload);
1280
1280
  temppayloadobj.confirmnewpassword = event.target.value;
1281
- setforgotpasswordpayload(_objectSpread$2G({}, temppayloadobj));
1281
+ setforgotpasswordpayload(_objectSpread$2I({}, temppayloadobj));
1282
1282
  },
1283
1283
  style: {
1284
1284
  background: sectionproperties.input_bgcolor
@@ -1290,7 +1290,7 @@ var Login = function Login(props) {
1290
1290
  onClick: function onClick() {
1291
1291
  if (forgotpasswordpayload.email.length != 0) {
1292
1292
  var runfunc = false;
1293
- var tempforgotpasswordpayload = _objectSpread$2G({}, forgotpasswordpayload);
1293
+ var tempforgotpasswordpayload = _objectSpread$2I({}, forgotpasswordpayload);
1294
1294
  tempforgotpasswordpayload.functype = forgetpasswordstage;
1295
1295
  if (forgetpasswordstage == 'verify') {
1296
1296
  if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
@@ -1341,11 +1341,11 @@ var css_248z$J = "@media screen and (max-width: 800px) {\r\n .signup-module_r
1341
1341
  var loginstyles = {"rightContainer":"signup-module_rightContainer__yEcoL","rightContainerTrans":"signup-module_rightContainerTrans__fkdBH","rightContainerText":"signup-module_rightContainerText__-pvN-","form_control":"signup-module_form_control__7s76W","anim-shadow":"signup-module_anim-shadow__CsxhG","login_input_icon":"signup-module_login_input_icon__RDTS0","form_control_border_none":"signup-module_form_control_border_none__HjUMS","disabled":"signup-module_disabled__h55ao","leftcontainer":"signup-module_leftcontainer__bqfnN","form_controltextarea":"signup-module_form_controltextarea__-LGz6","checkbox":"signup-module_checkbox__8ejBx","checkbox_label":"signup-module_checkbox_label__d84Q2","checkbox_sub":"signup-module_checkbox_sub__WQLUX","checkboxtranslated":"signup-module_checkboxtranslated__4xHR-","showpassword_input_icon":"signup-module_showpassword_input_icon__cVHRS","showpassword_input_icontrans":"signup-module_showpassword_input_icontrans__vmV5q"};
1342
1342
  styleInject(css_248z$J);
1343
1343
 
1344
- function ownKeys$2F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1345
- function _objectSpread$2F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2F(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1344
+ function ownKeys$2H(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1345
+ function _objectSpread$2H(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2H(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2H(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1346
1346
  var selectcustomStyles = {
1347
1347
  option: function option(provided, state) {
1348
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1348
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1349
1349
  borderBottom: '1px solid #e6e6e6',
1350
1350
  backgroundColor: state.isSelected ? '' : '',
1351
1351
  padding: 5,
@@ -1374,7 +1374,7 @@ var selectcustomStyles = {
1374
1374
  };
1375
1375
  var selectcustomStylesTranslated = {
1376
1376
  option: function option(provided, state) {
1377
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1377
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1378
1378
  borderBottom: '1px solid #e6e6e6',
1379
1379
  backgroundColor: state.isSelected ? '' : '',
1380
1380
  padding: 5,
@@ -1403,14 +1403,14 @@ var selectcustomStylesTranslated = {
1403
1403
  };
1404
1404
  },
1405
1405
  placeholder: function placeholder(provided, state) {
1406
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1406
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1407
1407
  textAlign: 'right'
1408
1408
  });
1409
1409
  }
1410
1410
  };
1411
1411
  var defaultstyles = {
1412
1412
  option: function option(provided, state) {
1413
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1413
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1414
1414
  borderBottom: '1px solid #e6e6e6',
1415
1415
  backgroundColor: state.isSelected ? '' : '',
1416
1416
  padding: 5,
@@ -1437,21 +1437,21 @@ var defaultstyles = {
1437
1437
  });
1438
1438
  },
1439
1439
  dropdownIndicator: function dropdownIndicator(provided) {
1440
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1440
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1441
1441
  '&:hover': {
1442
1442
  // color: '#eac435',
1443
1443
  }
1444
1444
  });
1445
1445
  },
1446
1446
  placeholder: function placeholder(provided, state) {
1447
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1447
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1448
1448
  color: '#000000'
1449
1449
  });
1450
1450
  }
1451
1451
  };
1452
1452
  var defaultstylestranslated = {
1453
1453
  option: function option(provided, state) {
1454
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1454
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1455
1455
  borderBottom: '1px solid #e6e6e6',
1456
1456
  backgroundColor: state.isSelected ? '' : '',
1457
1457
  padding: 5,
@@ -1482,14 +1482,14 @@ var defaultstylestranslated = {
1482
1482
  };
1483
1483
  },
1484
1484
  dropdownIndicator: function dropdownIndicator(provided) {
1485
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1485
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1486
1486
  '&:hover': {
1487
1487
  // color: '#eac435',
1488
1488
  }
1489
1489
  });
1490
1490
  },
1491
1491
  placeholder: function placeholder(provided, state) {
1492
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1492
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1493
1493
  textAlign: 'right',
1494
1494
  color: '#000000'
1495
1495
  });
@@ -1497,7 +1497,7 @@ var defaultstylestranslated = {
1497
1497
  };
1498
1498
  var defaultstylesnone = {
1499
1499
  option: function option(provided, state) {
1500
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1500
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1501
1501
  borderBottom: '1px solid #e6e6e6',
1502
1502
  backgroundColor: state.isSelected ? '' : '',
1503
1503
  padding: 5,
@@ -1525,7 +1525,7 @@ var defaultstylesnone = {
1525
1525
  };
1526
1526
  },
1527
1527
  dropdownIndicator: function dropdownIndicator(provided) {
1528
- return _objectSpread$2F(_objectSpread$2F({}, provided), {}, {
1528
+ return _objectSpread$2H(_objectSpread$2H({}, provided), {}, {
1529
1529
  '&:hover': {
1530
1530
  // color: '#eac435',
1531
1531
  }
@@ -1533,7 +1533,7 @@ var defaultstylesnone = {
1533
1533
  }
1534
1534
  };
1535
1535
 
1536
- var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
1536
+ var Select$4 = /*#__PURE__*/React__default["default"].lazy(function () {
1537
1537
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
1538
1538
  });
1539
1539
  var Variantoptions = function Variantoptions(props) {
@@ -1988,7 +1988,7 @@ var Variantoptions = function Variantoptions(props) {
1988
1988
  width: '100%'
1989
1989
  },
1990
1990
  className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control) + ' variantselectbox '
1991
- }, /*#__PURE__*/React__default["default"].createElement(Select$3, {
1991
+ }, /*#__PURE__*/React__default["default"].createElement(Select$4, {
1992
1992
  options: orgselectoptions,
1993
1993
  getOptionLabel: function getOptionLabel(option) {
1994
1994
  var crname = '';
@@ -2433,8 +2433,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
2433
2433
  }, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(Math.round(parseInt(fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2) : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)) * (fetchProductInfoQueryContext.data.data.productinfo.prodaffpercentprofit / 100))).toFixed(0), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))));
2434
2434
  };
2435
2435
 
2436
- function ownKeys$2E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2437
- function _objectSpread$2E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2E(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2436
+ function ownKeys$2G(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2437
+ function _objectSpread$2G(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2G(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2G(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2438
2438
  var ProductExtraFields = function ProductExtraFields(props) {
2439
2439
  var _fetchProductInfoQuer, _css, _fetchProductInfoQuer2;
2440
2440
  props.actions.lang;
@@ -2489,9 +2489,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
2489
2489
  });
2490
2490
  }
2491
2491
  setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
2492
- var tempaddtocardpayloadobj = _objectSpread$2E({}, addtocardpayloadobj);
2492
+ var tempaddtocardpayloadobj = _objectSpread$2G({}, addtocardpayloadobj);
2493
2493
  tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
2494
- setaddtocardpayloadobj(_objectSpread$2E({}, tempaddtocardpayloadobj));
2494
+ setaddtocardpayloadobj(_objectSpread$2G({}, tempaddtocardpayloadobj));
2495
2495
  };
2496
2496
  var formstyles = {
2497
2497
  input_label_name: glamor.css({
@@ -2724,8 +2724,8 @@ var DescriptionContent = function DescriptionContent(props) {
2724
2724
  })))));
2725
2725
  };
2726
2726
 
2727
- function ownKeys$2D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2728
- function _objectSpread$2D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2D(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2727
+ function ownKeys$2F(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2728
+ function _objectSpread$2F(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2F(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2F(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2729
2729
  var AddReview = function AddReview(props) {
2730
2730
  var _css;
2731
2731
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -2777,7 +2777,7 @@ var AddReview = function AddReview(props) {
2777
2777
  StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
2778
2778
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2779
2779
  });
2780
- setsectionproperties(_objectSpread$2D({}, secpropobj));
2780
+ setsectionproperties(_objectSpread$2F({}, secpropobj));
2781
2781
  }
2782
2782
  }, [StatePagePropertiesContext]);
2783
2783
  React.useEffect(function () {
@@ -2786,7 +2786,7 @@ var AddReview = function AddReview(props) {
2786
2786
  templatepropcontext === null || templatepropcontext === void 0 || (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 || (_templatepropcontext$ = _templatepropcontext$.pageproperties) === null || _templatepropcontext$ === void 0 || _templatepropcontext$.forEach(function (arrayItem, arrayindex) {
2787
2787
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2788
2788
  });
2789
- setsectionproperties(_objectSpread$2D({}, secpropobj));
2789
+ setsectionproperties(_objectSpread$2F({}, secpropobj));
2790
2790
  }, [pageindexcontext]);
2791
2791
  var reviewstyles = {
2792
2792
  submitreviewbtn: glamor.css({
@@ -2912,9 +2912,9 @@ var AddReview = function AddReview(props) {
2912
2912
  }),
2913
2913
  activeColor: "#ffd700",
2914
2914
  onChange: function onChange(event) {
2915
- var tempreviewpayloadobj = _objectSpread$2D({}, reviewpayloadobj);
2915
+ var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
2916
2916
  tempreviewpayloadobj.reviewrate = event;
2917
- setreviewpayloadobj(_objectSpread$2D({}, tempreviewpayloadobj));
2917
+ setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
2918
2918
  }
2919
2919
  })))))), /*#__PURE__*/React__default["default"].createElement("div", {
2920
2920
  "class": "col-lg-12"
@@ -2928,9 +2928,9 @@ var AddReview = function AddReview(props) {
2928
2928
  "class": reviewstyles.form_control,
2929
2929
  value: reviewpayloadobj.reviewname,
2930
2930
  onChange: function onChange(event) {
2931
- var tempreviewpayloadobj = _objectSpread$2D({}, reviewpayloadobj);
2931
+ var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
2932
2932
  tempreviewpayloadobj.reviewname = event.target.value;
2933
- setreviewpayloadobj(_objectSpread$2D({}, tempreviewpayloadobj));
2933
+ setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
2934
2934
  }
2935
2935
  })), /*#__PURE__*/React__default["default"].createElement("div", {
2936
2936
  "class": "col-lg-12 mb-4"
@@ -2940,9 +2940,9 @@ var AddReview = function AddReview(props) {
2940
2940
  "class": reviewstyles.form_control,
2941
2941
  value: reviewpayloadobj.reviewtitle,
2942
2942
  onChange: function onChange(event) {
2943
- var tempreviewpayloadobj = _objectSpread$2D({}, reviewpayloadobj);
2943
+ var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
2944
2944
  tempreviewpayloadobj.reviewtitle = event.target.value;
2945
- setreviewpayloadobj(_objectSpread$2D({}, tempreviewpayloadobj));
2945
+ setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
2946
2946
  }
2947
2947
  })), /*#__PURE__*/React__default["default"].createElement("div", {
2948
2948
  "class": "col-lg-12 mb-4"
@@ -2953,9 +2953,9 @@ var AddReview = function AddReview(props) {
2953
2953
  "class": reviewstyles.form_control + ' form_control ',
2954
2954
  value: reviewpayloadobj.reviewbody,
2955
2955
  onChange: function onChange(event) {
2956
- var tempreviewpayloadobj = _objectSpread$2D({}, reviewpayloadobj);
2956
+ var tempreviewpayloadobj = _objectSpread$2F({}, reviewpayloadobj);
2957
2957
  tempreviewpayloadobj.reviewbody = event.target.value;
2958
- setreviewpayloadobj(_objectSpread$2D({}, tempreviewpayloadobj));
2958
+ setreviewpayloadobj(_objectSpread$2F({}, tempreviewpayloadobj));
2959
2959
  },
2960
2960
  style: {
2961
2961
  resize: 'none',
@@ -2990,8 +2990,8 @@ var AddReview = function AddReview(props) {
2990
2990
  }, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
2991
2991
  };
2992
2992
 
2993
- function ownKeys$2C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2994
- function _objectSpread$2C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2C(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2993
+ function ownKeys$2E(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
2994
+ function _objectSpread$2E(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2E(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2E(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
2995
2995
  var ProductReviews = function ProductReviews(props) {
2996
2996
  var _fetchProductInfoQuer, _fetchProductInfoQuer3, _fetchProductInfoQuer4;
2997
2997
  props.actions.lang;
@@ -3239,7 +3239,7 @@ var ProductReviews = function ProductReviews(props) {
3239
3239
  size: "md",
3240
3240
  "class": "reviewmodal"
3241
3241
  }, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
3242
- actions: _objectSpread$2C(_objectSpread$2C({}, actions), {}, {
3242
+ actions: _objectSpread$2E(_objectSpread$2E({}, actions), {}, {
3243
3243
  productid: productid,
3244
3244
  canuserreview: canuserreview,
3245
3245
  addreviewcallback: addreviewcallback
@@ -3247,135 +3247,1171 @@ var ProductReviews = function ProductReviews(props) {
3247
3247
  }))));
3248
3248
  };
3249
3249
 
3250
- function ownKeys$2B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3251
- function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3252
- var Product_itemtype = function Product_itemtype(props) {
3253
- var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _authdetailsContext$i1, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100, _fetchProductInfoQuer101, _fetchProductInfoQuer102, _fetchProductInfoQuer103, _fetchProductInfoQuer104, _fetchProductInfoQuer105, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _fetchProductInfoQuer106, _fetchProductInfoQuer107, _fetchProductInfoQuer108, _fetchProductInfoQuer109, _fetchProductInfoQuer110, _fetchProductInfoQuer111, _authdetailsContext$i10, _authdetailsContext$i11, _fetchProductInfoQuer112, _fetchProductInfoQuer113, _fetchProductInfoQuer114, _fetchProductInfoQuer115, _fetchProductInfoQuer116, _fetchProductInfoQuer117, _fetchProductInfoQuer118, _fetchProductInfoQuer119, _authdetailsContext$i12, _fetchProductInfoQuer120, _fetchProductInfoQuer121, _fetchProductInfoQuer122, _fetchProductInfoQuer123, _fetchProductInfoQuer124, _fetchProductInfoQuer127, _fetchProductInfoQuer128, _authdetailsContext$i13, _fetchProductInfoQuer129, _fetchProductInfoQuer130, _fetchProductInfoQuer131, _fetchProductInfoQuer132, _fetchProductInfoQuer133, _fetchProductInfoQuer134, _fetchProductInfoQuer135, _fetchProductInfoQuer138, _fetchProductInfoQuer139, _sizeguideimage$, _authdetailsContext$i14, _fetchProductInfoQuer141, _fetchProductInfoQuer142;
3250
+ function ownKeys$2D(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3251
+ function _objectSpread$2D(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2D(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2D(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3252
+ var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
3253
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
3254
+ });
3255
+ var Variantoptions_f_quantity_cond = function Variantoptions_f_quantity_cond(props) {
3256
+ var _css, _ProductInfoObj$data5, _ProductInfoObj$data6, _ProductInfoObj$data7, _ProductInfoObj$data8, _ProductInfoObj$data9, _ProductInfoObj$data0, _ProductInfoObj$data1, _ProductInfoObj$data10, _ProductInfoObj$data11, _ProductInfoObj$data12, _sizeguideimage$;
3257
+ var productinfo_cssstyles = props.actions.productinfo_cssstyles;
3254
3258
  var lang = props.actions.lang;
3255
- var actions = props.actions;
3256
3259
  var langdetect = props.actions.langdetect;
3257
- var srcfromprops = props.actions.srcfromprops;
3258
- var returnpolicyobj = props.actions.returnpolicyobj;
3259
- var productinfo_cssstyles = props.actions.productinfo_cssstyles;
3260
- var addtocartfunc = props.actions.addtocartfunc;
3261
- props.actions.selectproductoptionvalue;
3262
- props.actions.clearchoosenvaluesbutkeepcurrentvalue;
3263
- var productimagesarray = props.actions.productimagesarray;
3260
+ var _useState = React.useState([]),
3261
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
3262
+ variantvalueidentifier = _useState2[0],
3263
+ setvariantvalueidentifier = _useState2[1];
3264
+
3265
+ // const variantvalueidentifier = props.actions.variantvalueidentifier;
3266
+ // const selectproductoptionvalue = props.actions.selectproductoptionvalue;
3267
+ // const clearchoosenvaluesbutkeepcurrentvalue = props.actions.clearchoosenvaluesbutkeepcurrentvalue;
3264
3268
  var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
3269
+ // const variant_id_return = props.variant_id_return;
3265
3270
  var sectionproperties = props.actions.sectionproperties;
3266
- var addtocardpayloadobj = props.actions.addtocardpayloadobj;
3267
- var setaddtocardpayloadobj = props.actions.setaddtocardpayloadobj;
3268
- var routingcountext = props.actions.routingcountext;
3269
- var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
3270
- var authdetailsContext = props.actions.authdetailsContext;
3271
- var variantsku = props.actions.variantsku;
3272
- var addtofavoritescontext = props.actions.addtofavoritescontext;
3273
- var variantindexcompleted = props.actions.variantindexcompleted;
3274
- props.actions.ProductInfoObj;
3275
- var NotificationManager = props.actions.NotificationManager;
3276
- var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
3277
- var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
3278
- props.actions.getprice_discountpricepropsnormalonly;
3279
3271
  var ikimagecredcontext = props.actions.ikimagecredcontext;
3280
- var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
3281
- var StoreInfoprops = props.actions.StoreInfoprops;
3282
- props.actions.productimagesarray;
3283
- var sizeguideimage = props.actions.sizeguideimage;
3284
- // const setopensizeguidemodal = props.actions.setopensizeguidemodal;
3285
- // const opensizeguidemodal = props.actions.opensizeguidemodal;
3286
- var _useState = React.useState(false),
3287
- _useState2 = _slicedToArray__default["default"](_useState, 2),
3288
- opensizeguidemodal = _useState2[0],
3289
- setopensizeguidemodal = _useState2[1];
3290
- var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen + ' ' + 'https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
3291
- var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear + ' ' + 'https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
3292
- var _useState3 = React.useState(currentshowingimageindex_pro),
3272
+ // const ProductInfoObj = props.actions.ProductInfoObj;
3273
+ var _useState3 = React.useState({}),
3293
3274
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
3294
- currentshowingimageindex = _useState4[0],
3295
- setcurrentshowingimageindex = _useState4[1];
3296
- // const DescriptionContent = props.actions.DescriptionContent;
3297
- var _useState5 = React.useState(''),
3298
- _useState6 = _slicedToArray__default["default"](_useState5, 2),
3299
- shareUrl = _useState6[0],
3300
- setshareUrl = _useState6[1];
3301
- var _useState7 = React.useState(''),
3302
- _useState8 = _slicedToArray__default["default"](_useState7, 2),
3303
- title = _useState8[0],
3304
- settitle = _useState8[1];
3305
- var _useState9 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
3275
+ ProductInfoObj = _useState4[0],
3276
+ setProductInfoObj = _useState4[1];
3277
+ var _useState5 = React.useState(false),
3278
+ _useState6 = _slicedToArray__default["default"](_useState5, 2);
3279
+ _useState6[0];
3280
+ var setisloaded = _useState6[1];
3281
+ var _useState7 = React.useState(false),
3282
+ _useState8 = _slicedToArray__default["default"](_useState7, 2);
3283
+ _useState8[0];
3284
+ var setisoutofstock = _useState8[1];
3285
+ var _useState9 = React.useState(''),
3306
3286
  _useState0 = _slicedToArray__default["default"](_useState9, 2);
3307
3287
  _useState0[0];
3308
- var setitem = _useState0[1];
3309
- var _useState1 = React.useState(''),
3310
- _useState10 = _slicedToArray__default["default"](_useState1, 2);
3311
- _useState10[0];
3312
- var settotalprice = _useState10[1];
3313
- var _useState11 = React.useState(null),
3288
+ _useState0[1];
3289
+ var _useState1 = React.useState([]),
3290
+ _useState10 = _slicedToArray__default["default"](_useState1, 2),
3291
+ productimagesarray = _useState10[0];
3292
+ _useState10[1];
3293
+ var _useState11 = React.useState(false),
3314
3294
  _useState12 = _slicedToArray__default["default"](_useState11, 2),
3315
- gallery = _useState12[0],
3316
- setGallery = _useState12[1]; // Store reference to the gallery
3317
- var Slideshowsettings = {
3318
- indicators: true,
3319
- arrows: true,
3320
- pauseOnHover: false,
3321
- scale: 2
3322
- };
3323
- var toggleFullScreen = function toggleFullScreen() {
3324
- if (gallery) {
3325
- gallery.toggleFullScreen();
3326
- }
3327
- };
3295
+ opensizeguidemodal = _useState12[0],
3296
+ setopensizeguidemodal = _useState12[1];
3297
+ var _useState13 = React.useState(''),
3298
+ _useState14 = _slicedToArray__default["default"](_useState13, 2);
3299
+ _useState14[0];
3300
+ var setvariantindex = _useState14[1];
3301
+ var _useState15 = React.useState(''),
3302
+ _useState16 = _slicedToArray__default["default"](_useState15, 2),
3303
+ addtocardpayloadobj = _useState16[0],
3304
+ setaddtocardpayloadobj = _useState16[1];
3305
+ var _useState17 = React.useState(''),
3306
+ _useState18 = _slicedToArray__default["default"](_useState17, 2),
3307
+ variantindexcompleted = _useState18[0],
3308
+ setvariantindexcompleted = _useState18[1];
3309
+ var initializedRef = React__default["default"].useRef(false);
3310
+
3311
+ // const variantindexcompleted = props.actions.variantindexcompleted;
3312
+ var sizeguideimage = props.actions.sizeguideimage;
3328
3313
  React.useEffect(function () {
3329
- var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
3330
- if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
3331
- itemobj.titlelang = 'en';
3332
- } else {
3333
- itemobj.titlelang = 'ar';
3334
- }
3335
- if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.description_en)) {
3336
- itemobj.decriptionlang = 'en';
3337
- } else {
3338
- itemobj.decriptionlang = 'ar';
3339
- }
3340
- setitem(itemobj);
3341
- settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
3342
- setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
3343
- }, [props.itemprops]);
3344
- function stringIsEnglish(str) {
3345
- var titlelang = 'English';
3346
- var arabic = /[\u0600-\u06FF]/;
3347
- if (!arabic.test(str)) {
3348
- titlelang = true;
3349
- } else {
3350
- titlelang = false;
3314
+ if (!initializedRef.current && fetchProductInfoQueryContext.isSuccess) {
3315
+ setProductInfoObj(_objectSpread$2D({}, fetchProductInfoQueryContext.data)); // shallow clone
3316
+ initializedRef.current = true; // mark as initialized
3351
3317
  }
3352
- return titlelang;
3353
- }
3354
- var Ar_redirector = function Ar_redirector() {
3355
- // var instapikey = authdetailsContext?.instinfo?.instcred?.webapp_apikey;
3356
- // var productid = fetchProductInfoQueryContext?.data?.data?.productinfo?.productid;
3357
-
3358
- // const url = https://3d-tryon.vercel.app/?i=${instapikey}&p=${productid};
3359
- var url = 'https://3d-tryon.vercel.app/?i=68319d088f13f&p=6832fc16af9d7';
3360
- window.open(url, '_blank');
3318
+ }, [fetchProductInfoQueryContext.isSuccess]);
3319
+ var clearchoosenvaluesbutkeepcurrentvalue = function clearchoosenvaluesbutkeepcurrentvalue(optionindex, optionvaluesitem, optionvaluesindex) {
3320
+ var _productarr$data;
3321
+ var productarr = ProductInfoObj;
3322
+ productarr === null || productarr === void 0 || (_productarr$data = productarr.data) === null || _productarr$data === void 0 || (_productarr$data = _productarr$data.productinfo) === null || _productarr$data === void 0 || (_productarr$data = _productarr$data.productoptions) === null || _productarr$data === void 0 || _productarr$data.forEach(function (item, index) {
3323
+ var _item$optionvalues;
3324
+ item.isselected = 0;
3325
+ item === null || item === void 0 || (_item$optionvalues = item.optionvalues) === null || _item$optionvalues === void 0 || _item$optionvalues.forEach(function (valueitem, valueindex) {
3326
+ valueitem.isselected = 0;
3327
+ });
3328
+ });
3329
+ selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, productarr);
3361
3330
  };
3362
- var ShareButtonsContainer = function ShareButtonsContainer() {
3363
- return /*#__PURE__*/React__default["default"].createElement("div", {
3364
- "class": "row m-0 w-100"
3365
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3366
- "class": "col-lg-12 d-flex justify-content-center flex-column align-items-center p-0"
3367
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3368
- "class": "m-0 p-0",
3369
- style: {
3370
- fontWeight: sectionproperties.sharebtn_FontWeight,
3371
- color: sectionproperties.sharebtn_color,
3372
- fontSize: sectionproperties.sharebtn_fontSize + 'px'
3331
+ var variantchecker = function variantchecker() {
3332
+ var productarr = ProductInfoObj;
3333
+ if (Object.keys(productarr).length != 0) {
3334
+ var _productarr$data2;
3335
+ if ((productarr === null || productarr === void 0 || (_productarr$data2 = productarr.data) === null || _productarr$data2 === void 0 || (_productarr$data2 = _productarr$data2.productinfo) === null || _productarr$data2 === void 0 ? void 0 : _productarr$data2.hasvariants) == 1) {
3336
+ var selectedoptionsvalues = [];
3337
+ var variantsaccessible = [];
3338
+ productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
3339
+ productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
3340
+ if (ProductOptionValuesitem.isselected == 1) {
3341
+ selectedoptionsvalues.push(ProductOptionValuesitem);
3342
+ }
3343
+ });
3344
+ });
3345
+ if (selectedoptionsvalues.length == 0) {
3346
+ productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
3347
+ ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
3348
+ productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
3349
+ productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
3350
+ if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
3351
+ ProductOptionValuesitem.isenabled = 1;
3352
+ }
3353
+ });
3354
+ });
3355
+ });
3356
+ });
3357
+ } else {
3358
+ productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
3359
+ productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
3360
+ ProductOptionValuesitem.isenabled = 0;
3361
+ });
3362
+ });
3363
+ productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
3364
+ var variantcommonvalues = [];
3365
+ ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
3366
+ selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
3367
+ if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
3368
+ variantcommonvalues.push(varinatoptionitem);
3369
+ }
3370
+ });
3371
+ });
3372
+ var addvariantcount = [];
3373
+ var addvariant = false;
3374
+ selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
3375
+ addvariant = false;
3376
+ variantcommonvalues.forEach(function (varinatoptionitem, variantoptionindex) {
3377
+ if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
3378
+ if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
3379
+ addvariant = true;
3380
+ } else {
3381
+ addvariantcount.push(varinatoptionitem);
3382
+ }
3383
+ }
3384
+ });
3385
+ });
3386
+ if (addvariant && addvariantcount.length == 0) {
3387
+ variantsaccessible.push(ProductVariantItem);
3388
+ }
3389
+ });
3390
+ variantsaccessible.forEach(function (ProductVariantItem, ProductVariantIndex) {
3391
+ ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
3392
+ productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
3393
+ productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
3394
+ if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) {
3395
+ ProductOptionValuesitem.isenabled = 1;
3396
+ }
3397
+ });
3398
+ });
3399
+ });
3400
+ });
3401
+ }
3402
+ // queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
3403
+ setProductInfoObj(_objectSpread$2D({}, productarr));
3404
+ setisloaded(true);
3373
3405
  }
3374
- }, langdetect == 'en' ? sectionproperties.sharebtn_contentEn : sectionproperties.sharebtn_contentAr), /*#__PURE__*/React__default["default"].createElement("div", {
3375
- className: "Demo__container w-100 m-0 allcentered mt-3"
3376
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3377
- className: "Demo__some-network ml-2 mr-2"
3378
- }, /*#__PURE__*/React__default["default"].createElement(reactShare.FacebookShareButton, {
3406
+ }
3407
+ };
3408
+ var variantcompleting = function variantcompleting() {
3409
+ props.variant_id_return('');
3410
+ setvariantindexcompleted('');
3411
+ var tempaddtocardpayloadobj = _objectSpread$2D({}, addtocardpayloadobj);
3412
+ tempaddtocardpayloadobj.variantid = '';
3413
+ setaddtocardpayloadobj(_objectSpread$2D({}, tempaddtocardpayloadobj));
3414
+ var productarr = ProductInfoObj;
3415
+ var selectedoptionsvalues = [];
3416
+ productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
3417
+ productoptionsitem.optionvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
3418
+ if (ProductOptionValuesitem.isselected == 1) {
3419
+ selectedoptionsvalues.push(ProductOptionValuesitem);
3420
+ }
3421
+ });
3422
+ });
3423
+ productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
3424
+ var isvariant = false;
3425
+ var variantnotmatch = [];
3426
+ if (selectedoptionsvalues.length == ProductVariantItem.variantoptions.length) {
3427
+ isvariant = true;
3428
+ ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
3429
+ selectedoptionsvalues.forEach(function (ProductOptionValuesitem, ProductOptionValuesIndex) {
3430
+ if (ProductOptionValuesitem.optionid == varinatoptionitem.optionid) {
3431
+ if (ProductOptionValuesitem.valueid == varinatoptionitem.valueid) ; else {
3432
+ variantnotmatch.push('s');
3433
+ }
3434
+ }
3435
+ });
3436
+ });
3437
+ }
3438
+ if (variantnotmatch.length == 0 && isvariant == true) {
3439
+ var _ProductInfoObj$data;
3440
+ var variantobj = ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 || (_ProductInfoObj$data = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data === void 0 ? void 0 : _ProductInfoObj$data.variants[ProductVariantIndex];
3441
+ var variantid = '';
3442
+ if (variantobj == undefined) {
3443
+ setisoutofstock(false);
3444
+ NotificationManager.warning('', 'Variant Not Found');
3445
+ } else {
3446
+ variantid = variantobj.variantid;
3447
+ var tempaddtocardpayloadobj = _objectSpread$2D({}, addtocardpayloadobj);
3448
+ tempaddtocardpayloadobj.variantid = variantid;
3449
+ productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
3450
+ if (tempimageitem.galleryid == (variantobj === null || variantobj === void 0 ? void 0 : variantobj.variantgalleryid)) ;
3451
+ });
3452
+ if (variantobj.current_quantity <= 0) {
3453
+ setisoutofstock(true);
3454
+ } else {
3455
+ setisoutofstock(false);
3456
+ }
3457
+ props.variant_id_return(variantid);
3458
+ // setvariantsku(variantobj?.sku);
3459
+ // setcurrentshowingimageindex(variantimageindex);
3460
+ setaddtocardpayloadobj(_objectSpread$2D({}, tempaddtocardpayloadobj));
3461
+ setvariantindexcompleted(ProductVariantIndex);
3462
+ setvariantindex(ProductVariantIndex);
3463
+ }
3464
+ }
3465
+ });
3466
+ // queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
3467
+ setProductInfoObj(_objectSpread$2D({}, productarr));
3468
+ };
3469
+ var selectproductoptionvalue = function selectproductoptionvalue(optionindex, optionvaluesitem, optionvaluesindex, productarrtobepassed) {
3470
+ if (productarrtobepassed == undefined || productarrtobepassed == null) {
3471
+ var productarr = ProductInfoObj;
3472
+ } else {
3473
+ var productarr = productarrtobepassed;
3474
+ }
3475
+ var isselected = productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected;
3476
+ if (isselected == 1) {
3477
+ productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected = 0;
3478
+ } else {
3479
+ productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex].isselected = 1;
3480
+ }
3481
+ if (productarr.data.productinfo.productoptions[optionindex].optionname == 'color' || productarr.data.productinfo.productoptions[optionindex].optionname == 'Color' || productarr.data.productinfo.productoptions[optionindex].optionname == 'Colour') {
3482
+ var _productarr$data$prod;
3483
+ setvariantvalueidentifier((_productarr$data$prod = productarr.data.productinfo.productoptions[optionindex].optionvalues[optionvaluesindex]) === null || _productarr$data$prod === void 0 ? void 0 : _productarr$data$prod.value_identifier);
3484
+ var variantImageMatching = null;
3485
+ productarr.data.productinfo.variants.forEach(function (ProductVariantItem, ProductVariantIndex) {
3486
+ ProductVariantItem.variantoptions.forEach(function (varinatoptionitem, variantoptionindex) {
3487
+ if (optionvaluesitem.valueid == varinatoptionitem.valueid) {
3488
+ variantImageMatching = ProductVariantItem;
3489
+ }
3490
+ });
3491
+ });
3492
+ if (variantImageMatching != null) {
3493
+ productimagesarray === null || productimagesarray === void 0 || productimagesarray.forEach(function (tempimageitem, tempimageindex) {
3494
+ var _variantImageMatching;
3495
+ if (tempimageitem.galleryid == ((_variantImageMatching = variantImageMatching) === null || _variantImageMatching === void 0 ? void 0 : _variantImageMatching.variantgalleryid)) ;
3496
+ });
3497
+
3498
+ // setcurrentshowingimageindex(variantimageindex);
3499
+ }
3500
+ }
3501
+ productarr.data.productinfo.productoptions[optionindex].optionvalues.forEach(function (arrayItem, arrayindex) {
3502
+ if (optionvaluesindex != arrayindex) {
3503
+ arrayItem.isselected = 0;
3504
+ }
3505
+ });
3506
+ variantchecker();
3507
+ variantcompleting();
3508
+ setProductInfoObj(_objectSpread$2D({}, productarr));
3509
+ };
3510
+ // productimagesarray
3511
+ var formstyles = {
3512
+ input_label_name: glamor.css({
3513
+ color: sectionproperties.form_labelcolor,
3514
+ textTransform: sectionproperties.form_labeltexttransform,
3515
+ fontWeight: sectionproperties.form_labelfontweight,
3516
+ fontSize: sectionproperties.form_labelfontsize + 'px',
3517
+ marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
3518
+ }),
3519
+ form_control: glamor.css((_css = {
3520
+ background: 'transparent',
3521
+ color: sectionproperties.inputfieldcolor,
3522
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3523
+ position: 'relative',
3524
+ display: 'flex',
3525
+ alignItems: 'center'
3526
+ }, _defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_defineProperty__default["default"](_css, "display", 'block'), "width", '100%'), "padding", '0 10px'), "transition", '.3s'), "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), "borderRadius", sectionproperties.inputfieldborderradius + 'px'), "height", sectionproperties.inputfieldheight + 'px'), "background", sectionproperties.input_bgcolor), "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_defineProperty__default["default"](_css, ':focus', {
3527
+ borderColor: sectionproperties.inputfeildbordercoloronfocus
3528
+ }), ':focus .login_input_icon', {
3529
+ color: sectionproperties.inputfeildbordercoloronfocus
3530
+ }))),
3531
+ sizeguidebtn: glamor.css({
3532
+ color: sectionproperties.sizeguidebtncolor,
3533
+ fontSize: sectionproperties.sizeguidebtnfontsize + 'px',
3534
+ transition: '.3s',
3535
+ textDecoration: 'underline',
3536
+ ':hover': {
3537
+ color: sectionproperties.sizeguidebtncoloronhover,
3538
+ fontWeight: sectionproperties.sizeguidebtnfontweight
3539
+ }
3540
+ }),
3541
+ closemodalbtn: glamor.css({
3542
+ color: sectionproperties.sizeguidebtncolor,
3543
+ transition: '.3s',
3544
+ ':hover': {
3545
+ color: sectionproperties.sizeguidebtncoloronhover
3546
+ }
3547
+ })
3548
+ };
3549
+ var issingleoptionoutofstock = function issingleoptionoutofstock(valueitem) {
3550
+ var _ProductInfoObj$data2;
3551
+ var current_quantity = 0;
3552
+ var isoutofstock = false;
3553
+ if ((ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data2 = ProductInfoObj.data) === null || _ProductInfoObj$data2 === void 0 || (_ProductInfoObj$data2 = _ProductInfoObj$data2.productinfo) === null || _ProductInfoObj$data2 === void 0 || (_ProductInfoObj$data2 = _ProductInfoObj$data2.productoptions) === null || _ProductInfoObj$data2 === void 0 ? void 0 : _ProductInfoObj$data2.length) == 1) {
3554
+ var _ProductInfoObj$data3;
3555
+ ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data3 = ProductInfoObj.data) === null || _ProductInfoObj$data3 === void 0 || (_ProductInfoObj$data3 = _ProductInfoObj$data3.productinfo) === null || _ProductInfoObj$data3 === void 0 || (_ProductInfoObj$data3 = _ProductInfoObj$data3.variants) === null || _ProductInfoObj$data3 === void 0 || _ProductInfoObj$data3.forEach(function (varitem) {
3556
+ var _varitem$variantoptio;
3557
+ varitem === null || varitem === void 0 || (_varitem$variantoptio = varitem.variantoptions) === null || _varitem$variantoptio === void 0 || _varitem$variantoptio.forEach(function (varoptionitem) {
3558
+ if (varoptionitem.valueid == valueitem.valueid) {
3559
+ current_quantity = varitem.current_quantity;
3560
+ if (varitem.current_quantity <= 0) {
3561
+ var _ProductInfoObj$data4;
3562
+ if ((ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data4 = ProductInfoObj.data) === null || _ProductInfoObj$data4 === void 0 || (_ProductInfoObj$data4 = _ProductInfoObj$data4.productinfo) === null || _ProductInfoObj$data4 === void 0 ? void 0 : _ProductInfoObj$data4.quantavailtype) == 'limit') {
3563
+ isoutofstock = true;
3564
+ }
3565
+ }
3566
+ }
3567
+ });
3568
+ });
3569
+ }
3570
+ return {
3571
+ isoutofstock: isoutofstock,
3572
+ current_quantity: current_quantity
3573
+ };
3574
+ };
3575
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data5 = ProductInfoObj.data) === null || _ProductInfoObj$data5 === void 0 || (_ProductInfoObj$data5 = _ProductInfoObj$data5.productinfo) === null || _ProductInfoObj$data5 === void 0 ? void 0 : _ProductInfoObj$data5.hasvariants) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
3576
+ className: props.srcprops == 'reservation' ? 'row mx-0 mt-3 w-100 d-flex align-items-start' : 'row m-0 w-100 d-flex align-items-start'
3577
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3578
+ "class": "row m-0 w-100"
3579
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3580
+ "class": sectionproperties.showsizeguidebtn == 'Show' ? 'col-9 p-0' : 'col-lg-12 p-0'
3581
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3582
+ "class": "row m-0 w-100"
3583
+ }, sectionproperties.variantstyle == 'Slider' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data6 = ProductInfoObj.data) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productinfo) === null || _ProductInfoObj$data6 === void 0 || (_ProductInfoObj$data6 = _ProductInfoObj$data6.productoptions) === null || _ProductInfoObj$data6 === void 0 ? void 0 : _ProductInfoObj$data6.map(function (item, index) {
3584
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3585
+ className: 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
3586
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3587
+ className: "row m-0 w-100 d-flex align-items-start"
3588
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3589
+ className: "col-lg-12 col-md-12 p-0 d-flex"
3590
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3591
+ className: ' m-0 p-0 wordbreak',
3592
+ style: {
3593
+ color: sectionproperties.varianttitle_color,
3594
+ fontWeight: sectionproperties.varianttitle_fontweight,
3595
+ textTransform: sectionproperties.varianttitle_texttransform,
3596
+ fontSize: sectionproperties.varianttitle_fontSize + 'px'
3597
+ }
3598
+ }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":", ' ', item.optionname == 'color' && /*#__PURE__*/React__default["default"].createElement("span", {
3599
+ style: {
3600
+ color: '#62554a'
3601
+ }
3602
+ }, variantvalueidentifier))), /*#__PURE__*/React__default["default"].createElement("div", {
3603
+ className: "col-lg-12 col-md-12 d-flex pb-md-3 justify-content-start align-items-start scrollhorixontalcontainer pt-1",
3604
+ style: {
3605
+ paddingTop: sectionproperties.showRemovebutton == 'Show' ? '1rem' : 0
3606
+ }
3607
+ }, item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
3608
+ var isoptionvalueselected = 0;
3609
+ if (optionvaluesitem.isselected == 1) {
3610
+ isoptionvalueselected = 1;
3611
+ } else {
3612
+ isoptionvalueselected = 0;
3613
+ }
3614
+ var isoptionvaluedenabled = 0;
3615
+ if (optionvaluesitem.isenabled == 1) {
3616
+ isoptionvaluedenabled = 1;
3617
+ } else {
3618
+ isoptionvaluedenabled = 0;
3619
+ }
3620
+ if (item.optionname == 'color' || item.optionname == 'Color') {
3621
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3622
+ className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? productinfostyles.color_container + ' mr-2 variabttcontainer showcrossiconcolor ' + "".concat(productinfostyles.color_container_active) : productinfostyles.color_container + ' mr-2 variabttcontainer ' + "".concat(productinfostyles.color_container_active)
3623
+ // `${isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''}`
3624
+ ,
3625
+ onClick: function onClick() {
3626
+ // here
3627
+ if (optionvaluesitem.isenabled == 1) {
3628
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
3629
+ } else {
3630
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
3631
+ }
3632
+ },
3633
+ style: {
3634
+ background: optionvaluesitem.valuename,
3635
+ border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : '1px solid #ccc'
3636
+
3637
+ // borderWidth: isoptionvalueselected == 1 ? '2px' : 0,
3638
+ // opacity: isoptionvaluedenabled == 1 ? 1 : 0.2,
3639
+ // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
3640
+ }
3641
+ }));
3642
+ } else if (item.optionname == 'size' || item.optionname == 'Size') {
3643
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3644
+ className: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? "".concat(productinfostyles.variant_container, " ").concat(productinfostyles.size_variant_container) + ' mr-2 variabttcontainer allcentered showcrossicon ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : '') : "".concat(productinfostyles.variant_container, " ").concat(productinfostyles.size_variant_container) + ' mr-2 variabttcontainer allcentered ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
3645
+ onClick: function onClick() {
3646
+ if (issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show') ; else {
3647
+ if (optionvaluesitem.isenabled == 1) {
3648
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
3649
+ } else {
3650
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
3651
+ }
3652
+ }
3653
+ },
3654
+ style: {
3655
+ // activeproductcolor
3656
+ // cursor:
3657
+ // issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true &&
3658
+ // sectionproperties.showoutofstockwithoutselection == 'Show'
3659
+ // ? 'not-allowed'
3660
+ // : isoptionvaluedenabled == 1
3661
+ // ? 'pointer'
3662
+ // : 'not-allowed',
3663
+ cursor: issingleoptionoutofstock(optionvaluesitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show' ? 'not-allowed' : 'pointer',
3664
+ backgroundColor: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null ? sectionproperties.variantcontainer_bgcolor : isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
3665
+ minWidth: sectionproperties.variantcontainer_minwidth + 'px',
3666
+ height: sectionproperties.variantcontainer_height + 'px',
3667
+ borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
3668
+ position: 'relative',
3669
+ border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : isoptionvaluedenabled == 1 ? '1px solid ' + sectionproperties.variantcontainerbordercolor : '1px solid ' + ' grey '
3670
+ }
3671
+ }, isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
3672
+ "class": "m-0 p-0 bg-danger bgdanger-hover",
3673
+ style: {
3674
+ position: 'absolute',
3675
+ top: '-15px',
3676
+ right: '-5px',
3677
+ width: '3vh',
3678
+ height: '3vh',
3679
+ borderRadius: 100
3680
+ }
3681
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
3682
+ "class": "h-100 allcentered"
3683
+ }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
3684
+ className: 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center',
3685
+ style: {
3686
+ color: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null && isoptionvalueselected == 1 ? sectionproperties.activeproductcolor : sectionproperties.variantcontainer_color,
3687
+ fontSize: sectionproperties.variantcontainer_fontSize + 'px',
3688
+ fontWeight: 500
3689
+ }
3690
+ }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
3691
+ } else {
3692
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3693
+ className: productinfostyles.variant_container + ' mr-2 variabttcontainer allcentered pl-2 pr-2 ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
3694
+ onClick: function onClick() {
3695
+ if (optionvaluesitem.isenabled == 1) {
3696
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
3697
+ } else {
3698
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
3699
+ }
3700
+ },
3701
+ style: {
3702
+ backgroundColor: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null ? sectionproperties.variantcontainer_bgcolor : isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
3703
+ width: 'auto',
3704
+ height: sectionproperties.variantcontainer_height + 'px',
3705
+ borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
3706
+ position: 'relative',
3707
+ // border:
3708
+ // isoptionvalueselected == 1
3709
+ // ? '2px solid green'
3710
+ // : isoptionvaluedenabled == 1
3711
+ // ? '1px solid ' + sectionproperties.variantcontainerbordercolor
3712
+ // : '1px solid ' + ' grey ',
3713
+ border: isoptionvalueselected == 1 ? '2px solid ' + sectionproperties.activeproductcolor : '1px solid #ccc'
3714
+ }
3715
+ }, isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
3716
+ "class": "m-0 p-0 bg-danger bgdanger-hover",
3717
+ style: {
3718
+ position: 'absolute',
3719
+ top: '-15px',
3720
+ right: '-5px',
3721
+ width: '3vh',
3722
+ height: '3vh',
3723
+ borderRadius: 100
3724
+ }
3725
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
3726
+ "class": "h-100 allcentered"
3727
+ }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, null))), /*#__PURE__*/React__default["default"].createElement("p", {
3728
+ className: 'm-0 p-0 allcentered',
3729
+ style: {
3730
+ fontWeight: 500,
3731
+ // color: sectionproperties.variantcontainer_color,
3732
+ fontSize: sectionproperties.variantcontainer_fontSize + 'px',
3733
+ color: sectionproperties.variantcontainerbordercolor != undefined && sectionproperties.variantcontainerbordercolor != null && isoptionvalueselected == 1 ? sectionproperties.activeproductcolor : sectionproperties.variantcontainer_color
3734
+ }
3735
+ }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
3736
+ }
3737
+ }))));
3738
+ })))), sectionproperties.showsizeguidebtn == 'Show' && sizeguideimage.length != 0 && sectionproperties.sizeguideposition == 'Besides Variants' && /*#__PURE__*/React__default["default"].createElement("div", {
3739
+ "class": "col-3 text-end"
3740
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3741
+ "class": formstyles.sizeguidebtn + ' m-0 p-0 cursor-pointer mb-auto ',
3742
+ onClick: function onClick() {
3743
+ setopensizeguidemodal(true);
3744
+ }
3745
+ }, langdetect == 'en' ? sectionproperties.sizeguidecontentenglish : sectionproperties.sizeguidecontentarabic))), langdetect == 'en' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data7 = ProductInfoObj.data) === null || _ProductInfoObj$data7 === void 0 || (_ProductInfoObj$data7 = _ProductInfoObj$data7.productinfo) === null || _ProductInfoObj$data7 === void 0 || (_ProductInfoObj$data7 = _ProductInfoObj$data7.variants[variantindexcompleted]) === null || _ProductInfoObj$data7 === void 0 ? void 0 : _ProductInfoObj$data7.variantdescription_en) && /*#__PURE__*/React__default["default"].createElement("div", {
3746
+ "class": "my-3 col-lg-12 p-0"
3747
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3748
+ className: 'm-0 p-0 wordbreak',
3749
+ style: {
3750
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3751
+ color: '#000000'
3752
+ },
3753
+ dangerouslySetInnerHTML: {
3754
+ __html: langdetect == 'en' ? ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data8 = ProductInfoObj.data) === null || _ProductInfoObj$data8 === void 0 || (_ProductInfoObj$data8 = _ProductInfoObj$data8.productinfo) === null || _ProductInfoObj$data8 === void 0 || (_ProductInfoObj$data8 = _ProductInfoObj$data8.variants[variantindexcompleted]) === null || _ProductInfoObj$data8 === void 0 ? void 0 : _ProductInfoObj$data8.variantdescription_en : ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data9 = ProductInfoObj.data) === null || _ProductInfoObj$data9 === void 0 || (_ProductInfoObj$data9 = _ProductInfoObj$data9.productinfo) === null || _ProductInfoObj$data9 === void 0 || (_ProductInfoObj$data9 = _ProductInfoObj$data9.variants[variantindexcompleted]) === null || _ProductInfoObj$data9 === void 0 ? void 0 : _ProductInfoObj$data9.variantdescription_ar
3755
+ }
3756
+ })), langdetect == 'ar' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data0 = ProductInfoObj.data) === null || _ProductInfoObj$data0 === void 0 || (_ProductInfoObj$data0 = _ProductInfoObj$data0.productinfo) === null || _ProductInfoObj$data0 === void 0 || (_ProductInfoObj$data0 = _ProductInfoObj$data0.variants[variantindexcompleted]) === null || _ProductInfoObj$data0 === void 0 ? void 0 : _ProductInfoObj$data0.variantdescription_ar) && /*#__PURE__*/React__default["default"].createElement("div", {
3757
+ "class": "my-3 col-lg-12 p-0"
3758
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3759
+ className: 'm-0 p-0 wordbreak',
3760
+ style: {
3761
+ textAlign: langdetect == 'en' ? 'left' : 'right',
3762
+ color: '#000000'
3763
+ },
3764
+ dangerouslySetInnerHTML: {
3765
+ __html: langdetect == 'en' ? ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data1 = ProductInfoObj.data) === null || _ProductInfoObj$data1 === void 0 || (_ProductInfoObj$data1 = _ProductInfoObj$data1.productinfo) === null || _ProductInfoObj$data1 === void 0 || (_ProductInfoObj$data1 = _ProductInfoObj$data1.variants[variantindexcompleted]) === null || _ProductInfoObj$data1 === void 0 ? void 0 : _ProductInfoObj$data1.variantdescription_en : ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data10 = ProductInfoObj.data) === null || _ProductInfoObj$data10 === void 0 || (_ProductInfoObj$data10 = _ProductInfoObj$data10.productinfo) === null || _ProductInfoObj$data10 === void 0 || (_ProductInfoObj$data10 = _ProductInfoObj$data10.variants[variantindexcompleted]) === null || _ProductInfoObj$data10 === void 0 ? void 0 : _ProductInfoObj$data10.variantdescription_ar
3766
+ }
3767
+ })), sectionproperties.variantstyle == 'Vertical' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data11 = ProductInfoObj.data) === null || _ProductInfoObj$data11 === void 0 || (_ProductInfoObj$data11 = _ProductInfoObj$data11.productinfo) === null || _ProductInfoObj$data11 === void 0 || (_ProductInfoObj$data11 = _ProductInfoObj$data11.productoptions) === null || _ProductInfoObj$data11 === void 0 ? void 0 : _ProductInfoObj$data11.map(function (item, index) {
3768
+ return /*#__PURE__*/React__default["default"].createElement("ul", {
3769
+ "class": "thwvsf-wrapper-ul"
3770
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3771
+ className: "row m-0 w-100 d-flex align-items-start mb-2"
3772
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3773
+ className: "col-lg-12 col-md-12 p-0 d-flex"
3774
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3775
+ className: ' m-0 p-0 wordbreak',
3776
+ style: {
3777
+ color: sectionproperties.varianttitle_color,
3778
+ fontWeight: sectionproperties.varianttitle_fontweight,
3779
+ textTransform: sectionproperties.varianttitle_texttransform,
3780
+ fontSize: sectionproperties.varianttitle_fontSize + 'px'
3781
+ }
3782
+ }, sectionproperties.showselect == 'Show' && /*#__PURE__*/React__default["default"].createElement("span", null, lang.select), " ", '', " ", langdetect == 'en' ? item.optionname : item.optionname_ar, ":"))), item.optionvalues.map(function (optionvaluesitem, optionvaluesindex) {
3783
+ var isoptionvalueselected = 0;
3784
+ if (optionvaluesitem.isselected == 1) {
3785
+ isoptionvalueselected = 1;
3786
+ } else {
3787
+ isoptionvalueselected = 0;
3788
+ }
3789
+ var isoptionvaluedenabled = 0;
3790
+ if (optionvaluesitem.isenabled == 1) {
3791
+ isoptionvaluedenabled = 1;
3792
+ } else {
3793
+ isoptionvaluedenabled = 0;
3794
+ }
3795
+ if (item.optionname == 'color' || item.optionname == 'Color') {
3796
+ return /*#__PURE__*/React__default["default"].createElement("li", {
3797
+ style: {
3798
+ width: 'auto'
3799
+ }
3800
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3801
+ className: productinfostyles.color_container + ' mx-1 mb-2 variabttcontainer ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.color_container_active : ''),
3802
+ onClick: function onClick() {
3803
+ if (optionvaluesitem.isenabled == 1) {
3804
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
3805
+ } else {
3806
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
3807
+ }
3808
+ },
3809
+ style: {
3810
+ background: optionvaluesitem.valuename,
3811
+ opacity: isoptionvaluedenabled == 1 ? 1 : 0.2
3812
+ // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
3813
+ }
3814
+ }));
3815
+ } else {
3816
+ // else if (item.optionname == 'size' || item.optionname == 'Size') {
3817
+ return /*#__PURE__*/React__default["default"].createElement("li", {
3818
+ style: {
3819
+ width: 'auto'
3820
+ }
3821
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3822
+ className: "".concat(productinfo_cssstyles.variant_container) + ' mx-1 mb-2 variabttcontainer allcentered px-2 ' + "".concat(isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''),
3823
+ onClick: function onClick() {
3824
+ if (optionvaluesitem.isenabled == 1) {
3825
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
3826
+ } else {
3827
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
3828
+ }
3829
+ },
3830
+ style: {
3831
+ // cursor: isoptionvaluedenabled == 1 ? 'pointer' : 'not-allowed',
3832
+ backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
3833
+ minWidth: sectionproperties.variantcontainer_minwidth + 'px',
3834
+ height: sectionproperties.variantcontainer_height + 'px',
3835
+ borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
3836
+ position: 'relative',
3837
+ border: isoptionvalueselected == 1 ? '1px solid green' : isoptionvaluedenabled == 1 ? '1px solid ' + sectionproperties.variantcontainerbordercolor : '1px solid ' + ' grey '
3838
+ }
3839
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3840
+ className: 'wordbreak m-0 p-0 d-flex align-items-center justify-content-center',
3841
+ style: {}
3842
+ }, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar)));
3843
+ }
3844
+ // else {
3845
+ // return (
3846
+ // <li
3847
+ // style={{
3848
+ // width: 'auto',
3849
+ // }}
3850
+ // >
3851
+ // <div
3852
+ // className={
3853
+ // productinfostyles.variant_container +
3854
+ // ' mx-2 mb-2 variabttcontainer allcentered pl-2 pr-2 ' +
3855
+ // `${isoptionvalueselected == 1 ? productinfostyles.variant_container_active : ''}`
3856
+ // }
3857
+ // onClick={() => {
3858
+ // if (optionvaluesitem.isenabled == 1) {
3859
+ // selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
3860
+ // } else {
3861
+ // clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
3862
+ // }
3863
+ // }}
3864
+ // style={{
3865
+ // backgroundColor: isoptionvalueselected == 1 ? 'green' : isoptionvaluedenabled == 1 ? sectionproperties.variantcontainer_bgcolor : 'grey',
3866
+ // width: 'auto',
3867
+ // height: sectionproperties.variantcontainer_height + 'px',
3868
+ // borderRadius: sectionproperties.variantcontainer_borderBottomLeftRadius + 'px',
3869
+ // position: 'relative',
3870
+ // }}
3871
+ // >
3872
+ // {isoptionvalueselected == 1 && sectionproperties.showRemovebutton == 'Show' && (
3873
+ // <p
3874
+ // class="m-0 p-0 bg-danger bgdanger-hover"
3875
+ // style={{
3876
+ // position: 'absolute',
3877
+ // top: '-15px',
3878
+ // right: '-5px',
3879
+ // width: '3vh',
3880
+ // height: '3vh',
3881
+ // borderRadius: 100,
3882
+ // }}
3883
+ // >
3884
+ // <i class="h-100 allcentered">
3885
+ // <IoMdClose />
3886
+ // </i>
3887
+ // </p>
3888
+ // )}
3889
+ // <p
3890
+ // className={'m-0 p-0 allcentered'}
3891
+ // style={{
3892
+ // color: sectionproperties.variantcontainer_color,
3893
+ // fontSize: sectionproperties.variantcontainer_fontSize + 'px',
3894
+ // }}
3895
+ // >
3896
+ // {langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar}
3897
+ // </p>
3898
+ // </div>
3899
+ // </li>
3900
+ // );
3901
+ // }
3902
+ }));
3903
+ })), sectionproperties.variantstyle == 'Select Box' && (ProductInfoObj === null || ProductInfoObj === void 0 || (_ProductInfoObj$data12 = ProductInfoObj.data) === null || _ProductInfoObj$data12 === void 0 || (_ProductInfoObj$data12 = _ProductInfoObj$data12.productinfo) === null || _ProductInfoObj$data12 === void 0 || (_ProductInfoObj$data12 = _ProductInfoObj$data12.productoptions) === null || _ProductInfoObj$data12 === void 0 ? void 0 : _ProductInfoObj$data12.map(function (item, index) {
3904
+ var orgselectoptions = [];
3905
+ var selecteditemid = null;
3906
+ var placeholdervalue = '';
3907
+ placeholdervalue = 'Choose' + ' ' + (langdetect == 'en' ? item.optionname : item.optionname_ar);
3908
+ if (item.optionvalues != undefined && Array.isArray(item.optionvalues)) {
3909
+ orgselectoptions = item.optionvalues;
3910
+ // optionvaluesitem.isselected
3911
+ }
3912
+ orgselectoptions.forEach(function (getselcitem, getselindex) {
3913
+ // if (getselcitem.isselected == 1 && issingleoptionoutofstock(getselcitem)['isoutofstock'] == true && sectionproperties.showoutofstockwithoutselection == 'Show') {
3914
+ // selecteditemid = getselcitem.valueid + langdetect == 'en' ? '(Unavailable)' : 'غير متاح';
3915
+ // } else if (getselcitem.isselected == 1 && sectionproperties.showoutofstockwithoutselection == 'Hide') {
3916
+ // selecteditemid = getselcitem.valueid;
3917
+ // } else {
3918
+ // selecteditemid = getselcitem.valueid;
3919
+ // }
3920
+ if (getselcitem.isselected == 1) {
3921
+ selecteditemid = getselcitem.valueid;
3922
+ }
3923
+ });
3924
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3925
+ "class": sectionproperties.numberofcolsperrow == '2' ? 'col-lg-2 col-md-3 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '3' ? ' col-lg-3 col-md-3 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '4' ? 'col-lg-4 col-md-4 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '6' ? 'col-lg-6 col-md-6 col-sm-12 mb-3 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0'
3926
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3927
+ className: ' d-flex align-items-start mb-2 ',
3928
+ style: {
3929
+ color: sectionproperties.varianttitle_color,
3930
+ fontWeight: sectionproperties.varianttitle_fontweight,
3931
+ textTransform: sectionproperties.varianttitle_texttransform,
3932
+ fontSize: sectionproperties.varianttitle_fontSize + 'px'
3933
+ }
3934
+ }, langdetect == 'en' ? item.optionname : item.optionname_ar), /*#__PURE__*/React__default["default"].createElement("div", {
3935
+ style: {
3936
+ width: '100%'
3937
+ },
3938
+ className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control) + ' variantselectbox '
3939
+ }, /*#__PURE__*/React__default["default"].createElement(Select$3, {
3940
+ options: orgselectoptions,
3941
+ getOptionLabel: function getOptionLabel(option) {
3942
+ var crname = '';
3943
+ if (langdetect == 'en') {
3944
+ crname = option.valuename;
3945
+ } else if (langdetect == 'ar') {
3946
+ crname = option.valuename_ar;
3947
+ }
3948
+ return crname;
3949
+ },
3950
+ getOptionValue: function getOptionValue(option) {
3951
+ return option.valueid;
3952
+ },
3953
+ value: orgselectoptions.filter(function (option) {
3954
+ return option.valueid == selecteditemid;
3955
+ }),
3956
+ onChange: function onChange(optionvaluesitem) {
3957
+ var _orgselectoptions;
3958
+ var optionvaluesindex = null;
3959
+ (_orgselectoptions = orgselectoptions) === null || _orgselectoptions === void 0 || _orgselectoptions.forEach(function (tempitm, tempind) {
3960
+ if (tempitm.valueid == optionvaluesitem.valueid) {
3961
+ optionvaluesindex = tempind;
3962
+ }
3963
+ });
3964
+ if (optionvaluesindex != null) {
3965
+ if (optionvaluesitem.isenabled == 1) {
3966
+ selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
3967
+ } else {
3968
+ clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
3969
+ }
3970
+ }
3971
+ },
3972
+ styles: defaultstylesnone,
3973
+ placeholder: placeholdervalue,
3974
+ isSearchable: true
3975
+ })));
3976
+ }))), sizeguideimage.length != 0 && /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
3977
+ show: opensizeguidemodal,
3978
+ onHide: function onHide() {
3979
+ setopensizeguidemodal(false);
3980
+ },
3981
+ centered: true,
3982
+ size: 'lg'
3983
+ }, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
3984
+ className: "allcentered cursor-pointer",
3985
+ onClick: function onClick() {
3986
+ setopensizeguidemodal(false);
3987
+ },
3988
+ style: {
3989
+ position: 'absolute',
3990
+ top: 10,
3991
+ width: 35,
3992
+ height: 35,
3993
+ right: 10
3994
+ }
3995
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
3996
+ "class": ' h-100 allcentered text-black '
3997
+ }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
3998
+ size: 25,
3999
+ "class": formstyles.closemodalbtn
4000
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
4001
+ "class": ' w-100 h-100 px-4 py-5 ',
4002
+ style: {}
4003
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
4004
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
4005
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
4006
+ path: (_sizeguideimage$ = sizeguideimage[0]) === null || _sizeguideimage$ === void 0 ? void 0 : _sizeguideimage$.original,
4007
+ style: {
4008
+ width: '100%',
4009
+ height: '100%',
4010
+ objectFit: 'contain'
4011
+ },
4012
+ loading: "lazy"
4013
+ }))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
4014
+ };
4015
+
4016
+ function ownKeys$2C(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4017
+ function _objectSpread$2C(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2C(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2C(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4018
+ var ProductQuantityConditions_W_Variants = function ProductQuantityConditions_W_Variants(props) {
4019
+ var _fetchProductInfoQuer, _fetchProductInfoQuer8, _fetchProductInfoQuer9;
4020
+ props.actions.lang;
4021
+ var langdetect = props.actions.langdetect;
4022
+ var authdetailsContext = props.actions.authdetailsContext;
4023
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
4024
+ props.actions.GeneralAPIMutationContext;
4025
+ var NotificationManager = props.actions.NotificationManager;
4026
+ props.actions.sectionproperties;
4027
+ props.actions.setaddtocardpayloadobj;
4028
+ props.actions;
4029
+ fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer === void 0 || (_fetchProductInfoQuer = _fetchProductInfoQuer.productinfo) === null || _fetchProductInfoQuer === void 0 ? void 0 : _fetchProductInfoQuer.productid;
4030
+ // const templatepropcontext = props.actions.templatepropcontext;
4031
+ var AddtoCartContext = props.actions.AddtoCartContext;
4032
+ var productinfo_cssstyles = props.actions.productinfo_cssstyles;
4033
+ var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
4034
+ var _useState = React.useState([]),
4035
+ _useState2 = _slicedToArray__default["default"](_useState, 2);
4036
+ _useState2[0];
4037
+ _useState2[1];
4038
+ var _useState3 = React.useState(false),
4039
+ _useState4 = _slicedToArray__default["default"](_useState3, 2);
4040
+ _useState4[0];
4041
+ _useState4[1];
4042
+ var _useState5 = React.useState(false),
4043
+ _useState6 = _slicedToArray__default["default"](_useState5, 2);
4044
+ _useState6[0];
4045
+ _useState6[1];
4046
+ var _useState7 = React.useState('all'),
4047
+ _useState8 = _slicedToArray__default["default"](_useState7, 2);
4048
+ _useState8[0];
4049
+ _useState8[1];
4050
+ var _useState9 = React.useState([]),
4051
+ _useState0 = _slicedToArray__default["default"](_useState9, 2);
4052
+ _useState0[0];
4053
+ _useState0[1];
4054
+ var _useState1 = React.useState([]),
4055
+ _useState10 = _slicedToArray__default["default"](_useState1, 2);
4056
+ _useState10[0];
4057
+ _useState10[1];
4058
+ var _useState11 = React.useState([]),
4059
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
4060
+ quantityconditions = _useState12[0],
4061
+ setquantityconditions = _useState12[1];
4062
+ var choosen_variant_ids_Ref = React.useRef([]);
4063
+ var _useState13 = React.useState(null),
4064
+ _useState14 = _slicedToArray__default["default"](_useState13, 2),
4065
+ expandedItem = _useState14[0],
4066
+ setExpandedItem = _useState14[1];
4067
+ var handleChange = function handleChange(uuid) {
4068
+ setExpandedItem(function (prev) {
4069
+ return prev === uuid ? null : uuid;
4070
+ }); // toggle
4071
+ };
4072
+ function sleep(ms) {
4073
+ return new Promise(function (resolve) {
4074
+ return setTimeout(resolve, ms);
4075
+ });
4076
+ }
4077
+ var handleVariantId = function handleVariantId(index, variantid) {
4078
+ var temp = _toConsumableArray__default["default"](choosen_variant_ids_Ref.current);
4079
+ if (variantid && variantid.trim() !== '') {
4080
+ temp[index] = variantid;
4081
+ } else {
4082
+ temp[index] = null;
4083
+ }
4084
+ choosen_variant_ids_Ref.current = temp;
4085
+ console.log('Current IDs:', choosen_variant_ids_Ref.current);
4086
+ };
4087
+ React.useEffect(function () {
4088
+ if (fetchProductInfoQueryContext.isSuccess) {
4089
+ var _fetchProductInfoQuer2;
4090
+ setquantityconditions((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer2 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.data) === null || _fetchProductInfoQuer2 === void 0 || (_fetchProductInfoQuer2 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : _fetchProductInfoQuer2.productquantityoptions) || []);
4091
+ }
4092
+ }, [fetchProductInfoQueryContext.isSuccess]);
4093
+ var addtocartfunc = function addtocartfunc(forcetocheckout, variantid, quantity) {
4094
+ var _fetchProductInfoQuer3;
4095
+ var addtocardpayloadobj = {
4096
+ functype: 'add',
4097
+ item_type: 'product',
4098
+ productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer3 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.data) === null || _fetchProductInfoQuer3 === void 0 || (_fetchProductInfoQuer3 = _fetchProductInfoQuer3.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productid,
4099
+ variantid: variantid,
4100
+ quantity: quantity,
4101
+ date: '',
4102
+ time: '',
4103
+ from: '',
4104
+ to: '',
4105
+ extrafields: []
4106
+ };
4107
+ var runfunc = false;
4108
+ var forcetocheckoutvalue = forcetocheckout;
4109
+ // alert(addtocardpayloadobj.quantity + 'sad');
4110
+ if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
4111
+ var _fetchProductInfoQuer4;
4112
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer4 === void 0 || (_fetchProductInfoQuer4 = _fetchProductInfoQuer4.productinfo) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : _fetchProductInfoQuer4.hasvariants) == 1) {
4113
+ if (variantid.length != 0) {
4114
+ runfunc = true;
4115
+ } else {
4116
+ var _authdetailsContext$i;
4117
+ // here
4118
+ setvariantnotchosendisclaimer('This field is required');
4119
+ NotificationManager.warning('', (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.contactinfo.instid) == '674f0617c7811' ? 'Please Choose Size & Color' : 'Please Choose Product Options');
4120
+ }
4121
+ } else {
4122
+ runfunc = true;
4123
+ }
4124
+ } else {
4125
+ NotificationManager.warning('', 'Please Choose Quantity');
4126
+ }
4127
+ if (runfunc == true) {
4128
+ var _fetchProductInfoQuer5, _fetchProductInfoQuer6;
4129
+ var tempaddtocardpayloadobj = _objectSpread$2C({}, addtocardpayloadobj);
4130
+ tempaddtocardpayloadobj.isproductforcedtocheckout = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer5 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.data) === null || _fetchProductInfoQuer5 === void 0 || (_fetchProductInfoQuer5 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : _fetchProductInfoQuer5.isproductforcedtocheckout;
4131
+ tempaddtocardpayloadobj.vendorid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer6 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.data) === null || _fetchProductInfoQuer6 === void 0 || (_fetchProductInfoQuer6 = _fetchProductInfoQuer6.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.vendorproviderid;
4132
+ if (forcetocheckoutvalue != undefined) {
4133
+ tempaddtocardpayloadobj.forcetocheckoutvalue = forcetocheckoutvalue;
4134
+ }
4135
+
4136
+ // var finalprice = 0;
4137
+ // if (fetchProductInfoQueryContext?.data?.data?.productinfo?.hassale == 1) {
4138
+ // finalprice = getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted);
4139
+ // } else {
4140
+ // finalprice = getprice_discountpriceprops('defaultprice', 0, variantindexcompleted);
4141
+ // }
4142
+ // Pixel_EventsContext('AddToCart', {
4143
+ // content_ids: [fetchProductInfoQueryContext?.data?.data?.productinfo?.productid],
4144
+ // content_name: fetchProductInfoQueryContext?.data?.data?.productinfo?.name_en + ' - ' + fetchProductInfoQueryContext?.data?.data?.productinfo?.name_ar,
4145
+ // content_sku: fetchProductInfoQueryContext?.data?.data?.productinfo?.sku,
4146
+ // content_type: 'product',
4147
+ // currency: fetchProductInfoQueryContext?.data?.data?.currencyname_en,
4148
+ // value: finalprice,
4149
+ // quantity: addtocardpayloadobj.quantity,
4150
+ // });
4151
+ AddtoCartContext(tempaddtocardpayloadobj);
4152
+ }
4153
+ };
4154
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4155
+ className: 'row w-100 ml-0 mr-0'
4156
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4157
+ "class": "col-lg-12 p-0"
4158
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4159
+ className: 'row w-100 ml-0 mr-0'
4160
+ }, quantityconditions === null || quantityconditions === void 0 ? void 0 : quantityconditions.map(function (item, index) {
4161
+ var _fetchProductInfoQuer7;
4162
+ var price = 0;
4163
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer7 === void 0 || (_fetchProductInfoQuer7 = _fetchProductInfoQuer7.productinfo) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.hassale) == 1) {
4164
+ price = getprice_discountpriceprops('defaultsaleprice', 0, undefined);
4165
+ } else {
4166
+ price = getprice_discountpriceprops('defaultprice', 0, undefined);
4167
+ }
4168
+ var pricewithtotal = price * item.toq;
4169
+ var discountedPrice = pricewithtotal * (item.value / 100);
4170
+ var priceafterdiscount = pricewithtotal - discountedPrice;
4171
+ priceafterdiscount = priceafterdiscount.toFixed(2);
4172
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4173
+ "class": "col-lg-12 p-3 mb-3",
4174
+ style: {
4175
+ border: '3px solid #5f848e',
4176
+ borderRadius: 20
4177
+ }
4178
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.Accordion, {
4179
+ allowMultipleExpanded: false,
4180
+ allowZeroExpanded: true,
4181
+ preExpanded: expandedItem ? [expandedItem] : []
4182
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItem, {
4183
+ uuid: 0
4184
+ }, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemHeading, null, /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemButton, {
4185
+ onClick: function onClick() {
4186
+ return handleChange(index);
4187
+ }
4188
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
4189
+ // class="mb-3"
4190
+ style: {
4191
+ color: '#000',
4192
+ fontSize: 25,
4193
+ fontWeight: 700,
4194
+ textAlign: langdetect == 'en' ? 'left' : 'right'
4195
+ }
4196
+ }, "\u0627\u0634\u062A\u0631\u064A ", item.toq, " \u0642\u0637\u0639\u0629 \u0628\u0633\u0639\u0631", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
4197
+ style: {
4198
+ color: '#5f848e'
4199
+ }
4200
+ }, priceafterdiscount, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), ' ', "\u0628\u062F\u0644\u0627 \u0645\u0646", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
4201
+ style: {
4202
+ color: '#5f848e'
4203
+ }
4204
+ }, pricewithtotal, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar)))), /*#__PURE__*/React__default["default"].createElement(reactAccessibleAccordion.AccordionItemPanel, {
4205
+ className: "p-0"
4206
+ }, _toConsumableArray__default["default"](Array(item.toq)).map(function (_, index) {
4207
+ return /*#__PURE__*/React__default["default"].createElement(Variantoptions_f_quantity_cond, {
4208
+ key: index,
4209
+ actions: props.actions,
4210
+ variant_id_return: function variant_id_return(id) {
4211
+ return handleVariantId(index, id);
4212
+ }
4213
+ });
4214
+ })))))
4215
+ // <div
4216
+ // class="col-lg-12 p-3 mb-3"
4217
+ // style={{
4218
+ // border: '3px solid #5f848e',
4219
+ // borderRadius: 20,
4220
+ // }}
4221
+ // >
4222
+ // <p
4223
+ // class="mb-3"
4224
+ // style={{
4225
+ // color: '#000',
4226
+ // fontSize: 25,
4227
+ // fontWeight: 700,
4228
+ // }}
4229
+ // >
4230
+ // اشتري 1 {item.toq} بسعر كذا بدلا من كذا
4231
+ // {/* اشتري طقم بسعر1600جنيه بدل من 1900جنية */}
4232
+ // {/* buy {item.toq} get {item.value}% free */}
4233
+ // </p>
4234
+ // {[...Array(item.toq)].map((_, index) => (
4235
+ // <Variantoptions_f_quantity_cond key={index} actions={props.actions} variant_id_return={(id) => handleVariantId(index, id)} />
4236
+ // ))}
4237
+ // </div>
4238
+ ;
4239
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
4240
+ "class": "col-12 allcentered cursor-pointer mt-3",
4241
+ onClick: /*#__PURE__*/_asyncToGenerator__default["default"](/*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() {
4242
+ var variantIds, counts, _i, _Object$entries, _Object$entries$_i, id, quantity;
4243
+ return _regeneratorRuntime__default["default"].wrap(function (_context) {
4244
+ while (1) switch (_context.prev = _context.next) {
4245
+ case 0:
4246
+ variantIds = choosen_variant_ids_Ref.current || [];
4247
+ counts = {}; // Count occurrences of each ID
4248
+ variantIds.forEach(function (id) {
4249
+ if (id != null && id !== '') {
4250
+ counts[id] = (counts[id] || 0) + 1;
4251
+ }
4252
+ });
4253
+
4254
+ // Call addtocartfunc with quantity for each unique ID
4255
+ // Object.entries(counts).forEach(([id, quantity]) => {
4256
+ // addtocartfunc(false, id, quantity);
4257
+ // });
4258
+ _i = 0, _Object$entries = Object.entries(counts);
4259
+ case 1:
4260
+ if (!(_i < _Object$entries.length)) {
4261
+ _context.next = 4;
4262
+ break;
4263
+ }
4264
+ _Object$entries$_i = _slicedToArray__default["default"](_Object$entries[_i], 2), id = _Object$entries$_i[0], quantity = _Object$entries$_i[1];
4265
+ _context.next = 2;
4266
+ return addtocartfunc(false, id, quantity);
4267
+ case 2:
4268
+ _context.next = 3;
4269
+ return sleep(1500);
4270
+ case 3:
4271
+ _i++;
4272
+ _context.next = 1;
4273
+ break;
4274
+ case 4:
4275
+ case "end":
4276
+ return _context.stop();
4277
+ }
4278
+ }, _callee);
4279
+ }))
4280
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
4281
+ className: "".concat(productinfo_cssstyles.cart_btn, " ") + ' w-100 m-0 p-0 d-flex align-items-center justify-content-center mb-sm-2 '
4282
+ }, langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer8 === void 0 || (_fetchProductInfoQuer8 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : _fetchProductInfoQuer8.productactionbuttontext_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer9 === void 0 || (_fetchProductInfoQuer9 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productactionbuttontext_ar)))));
4283
+ };
4284
+
4285
+ function ownKeys$2B(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4286
+ function _objectSpread$2B(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2B(Object(t), !0).forEach(function (r) { _defineProperty__default["default"](e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2B(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4287
+ var Product_itemtype = function Product_itemtype(props) {
4288
+ var _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _fetchProductInfoQuer32, _authdetailsContext$i7, _authdetailsContext$i8, _authdetailsContext$i9, _authdetailsContext$i0, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _authdetailsContext$i1, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _authdetailsContext$i10, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100, _fetchProductInfoQuer101, _fetchProductInfoQuer102, _fetchProductInfoQuer103, _fetchProductInfoQuer104, _fetchProductInfoQuer105, _returnpolicyobj9, _returnpolicyobj0, _returnpolicyobj1, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12, _returnpolicyobj13, _returnpolicyobj14, _fetchProductInfoQuer106, _fetchProductInfoQuer107, _fetchProductInfoQuer108, _fetchProductInfoQuer109, _fetchProductInfoQuer110, _fetchProductInfoQuer111, _authdetailsContext$i11, _authdetailsContext$i12, _fetchProductInfoQuer112, _fetchProductInfoQuer113, _fetchProductInfoQuer114, _fetchProductInfoQuer115, _fetchProductInfoQuer116, _fetchProductInfoQuer117, _fetchProductInfoQuer118, _fetchProductInfoQuer119, _authdetailsContext$i13, _fetchProductInfoQuer120, _fetchProductInfoQuer121, _fetchProductInfoQuer122, _fetchProductInfoQuer123, _fetchProductInfoQuer124, _fetchProductInfoQuer127, _fetchProductInfoQuer128, _authdetailsContext$i14, _fetchProductInfoQuer129, _fetchProductInfoQuer130, _fetchProductInfoQuer131, _fetchProductInfoQuer132, _fetchProductInfoQuer133, _fetchProductInfoQuer134, _fetchProductInfoQuer135, _fetchProductInfoQuer138, _fetchProductInfoQuer139, _sizeguideimage$, _authdetailsContext$i15, _fetchProductInfoQuer141, _fetchProductInfoQuer142;
4289
+ var lang = props.actions.lang;
4290
+ var actions = props.actions;
4291
+ var langdetect = props.actions.langdetect;
4292
+ var srcfromprops = props.actions.srcfromprops;
4293
+ var returnpolicyobj = props.actions.returnpolicyobj;
4294
+ var productinfo_cssstyles = props.actions.productinfo_cssstyles;
4295
+ var addtocartfunc = props.actions.addtocartfunc;
4296
+ props.actions.selectproductoptionvalue;
4297
+ props.actions.clearchoosenvaluesbutkeepcurrentvalue;
4298
+ var productimagesarray = props.actions.productimagesarray;
4299
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
4300
+ var sectionproperties = props.actions.sectionproperties;
4301
+ var addtocardpayloadobj = props.actions.addtocardpayloadobj;
4302
+ var setaddtocardpayloadobj = props.actions.setaddtocardpayloadobj;
4303
+ var routingcountext = props.actions.routingcountext;
4304
+ var AddtoCartMutationContext = props.actions.AddtoCartMutationContext;
4305
+ var authdetailsContext = props.actions.authdetailsContext;
4306
+ var variantsku = props.actions.variantsku;
4307
+ var addtofavoritescontext = props.actions.addtofavoritescontext;
4308
+ var variantindexcompleted = props.actions.variantindexcompleted;
4309
+ props.actions.ProductInfoObj;
4310
+ var NotificationManager = props.actions.NotificationManager;
4311
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
4312
+ var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
4313
+ props.actions.getprice_discountpricepropsnormalonly;
4314
+ var ikimagecredcontext = props.actions.ikimagecredcontext;
4315
+ var currentshowingimageindex_pro = props.actions.currentshowingimageindex;
4316
+ var StoreInfoprops = props.actions.StoreInfoprops;
4317
+ props.actions.productimagesarray;
4318
+ var sizeguideimage = props.actions.sizeguideimage;
4319
+ // const setopensizeguidemodal = props.actions.setopensizeguidemodal;
4320
+ // const opensizeguidemodal = props.actions.opensizeguidemodal;
4321
+ var _useState = React.useState(false),
4322
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
4323
+ opensizeguidemodal = _useState2[0],
4324
+ setopensizeguidemodal = _useState2[1];
4325
+ props.actions.AddtoCartContext;
4326
+ var whatsappUrl = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessageen + ' ' + 'https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
4327
+ var whatsappUrl_ar = "https://wa.me/".concat(authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber, "?text=").concat(sectionproperties.directwabtnmessagear + ' ' + 'https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
4328
+ var _useState3 = React.useState(currentshowingimageindex_pro),
4329
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
4330
+ currentshowingimageindex = _useState4[0],
4331
+ setcurrentshowingimageindex = _useState4[1];
4332
+ // const DescriptionContent = props.actions.DescriptionContent;
4333
+ var _useState5 = React.useState(''),
4334
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
4335
+ shareUrl = _useState6[0],
4336
+ setshareUrl = _useState6[1];
4337
+ var _useState7 = React.useState(''),
4338
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
4339
+ title = _useState8[0],
4340
+ settitle = _useState8[1];
4341
+ var _useState9 = React.useState(fetchProductInfoQueryContext.data.data.productinfo),
4342
+ _useState0 = _slicedToArray__default["default"](_useState9, 2);
4343
+ _useState0[0];
4344
+ var setitem = _useState0[1];
4345
+ var _useState1 = React.useState(''),
4346
+ _useState10 = _slicedToArray__default["default"](_useState1, 2);
4347
+ _useState10[0];
4348
+ var settotalprice = _useState10[1];
4349
+ var _useState11 = React.useState(null),
4350
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
4351
+ gallery = _useState12[0],
4352
+ setGallery = _useState12[1]; // Store reference to the gallery
4353
+ var Slideshowsettings = {
4354
+ indicators: true,
4355
+ arrows: true,
4356
+ pauseOnHover: false,
4357
+ scale: 2
4358
+ };
4359
+ var toggleFullScreen = function toggleFullScreen() {
4360
+ if (gallery) {
4361
+ gallery.toggleFullScreen();
4362
+ }
4363
+ };
4364
+ React.useEffect(function () {
4365
+ var itemobj = fetchProductInfoQueryContext.data.data.productinfo;
4366
+ if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.name_en)) {
4367
+ itemobj.titlelang = 'en';
4368
+ } else {
4369
+ itemobj.titlelang = 'ar';
4370
+ }
4371
+ if (stringIsEnglish(fetchProductInfoQueryContext.data.data.productinfo.description_en)) {
4372
+ itemobj.decriptionlang = 'en';
4373
+ } else {
4374
+ itemobj.decriptionlang = 'ar';
4375
+ }
4376
+ setitem(itemobj);
4377
+ settitle(fetchProductInfoQueryContext.data.data.productinfo.name_en);
4378
+ setshareUrl('https://' + authdetailsContext.instinfo.instcred.instexternaldomain + '/productinform/' + fetchProductInfoQueryContext.data.data.productinfo.productid);
4379
+ }, [props.itemprops]);
4380
+ function stringIsEnglish(str) {
4381
+ var titlelang = 'English';
4382
+ var arabic = /[\u0600-\u06FF]/;
4383
+ if (!arabic.test(str)) {
4384
+ titlelang = true;
4385
+ } else {
4386
+ titlelang = false;
4387
+ }
4388
+ return titlelang;
4389
+ }
4390
+ var Ar_redirector = function Ar_redirector() {
4391
+ // var instapikey = authdetailsContext?.instinfo?.instcred?.webapp_apikey;
4392
+ // var productid = fetchProductInfoQueryContext?.data?.data?.productinfo?.productid;
4393
+
4394
+ // const url = https://3d-tryon.vercel.app/?i=${instapikey}&p=${productid};
4395
+ var url = 'https://3d-tryon.vercel.app/?i=68319d088f13f&p=6832fc16af9d7';
4396
+ window.open(url, '_blank');
4397
+ };
4398
+ var ShareButtonsContainer = function ShareButtonsContainer() {
4399
+ return /*#__PURE__*/React__default["default"].createElement("div", {
4400
+ "class": "row m-0 w-100"
4401
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4402
+ "class": "col-lg-12 d-flex justify-content-center flex-column align-items-center p-0"
4403
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
4404
+ "class": "m-0 p-0",
4405
+ style: {
4406
+ fontWeight: sectionproperties.sharebtn_FontWeight,
4407
+ color: sectionproperties.sharebtn_color,
4408
+ fontSize: sectionproperties.sharebtn_fontSize + 'px'
4409
+ }
4410
+ }, langdetect == 'en' ? sectionproperties.sharebtn_contentEn : sectionproperties.sharebtn_contentAr), /*#__PURE__*/React__default["default"].createElement("div", {
4411
+ className: "Demo__container w-100 m-0 allcentered mt-3"
4412
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
4413
+ className: "Demo__some-network ml-2 mr-2"
4414
+ }, /*#__PURE__*/React__default["default"].createElement(reactShare.FacebookShareButton, {
3379
4415
  url: shareUrl,
3380
4416
  quote: title,
3381
4417
  className: "Demo__some-network__share-button"
@@ -4241,7 +5277,9 @@ var Product_itemtype = function Product_itemtype(props) {
4241
5277
  }, /*#__PURE__*/React__default["default"].createElement(DescriptionContent, {
4242
5278
  actions: props.actions,
4243
5279
  srcfromprops: 'undername'
4244
- })))), /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
5280
+ })))), /*#__PURE__*/React__default["default"].createElement(ProductQuantityConditions_W_Variants, {
5281
+ actions: props.actions
5282
+ }), (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) != '685d6e2b7e2e8' && /*#__PURE__*/React__default["default"].createElement(Variantoptions, {
4245
5283
  actions: props.actions
4246
5284
  }), /*#__PURE__*/React__default["default"].createElement(ProductExtras, {
4247
5285
  addtocartfunc: addtocartfunc,
@@ -4850,7 +5888,7 @@ var Product_itemtype = function Product_itemtype(props) {
4850
5888
  "class": "my-3"
4851
5889
  })), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
4852
5890
  "class": "col-lg-12 p-0 allcentered mt-2"
4853
- }, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i1 = authdetailsContext.instinfo) === null || _authdetailsContext$i1 === void 0 ? void 0 : _authdetailsContext$i1.contactinfo.instid) == '684fdf3f9e856' && /*#__PURE__*/React__default["default"].createElement("div", {
5891
+ }, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) == '684fdf3f9e856' && /*#__PURE__*/React__default["default"].createElement("div", {
4854
5892
  "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-1025-1 ',
4855
5893
  style: {
4856
5894
  minHeight: sectionproperties.height + 'vh'
@@ -5954,7 +6992,7 @@ var Product_itemtype = function Product_itemtype(props) {
5954
6992
  "class": "my-3"
5955
6993
  })), sectionproperties.showShareButton == 'Show' && sectionproperties.sharebtnstyle == 'Style 2' && /*#__PURE__*/React__default["default"].createElement("div", {
5956
6994
  "class": "col-lg-12 p-0 allcentered mt-2"
5957
- }, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && sectionproperties.productInformationType == 'Portfolio' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i10 = authdetailsContext.instinfo) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.contactinfo.instid) != '678d1831ef638' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.contactinfo.instid) != '680a0b8a31930' && /*#__PURE__*/React__default["default"].createElement("div", {
6995
+ }, ShareButtonsContainer())))))), Object.keys(sectionproperties).length != 0 && sectionproperties.productInformationType == 'Portfolio' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i11 = authdetailsContext.instinfo) === null || _authdetailsContext$i11 === void 0 ? void 0 : _authdetailsContext$i11.contactinfo.instid) != '678d1831ef638' && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) != '680a0b8a31930' && /*#__PURE__*/React__default["default"].createElement("div", {
5958
6996
  "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 ',
5959
6997
  style: {
5960
6998
  minHeight: sectionproperties.height + 'vh',
@@ -6081,7 +7119,7 @@ var Product_itemtype = function Product_itemtype(props) {
6081
7119
  dangerouslySetInnerHTML: {
6082
7120
  __html: langdetect == 'en' ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer118 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer118 === void 0 || (_fetchProductInfoQuer118 = _fetchProductInfoQuer118.data) === null || _fetchProductInfoQuer118 === void 0 || (_fetchProductInfoQuer118 = _fetchProductInfoQuer118.productinfo) === null || _fetchProductInfoQuer118 === void 0 ? void 0 : _fetchProductInfoQuer118.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer119 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer119 === void 0 || (_fetchProductInfoQuer119 = _fetchProductInfoQuer119.data) === null || _fetchProductInfoQuer119 === void 0 || (_fetchProductInfoQuer119 = _fetchProductInfoQuer119.productinfo) === null || _fetchProductInfoQuer119 === void 0 ? void 0 : _fetchProductInfoQuer119.description_ar
6083
7121
  }
6084
- }))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i12 = authdetailsContext.instinfo) === null || _authdetailsContext$i12 === void 0 ? void 0 : _authdetailsContext$i12.contactinfo.instid) == '680a0b8a31930' && /*#__PURE__*/React__default["default"].createElement("div", {
7122
+ }))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '680a0b8a31930' && /*#__PURE__*/React__default["default"].createElement("div", {
6085
7123
  "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
6086
7124
  style: {
6087
7125
  minHeight: '100vh'
@@ -6348,7 +7386,7 @@ var Product_itemtype = function Product_itemtype(props) {
6348
7386
  width: "20px",
6349
7387
  height: "20px",
6350
7388
  duration: "1s"
6351
- }))))))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i13 = authdetailsContext.instinfo) === null || _authdetailsContext$i13 === void 0 ? void 0 : _authdetailsContext$i13.contactinfo.instid) == '678d1831ef638' && /*#__PURE__*/React__default["default"].createElement("div", {
7389
+ }))))))))), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '678d1831ef638' && /*#__PURE__*/React__default["default"].createElement("div", {
6352
7390
  "class": "".concat(productinfo_cssstyles.cardcontainer) + ' row ml-0 mr-0 w-100 pl-md-2 pr-md-2 px-0 ',
6353
7391
  style: {
6354
7392
  minHeight: '100vh'
@@ -6727,7 +7765,7 @@ var Product_itemtype = function Product_itemtype(props) {
6727
7765
  objectFit: 'contain'
6728
7766
  },
6729
7767
  loading: "lazy"
6730
- }))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i14 = authdetailsContext.instinfo) === null || _authdetailsContext$i14 === void 0 ? void 0 : _authdetailsContext$i14.contactinfo.instid) == '68319d088f13e' && /*#__PURE__*/React__default["default"].createElement("div", {
7768
+ }))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)), Object.keys(sectionproperties).length != 0 && (authdetailsContext === null || authdetailsContext === void 0 || (_authdetailsContext$i15 = authdetailsContext.instinfo) === null || _authdetailsContext$i15 === void 0 ? void 0 : _authdetailsContext$i15.contactinfo.instid) == '68319d088f13e' && /*#__PURE__*/React__default["default"].createElement("div", {
6731
7769
  "class": "col-12 p-0",
6732
7770
  style: {
6733
7771
  position: 'fixed',
@@ -10782,6 +11820,7 @@ var Productinfo = function Productinfo(props) {
10782
11820
  }
10783
11821
  }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 || (_fetchProductInfoQuer86 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.data) === null || _fetchProductInfoQuer86 === void 0 || (_fetchProductInfoQuer86 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : _fetchProductInfoQuer86.item_type) == 'product' && /*#__PURE__*/React__default["default"].createElement(Product_itemtype, {
10784
11822
  actions: (_ref = {
11823
+ AddtoCartContext: AddtoCartContext,
10785
11824
  variantnotchosendisclaimer: variantnotchosendisclaimer,
10786
11825
  setisoutofstock: setisoutofstock,
10787
11826
  isoutofstock: isoutofstock,