tabexseriescomponents 0.0.249 → 0.0.252

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
@@ -33,6 +33,7 @@ var AiFillStar = require('@react-icons/all-files/ai/AiFillStar');
33
33
  var AiOutlineStar = require('@react-icons/all-files/ai/AiOutlineStar');
34
34
  var reactShare = require('react-share');
35
35
  var imagekitioReact = require('imagekitio-react');
36
+ var ReactStars = require('react-rating-stars-component');
36
37
  var material = require('@mui/material');
37
38
  var AiOutlineClockCircle = require('@react-icons/all-files/ai/AiOutlineClockCircle');
38
39
  var AiOutlinePlus = require('@react-icons/all-files/ai/AiOutlinePlus');
@@ -42,6 +43,7 @@ var HiOutlinePhone = require('@react-icons/all-files/hi/HiOutlinePhone');
42
43
  var AiOutlineMail = require('@react-icons/all-files/ai/AiOutlineMail');
43
44
  var FaShippingFast = require('@react-icons/all-files/fa/FaShippingFast');
44
45
  var RiSecurePaymentLine = require('@react-icons/all-files/ri/RiSecurePaymentLine');
46
+ var TextareaAutosize = require('react-textarea-autosize');
45
47
  var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
46
48
  var AiOutlineSecurityScan = require('@react-icons/all-files/ai/AiOutlineSecurityScan');
47
49
  var FaStar = require('@react-icons/all-files/fa/FaStar');
@@ -54,7 +56,6 @@ var FiLayers = require('@react-icons/all-files/fi/FiLayers');
54
56
  var HiOutlineTrash = require('@react-icons/all-files/hi/HiOutlineTrash');
55
57
  var BiSad = require('@react-icons/all-files/bi/BiSad');
56
58
  var FiCalendar = require('@react-icons/all-files/fi/FiCalendar');
57
- var TextareaAutosize = require('react-textarea-autosize');
58
59
  var HiUser = require('@react-icons/all-files/hi/HiUser');
59
60
  var GrMail = require('@react-icons/all-files/gr/GrMail');
60
61
  var FiCheckCircle = require('@react-icons/all-files/fi/FiCheckCircle');
@@ -71,6 +72,7 @@ var IoBagRemoveOutline = require('@react-icons/all-files/io5/IoBagRemoveOutline'
71
72
  var Dropdown = require('react-bootstrap/Dropdown');
72
73
  var FiChevronUp = require('@react-icons/all-files/fi/FiChevronUp');
73
74
  var FiChevronDown = require('@react-icons/all-files/fi/FiChevronDown');
75
+ var InputRange = require('react-input-range');
74
76
  var reactIntersectionObserver = require('react-intersection-observer');
75
77
  var FaArrowAltCircleRight = require('@react-icons/all-files/fa/FaArrowAltCircleRight');
76
78
  var FaArrowAltCircleLeft = require('@react-icons/all-files/fa/FaArrowAltCircleLeft');
@@ -163,10 +165,12 @@ var Cookies__default = /*#__PURE__*/_interopDefaultLegacy(Cookies);
163
165
  var jwtDecode__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecode);
164
166
  var FacebookLogin__default = /*#__PURE__*/_interopDefaultLegacy(FacebookLogin);
165
167
  var ImageGallery__default = /*#__PURE__*/_interopDefaultLegacy(ImageGallery);
166
- var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
168
+ var ReactStars__default = /*#__PURE__*/_interopDefaultLegacy(ReactStars);
167
169
  var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
170
+ var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
168
171
  var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
169
172
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
173
+ var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
170
174
  var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
171
175
  var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$2);
172
176
  var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
@@ -307,8 +311,9 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
307
311
  loginwithfacebook: 'Sign in with facebook',
308
312
  orsigninwith: 'Or Sign in with',
309
313
  orsignupwith: 'Or Sign up with'
310
- }, _defineProperty__default["default"](_en, "price", 'Price'), _defineProperty__default["default"](_en, "relatedproducts", 'Related products'), _defineProperty__default["default"](_en, "qty", 'QTY'), _defineProperty__default["default"](_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty__default["default"](_en, "shopnow", 'Shop now'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "otherinformation", 'Other information'), _defineProperty__default["default"](_en, "productname", 'Product name'), _defineProperty__default["default"](_en, "quantity", 'Quantity'), _defineProperty__default["default"](_en, "orderid", 'Order ID'), _defineProperty__default["default"](_en, "numberofproducts", 'Number of products'), _defineProperty__default["default"](_en, "checkyourorder", 'Check your order'), _defineProperty__default["default"](_en, "search", 'Search'), _defineProperty__default["default"](_en, "searchproducts", 'Search for products...'), _defineProperty__default["default"](_en, "choosecity", 'Choose city'), _defineProperty__default["default"](_en, "choosestategov", 'Choose state/governorate'), _defineProperty__default["default"](_en, "choosecountry", 'Choose country'), _defineProperty__default["default"](_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty__default["default"](_en, "nosearchresults", 'No search results'), _defineProperty__default["default"](_en, "sale", 'Sale'), _defineProperty__default["default"](_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty__default["default"](_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty__default["default"](_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty__default["default"](_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty__default["default"](_en, "promocoderemoved", 'Promo code is removed'), _defineProperty__default["default"](_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty__default["default"](_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty__default["default"](_en, "addedtowishlist", 'Added to your favourites'), _defineProperty__default["default"](_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty__default["default"](_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty__default["default"](_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty__default["default"](_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty__default["default"](_en, "subtotal", 'Sub total'), _defineProperty__default["default"](_en, "discount", 'Discount'), _defineProperty__default["default"](_en, "outofzone", 'Out of zone'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "cod", 'Cash on Delivery'), _defineProperty__default["default"](_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty__default["default"](_en, "onlinepayment", 'Online Payment'), _defineProperty__default["default"](_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty__default["default"](_en, "shippingfees", 'Shipping fees'), _defineProperty__default["default"](_en, "shippingaddress", 'Shipping address'), _defineProperty__default["default"](_en, "cardnumber", 'Card number'), _defineProperty__default["default"](_en, "year", 'Year'), _defineProperty__default["default"](_en, "month", 'Month'), _defineProperty__default["default"](_en, "cvv", 'CVV'), _defineProperty__default["default"](_en, "nameoncard", 'Name On Card'), _defineProperty__default["default"](_en, "country", 'Country'), _defineProperty__default["default"](_en, "addressdetails", 'ِAddress details'), _defineProperty__default["default"](_en, "stategov", 'State/Governorate'), _defineProperty__default["default"](_en, "city", 'City'), _defineProperty__default["default"](_en, "paymentmethod", 'Payment method'), _defineProperty__default["default"](_en, "productimage", 'Product image'), _defineProperty__default["default"](_en, "orderdetails", 'Order details'), _defineProperty__default["default"](_en, "orderinvoice", 'Order invoice'), _defineProperty__default["default"](_en, "promocodediscount", 'Promo code discount'), _defineProperty__default["default"](_en, "address", 'Address'), _defineProperty__default["default"](_en, "update", 'Update'), _defineProperty__default["default"](_en, "phonenumber", 'Mobile number'), _defineProperty__default["default"](_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty__default["default"](_en, "name", 'Name'), _defineProperty__default["default"](_en, "email", 'Email'), _defineProperty__default["default"](_en, "password", 'Password'), _defineProperty__default["default"](_en, "confirmpassword", 'Confirm password'), _defineProperty__default["default"](_en, "showmore", 'Show more'), _defineProperty__default["default"](_en, "showless", 'Show less'), _defineProperty__default["default"](_en, "contactdetails", 'Contact Information'), _defineProperty__default["default"](_en, "asaguest", 'As a guest'), _defineProperty__default["default"](_en, "choosecountryfirst", 'Please choose country first'), _defineProperty__default["default"](_en, "security", 'Security'), _defineProperty__default["default"](_en, "personalinformation", 'Personal Information'), _defineProperty__default["default"](_en, "contactus", 'Contact us'), _defineProperty__default["default"](_en, "slogan", 'Your website & mobile application in one place'), _defineProperty__default["default"](_en, "recent", 'Recent'), _defineProperty__default["default"](_en, "oldest", 'Oldest'), _defineProperty__default["default"](_en, "pricehightolow", 'High to low'), _defineProperty__default["default"](_en, "pricelowtohigh", 'Low to High'), _en),
314
+ }, _defineProperty__default["default"](_en, "price", 'Price'), _defineProperty__default["default"](_en, "relatedproducts", 'Related products'), _defineProperty__default["default"](_en, "qty", 'QTY'), _defineProperty__default["default"](_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty__default["default"](_en, "shopnow", 'Shop now'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "otherinformation", 'Other information'), _defineProperty__default["default"](_en, "productname", 'Product name'), _defineProperty__default["default"](_en, "quantity", 'Quantity'), _defineProperty__default["default"](_en, "orderid", 'Order ID'), _defineProperty__default["default"](_en, "numberofproducts", 'Number of products'), _defineProperty__default["default"](_en, "checkyourorder", 'Check your order'), _defineProperty__default["default"](_en, "search", 'Search'), _defineProperty__default["default"](_en, "searchproducts", 'Search for products...'), _defineProperty__default["default"](_en, "choosecity", 'Choose city'), _defineProperty__default["default"](_en, "choosestategov", 'Choose state/governorate'), _defineProperty__default["default"](_en, "choosecountry", 'Choose country'), _defineProperty__default["default"](_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty__default["default"](_en, "nosearchresults", 'No search results'), _defineProperty__default["default"](_en, "sale", 'Sale'), _defineProperty__default["default"](_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty__default["default"](_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty__default["default"](_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty__default["default"](_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty__default["default"](_en, "promocoderemoved", 'Promo code is removed'), _defineProperty__default["default"](_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty__default["default"](_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty__default["default"](_en, "addedtowishlist", 'Added to your favourites'), _defineProperty__default["default"](_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty__default["default"](_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty__default["default"](_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty__default["default"](_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty__default["default"](_en, "subtotal", 'Sub total'), _defineProperty__default["default"](_en, "discount", 'Discount'), _defineProperty__default["default"](_en, "outofzone", 'Out of zone'), _defineProperty__default["default"](_en, "total", 'Total'), _defineProperty__default["default"](_en, "cod", 'Cash on Delivery'), _defineProperty__default["default"](_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty__default["default"](_en, "onlinepayment", 'Online Payment'), _defineProperty__default["default"](_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty__default["default"](_en, "shippingfees", 'Shipping fees'), _defineProperty__default["default"](_en, "shippingaddress", 'Shipping address'), _defineProperty__default["default"](_en, "cardnumber", 'Card number'), _defineProperty__default["default"](_en, "year", 'Year'), _defineProperty__default["default"](_en, "month", 'Month'), _defineProperty__default["default"](_en, "cvv", 'CVV'), _defineProperty__default["default"](_en, "nameoncard", 'Name On Card'), _defineProperty__default["default"](_en, "country", 'Country'), _defineProperty__default["default"](_en, "addressdetails", 'ِAddress details'), _defineProperty__default["default"](_en, "stategov", 'State/Governorate'), _defineProperty__default["default"](_en, "city", 'City'), _defineProperty__default["default"](_en, "paymentmethod", 'Payment method'), _defineProperty__default["default"](_en, "productimage", 'Product image'), _defineProperty__default["default"](_en, "orderdetails", 'Order details'), _defineProperty__default["default"](_en, "orderinvoice", 'Order invoice'), _defineProperty__default["default"](_en, "promocodediscount", 'Promo code discount'), _defineProperty__default["default"](_en, "address", 'Address'), _defineProperty__default["default"](_en, "update", 'Update'), _defineProperty__default["default"](_en, "phonenumber", 'Mobile number'), _defineProperty__default["default"](_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty__default["default"](_en, "name", 'Name'), _defineProperty__default["default"](_en, "email", 'Email'), _defineProperty__default["default"](_en, "password", 'Password'), _defineProperty__default["default"](_en, "confirmpassword", 'Confirm password'), _defineProperty__default["default"](_en, "showmore", 'Show more'), _defineProperty__default["default"](_en, "showless", 'Show less'), _defineProperty__default["default"](_en, "contactdetails", 'Contact Information'), _defineProperty__default["default"](_en, "asaguest", 'As a guest'), _defineProperty__default["default"](_en, "choosecountryfirst", 'Please choose country first'), _defineProperty__default["default"](_en, "security", 'Security'), _defineProperty__default["default"](_en, "personalinformation", 'Personal Information'), _defineProperty__default["default"](_en, "contactus", 'Contact us'), _defineProperty__default["default"](_en, "slogan", 'Your website & mobile application in one place'), _defineProperty__default["default"](_en, "recent", 'Recent'), _defineProperty__default["default"](_en, "oldest", 'Oldest'), _defineProperty__default["default"](_en, "pricehightolow", 'High to low'), _defineProperty__default["default"](_en, "pricelowtohigh", 'Low to High'), _defineProperty__default["default"](_en, "pleasecompleteaddressmissingfields", 'Please complete the missing address fields'), _en),
311
315
  ar: (_ar = {
316
+ pleasecompleteaddressmissingfields: 'من فضلك اكمل باقى بيانات العنوان',
312
317
  loginregister: 'تسجيل الدخول/إنشاء حساب جديد',
313
318
  pleaselogintocheckout: 'قم بتسجيل دخول لاستكمال طلبك',
314
319
  reservationtime: 'ميعاد الحجز',
@@ -456,7 +461,9 @@ var ProductsCardsSectionContext_Provider = function ProductsCardsSectionContext_
456
461
  sortprice: '',
457
462
  sortdates: '',
458
463
  page: 0,
459
- vendorsarr: []
464
+ vendorsarr: [],
465
+ minrate: 0,
466
+ maxrate: 5
460
467
  }),
461
468
  _useState4 = _slicedToArray__default["default"](_useState3, 2),
462
469
  ProductFilterObjContext = _useState4[0],
@@ -579,8 +586,8 @@ var FacebookLoginButton = function FacebookLoginButton(props) {
579
586
  }));
580
587
  };
581
588
 
582
- function ownKeys$1$(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
583
- function _objectSpread$1$(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1$(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1$(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
589
+ function ownKeys$21(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
590
+ function _objectSpread$21(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$21(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$21(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
584
591
  var Login = function Login(props) {
585
592
  var _css;
586
593
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -649,7 +656,7 @@ var Login = function Login(props) {
649
656
  StatePagePropertiesContext === null || StatePagePropertiesContext === void 0 ? void 0 : (_StatePagePropertiesC = StatePagePropertiesContext.pageobj) === null || _StatePagePropertiesC === void 0 ? void 0 : (_StatePagePropertiesC2 = _StatePagePropertiesC.pageproperties) === null || _StatePagePropertiesC2 === void 0 ? void 0 : _StatePagePropertiesC2.forEach(function (arrayItem, arrayindex) {
650
657
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
651
658
  });
652
- setsectionproperties(_objectSpread$1$({}, secpropobj));
659
+ setsectionproperties(_objectSpread$21({}, secpropobj));
653
660
  }
654
661
  }, [StatePagePropertiesContext]);
655
662
  React.useEffect(function () {
@@ -808,9 +815,9 @@ var Login = function Login(props) {
808
815
  className: "".concat(loginstyles2.form_control),
809
816
  value: payloadobj.email,
810
817
  onChange: function onChange(event) {
811
- var temppayloadobj = _objectSpread$1$({}, payloadobj);
818
+ var temppayloadobj = _objectSpread$21({}, payloadobj);
812
819
  temppayloadobj.email = event.target.value;
813
- setpayloadobj(_objectSpread$1$({}, temppayloadobj));
820
+ setpayloadobj(_objectSpread$21({}, temppayloadobj));
814
821
  },
815
822
  style: {
816
823
  background: 'transparent'
@@ -831,9 +838,9 @@ var Login = function Login(props) {
831
838
  textplaceholder: "",
832
839
  value: payloadobj.password,
833
840
  onChange: function onChange(event) {
834
- var temppayloadobj = _objectSpread$1$({}, payloadobj);
841
+ var temppayloadobj = _objectSpread$21({}, payloadobj);
835
842
  temppayloadobj.password = event.target.value;
836
- setpayloadobj(_objectSpread$1$({}, temppayloadobj));
843
+ setpayloadobj(_objectSpread$21({}, temppayloadobj));
837
844
  }
838
845
  }), /*#__PURE__*/React__default["default"].createElement("span", {
839
846
  className: langdetect == 'en' ? loginstyles$1.login_input_icon : loginstyles$1.login_input_icontrans
@@ -966,9 +973,9 @@ var Login = function Login(props) {
966
973
  className: "".concat(loginstyles2.form_control),
967
974
  value: forgotpasswordpayload.email,
968
975
  onChange: function onChange(event) {
969
- var temppayloadobj = _objectSpread$1$({}, forgotpasswordpayload);
976
+ var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
970
977
  temppayloadobj.email = event.target.value;
971
- setforgotpasswordpayload(_objectSpread$1$({}, temppayloadobj));
978
+ setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
972
979
  },
973
980
  disabled: forgetpasswordstage == 'verify' ? true : false
974
981
  }), /*#__PURE__*/React__default["default"].createElement("span", {
@@ -986,9 +993,9 @@ var Login = function Login(props) {
986
993
  className: "".concat(loginstyles2.form_control),
987
994
  value: forgotpasswordpayload.code,
988
995
  onChange: function onChange(event) {
989
- var temppayloadobj = _objectSpread$1$({}, forgotpasswordpayload);
996
+ var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
990
997
  temppayloadobj.code = event.target.value;
991
- setforgotpasswordpayload(_objectSpread$1$({}, temppayloadobj));
998
+ setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
992
999
  }
993
1000
  })), /*#__PURE__*/React__default["default"].createElement("div", {
994
1001
  className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0"
@@ -999,9 +1006,9 @@ var Login = function Login(props) {
999
1006
  className: "".concat(loginstyles2.form_control),
1000
1007
  value: forgotpasswordpayload.newpassword,
1001
1008
  onChange: function onChange(event) {
1002
- var temppayloadobj = _objectSpread$1$({}, forgotpasswordpayload);
1009
+ var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
1003
1010
  temppayloadobj.newpassword = event.target.value;
1004
- setforgotpasswordpayload(_objectSpread$1$({}, temppayloadobj));
1011
+ setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
1005
1012
  }
1006
1013
  })), /*#__PURE__*/React__default["default"].createElement("div", {
1007
1014
  className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0"
@@ -1012,9 +1019,9 @@ var Login = function Login(props) {
1012
1019
  className: "".concat(loginstyles2.form_control),
1013
1020
  value: forgotpasswordpayload.confirmnewpassword,
1014
1021
  onChange: function onChange(event) {
1015
- var temppayloadobj = _objectSpread$1$({}, forgotpasswordpayload);
1022
+ var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
1016
1023
  temppayloadobj.confirmnewpassword = event.target.value;
1017
- setforgotpasswordpayload(_objectSpread$1$({}, temppayloadobj));
1024
+ setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
1018
1025
  }
1019
1026
  }))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null, /*#__PURE__*/React__default["default"].createElement("div", {
1020
1027
  className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 "
@@ -1023,7 +1030,7 @@ var Login = function Login(props) {
1023
1030
  onClick: function onClick() {
1024
1031
  if (forgotpasswordpayload.email.length != 0) {
1025
1032
  var runfunc = false;
1026
- var tempforgotpasswordpayload = _objectSpread$1$({}, forgotpasswordpayload);
1033
+ var tempforgotpasswordpayload = _objectSpread$21({}, forgotpasswordpayload);
1027
1034
  tempforgotpasswordpayload.functype = forgetpasswordstage;
1028
1035
  if (forgetpasswordstage == 'verify') {
1029
1036
  if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
@@ -1317,10 +1324,10 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
1317
1324
  }, '-' + Math.round(10.0 * ((parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted)) - parseFloat(getprice_discountpriceprops('defaultsaleprice', 0, variantindexcompleted))) / parseFloat(getprice_discountpriceprops('defaultprice', 0, variantindexcompleted))) * 100) / 10.0 + '%'))))));
1318
1325
  };
1319
1326
 
1320
- function ownKeys$1_(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1321
- function _objectSpread$1_(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1_(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1_(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1327
+ function ownKeys$20(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1328
+ function _objectSpread$20(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$20(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$20(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1322
1329
  var Product_itemtype = function Product_itemtype(props) {
1323
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
1330
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
1324
1331
  var lang = props.actions.lang;
1325
1332
  var langdetect = props.actions.langdetect;
1326
1333
  var srcfromprops = props.actions.srcfromprops;
@@ -1346,6 +1353,8 @@ var Product_itemtype = function Product_itemtype(props) {
1346
1353
  var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
1347
1354
  props.actions.quantityconditionfoundobjprops;
1348
1355
  props.actions.ikimagecredcontext;
1356
+ var currentshowingimageindex = props.actions.currentshowingimageindex;
1357
+ props.actions.setcurrentshowingimageindex;
1349
1358
  var StoreInfoprops = props.actions.StoreInfoprops;
1350
1359
  var _useState = React.useState(false),
1351
1360
  _useState2 = _slicedToArray__default["default"](_useState, 2);
@@ -1423,13 +1432,14 @@ var Product_itemtype = function Product_itemtype(props) {
1423
1432
  thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
1424
1433
  showNav: false,
1425
1434
  showPlayButton: false,
1426
- showFullscreenButton: true
1435
+ showFullscreenButton: true,
1436
+ startIndex: currentshowingimageindex
1427
1437
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
1428
1438
  className: langdetect == 'en' ? 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-4 pr-0 p-md-0' : 'col-xl-7 col-lg-8 col-md-12 col-sm-12 pl-0 pr-4 p-md-0'
1429
1439
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1430
1440
  className: "row m-0 w-100"
1431
- }, srcfromprops != 'templatdraftrouter' && /*#__PURE__*/React__default["default"].createElement("div", {
1432
- className: "col-lg-10 col-md-10 col-sm-10 p-0 mb-1 d-flex justify-content-start align-items-center"
1441
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
1442
+ className: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productcanrate) == 1 ? 'col-lg-8 col-md-8 col-sm-8 p-0 mb-1 d-flex justify-content-start align-items-center' : 'col-lg-12 p-0 mb-1 d-flex justify-content-start align-items-center'
1433
1443
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1434
1444
  className: "".concat(productinfo_cssstyles.productname, " ").concat(productinfo_cssstyles.productnamehover) + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 ',
1435
1445
  onClick: function onClick() {
@@ -1438,12 +1448,31 @@ var Product_itemtype = function Product_itemtype(props) {
1438
1448
  style: {
1439
1449
  textAlign: langdetect == 'en' ? 'left' : 'right'
1440
1450
  }
1441
- }, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), srcfromprops == 'templatdraftrouter' && /*#__PURE__*/React__default["default"].createElement("div", {
1442
- className: "col-lg-10 col-md-10 col-sm-10 p-0 mb-2 d-flex justify-content-start align-items-center"
1443
- }, /*#__PURE__*/React__default["default"].createElement("p", {
1444
- className: "".concat(productinfo_cssstyles.productname) + ' m-0 p-0 wordbreak d-flex justify-content-start '
1445
- }, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
1446
- "class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
1451
+ }, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
1452
+ className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
1453
+ }, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
1454
+ count: 5,
1455
+ value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productoverallrate,
1456
+ edit: false,
1457
+ size: 18,
1458
+ emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
1459
+ className: "far fa-star",
1460
+ style: {
1461
+ color: '#FAB400'
1462
+ }
1463
+ }),
1464
+ halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
1465
+ className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
1466
+ }),
1467
+ filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
1468
+ className: "fa fa-star",
1469
+ style: {
1470
+ color: '#FAB400'
1471
+ }
1472
+ }),
1473
+ activeColor: "#ffd700"
1474
+ })), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React__default["default"].createElement("div", {
1475
+ "class": sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.deliverydatetext) != null ? 'col-lg-12 p-0 mb-2 d-flex justify-content-start' : 'col-lg-12 p-0 mb-3 d-flex justify-content-start'
1447
1476
  }, /*#__PURE__*/React__default["default"].createElement("p", {
1448
1477
  "class": "m-0 p-0 d-flex justify-content-start"
1449
1478
  }, /*#__PURE__*/React__default["default"].createElement("span", {
@@ -1461,7 +1490,7 @@ var Product_itemtype = function Product_itemtype(props) {
1461
1490
  fontSize: sectionproperties.skuFontSize + 'px',
1462
1491
  textAlign: langdetect == 'en' ? 'left' : 'right'
1463
1492
  }
1464
- }, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
1493
+ }, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : _fetchProductInfoQuer15.deliverydatetext) != null && /*#__PURE__*/React__default["default"].createElement("div", {
1465
1494
  "class": "mb-4 col-lg-12",
1466
1495
  style: {
1467
1496
  width: '100%',
@@ -1481,9 +1510,9 @@ var Product_itemtype = function Product_itemtype(props) {
1481
1510
  style: {
1482
1511
  textAlign: langdetect == 'en' ? 'left' : 'right'
1483
1512
  }
1484
- }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.deliverydatetext)), /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
1513
+ }, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer16 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : (_fetchProductInfoQuer17 = _fetchProductInfoQuer16.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.productinfo) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : _fetchProductInfoQuer18.deliverydatetext)), /*#__PURE__*/React__default["default"].createElement(ProductHeaderPricing, {
1485
1514
  actions: props.actions
1486
- }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
1515
+ }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer19 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : (_fetchProductInfoQuer20 = _fetchProductInfoQuer19.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.productinfo) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : _fetchProductInfoQuer21.hasvariants) == 1 && sectionproperties.productInformationType == 'Profile' && /*#__PURE__*/React__default["default"].createElement("div", {
1487
1516
  className: "row m-0 w-100 d-flex align-items-start"
1488
1517
  }, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
1489
1518
  return /*#__PURE__*/React__default["default"].createElement("div", {
@@ -1577,11 +1606,11 @@ var Product_itemtype = function Product_itemtype(props) {
1577
1606
  }, /*#__PURE__*/React__default["default"].createElement("span", {
1578
1607
  className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
1579
1608
  onClick: function onClick() {
1580
- var tempaddtocardpayloadobj = _objectSpread$1_({}, addtocardpayloadobj);
1609
+ var tempaddtocardpayloadobj = _objectSpread$20({}, addtocardpayloadobj);
1581
1610
  if (tempaddtocardpayloadobj.quantity > 0) {
1582
1611
  tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
1583
1612
  }
1584
- setaddtocardpayloadobj(_objectSpread$1_({}, tempaddtocardpayloadobj));
1613
+ setaddtocardpayloadobj(_objectSpread$20({}, tempaddtocardpayloadobj));
1585
1614
  }
1586
1615
  }, /*#__PURE__*/React__default["default"].createElement("i", {
1587
1616
  className: "fa fa-chevron-down",
@@ -1593,9 +1622,9 @@ var Product_itemtype = function Product_itemtype(props) {
1593
1622
  }, addtocardpayloadobj.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
1594
1623
  className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
1595
1624
  onClick: function onClick() {
1596
- var tempaddtocardpayloadobj = _objectSpread$1_({}, addtocardpayloadobj);
1625
+ var tempaddtocardpayloadobj = _objectSpread$20({}, addtocardpayloadobj);
1597
1626
  tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
1598
- setaddtocardpayloadobj(_objectSpread$1_({}, tempaddtocardpayloadobj));
1627
+ setaddtocardpayloadobj(_objectSpread$20({}, tempaddtocardpayloadobj));
1599
1628
  }
1600
1629
  }, /*#__PURE__*/React__default["default"].createElement("i", {
1601
1630
  className: "fa fa-chevron-up",
@@ -1796,8 +1825,8 @@ var Product_itemtype = function Product_itemtype(props) {
1796
1825
  }, StoreInfoprops())))));
1797
1826
  };
1798
1827
 
1799
- function ownKeys$1Z(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1800
- function _objectSpread$1Z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Z(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1828
+ function ownKeys$1$(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
1829
+ function _objectSpread$1$(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1$(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1$(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1801
1830
  var Serviceinfotabs = function Serviceinfotabs(props) {
1802
1831
  var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24;
1803
1832
  var langdetect = props.actions.langdetect;
@@ -1838,7 +1867,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
1838
1867
  slots = _useState6[0],
1839
1868
  setslots = _useState6[1];
1840
1869
  React.useEffect(function () {
1841
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
1870
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
1842
1871
  item_type: 'service'
1843
1872
  }));
1844
1873
  }, [tabsarray]);
@@ -1850,16 +1879,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
1850
1879
  if (diffDays.toString() != 'NaN') {
1851
1880
  if (date2 <= date1) {
1852
1881
  NotificationManager.warning('', 'Please choose another date.');
1853
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
1882
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
1854
1883
  quantity: 0
1855
1884
  }));
1856
1885
  } else {
1857
1886
  if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
1858
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
1887
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
1859
1888
  quantity: diffDays
1860
1889
  }));
1861
1890
  } else {
1862
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
1891
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
1863
1892
  quantity: 0
1864
1893
  }));
1865
1894
  NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
@@ -1995,7 +2024,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
1995
2024
  min: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer9 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : (_fetchProductInfoQuer10 = _fetchProductInfoQuer9.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.productinfo) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.serviceinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.reservationstarts,
1996
2025
  max: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer13 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : (_fetchProductInfoQuer14 = _fetchProductInfoQuer13.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.productinfo) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.serviceinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.reservationends,
1997
2026
  onChange: function onChange(event) {
1998
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
2027
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
1999
2028
  from: event.target.value
2000
2029
  }));
2001
2030
  }
@@ -2015,7 +2044,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
2015
2044
  min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
2016
2045
  max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
2017
2046
  onChange: function onChange(event) {
2018
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
2047
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
2019
2048
  to: event.target.value
2020
2049
  }));
2021
2050
  }
@@ -2035,7 +2064,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
2035
2064
  min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
2036
2065
  max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
2037
2066
  onChange: function onChange(event) {
2038
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
2067
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
2039
2068
  date: event.target.value
2040
2069
  }));
2041
2070
  setcurrentmutatestate('/fetchserviceslots');
@@ -2086,7 +2115,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
2086
2115
  color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
2087
2116
  },
2088
2117
  onClick: function onClick() {
2089
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
2118
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
2090
2119
  time: item.slot
2091
2120
  }));
2092
2121
  }
@@ -2095,7 +2124,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
2095
2124
  }, /*#__PURE__*/React__default["default"].createElement("button", {
2096
2125
  "class": TabsStyles.booknow_btn_resp + ' allcentered ',
2097
2126
  onClick: function onClick() {
2098
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
2127
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
2099
2128
  time: item.slot
2100
2129
  }));
2101
2130
  }
@@ -2137,7 +2166,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
2137
2166
  "class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
2138
2167
  style: {},
2139
2168
  onClick: function onClick() {
2140
- setaddtocardpayloadobj(_objectSpread$1Z(_objectSpread$1Z({}, addtocardpayloadobj), {}, {
2169
+ setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
2141
2170
  time: item.slot
2142
2171
  }));
2143
2172
  }
@@ -2680,10 +2709,520 @@ var Service_itemtype = function Service_itemtype(props) {
2680
2709
  }, StoreInfoprops()))));
2681
2710
  };
2682
2711
 
2712
+ function ownKeys$1_(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2713
+ function _objectSpread$1_(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1_(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1_(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2714
+ var AddReview = function AddReview(props) {
2715
+ var _css;
2716
+ var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2717
+ props.actions;
2718
+ props.actions.lang;
2719
+ var langdetect = props.actions.langdetect;
2720
+ var productid = props.actions.productid;
2721
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
2722
+ var NotificationManager = props.actions.NotificationManager;
2723
+ var canuserreview = props.actions.canuserreview;
2724
+ var addreviewcallback = props.actions.addreviewcallback;
2725
+ var ikimagecredcontext = props.actions.ikimagecredcontext;
2726
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
2727
+ var pageindexcontext = props.actions.pageindexcontext;
2728
+ var setpageindexcontext = props.actions.setpageindexcontext;
2729
+ var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
2730
+ var templatepropcontext = props.actions.templatepropcontext;
2731
+ var _useState = React.useState(''),
2732
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
2733
+ sectionproperties = _useState2[0],
2734
+ setsectionproperties = _useState2[1];
2735
+ var _useState3 = React.useState(''),
2736
+ _useState4 = _slicedToArray__default["default"](_useState3, 2);
2737
+ _useState4[0];
2738
+ var setCurrentPageId = _useState4[1];
2739
+ var _useState5 = React.useState({
2740
+ reviewtitle: '',
2741
+ reviewbody: '',
2742
+ reviewrate: 0,
2743
+ reviewname: '',
2744
+ hasreview: 0
2745
+ }),
2746
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
2747
+ reviewpayloadobj = _useState6[0],
2748
+ setreviewpayloadobj = _useState6[1];
2749
+ React.useEffect(function () {
2750
+ var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
2751
+ return x.staticpageid == '63fcbef36eebe';
2752
+ });
2753
+ if (cartindex >= 0) {
2754
+ setpageindexcontext(cartindex);
2755
+ setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
2756
+ if (props.srcfromprops != 'templatedraftrouter') {
2757
+ setCurrentPageIdContext(templatepropcontext.pagesnprop[cartindex].pageid);
2758
+ }
2759
+ }
2760
+ }, []);
2761
+ React.useEffect(function () {
2762
+ if (Object.keys(StatePagePropertiesContext).length != 0) {
2763
+ var secpropobj = {};
2764
+ StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
2765
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2766
+ });
2767
+ setsectionproperties(_objectSpread$1_({}, secpropobj));
2768
+ }
2769
+ }, [StatePagePropertiesContext]);
2770
+ React.useEffect(function () {
2771
+ var _templatepropcontext$, _templatepropcontext$2;
2772
+ var secpropobj = {};
2773
+ templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[pageindexcontext]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
2774
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2775
+ });
2776
+ setsectionproperties(_objectSpread$1_({}, secpropobj));
2777
+ }, [pageindexcontext]);
2778
+ var reviewstyles = {
2779
+ submitreviewbtn: glamor.css({
2780
+ width: sectionproperties.reviewbtn_width + 'px',
2781
+ height: sectionproperties.reviewbtn_height + 'px',
2782
+ borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
2783
+ fontSize: sectionproperties.reviewbtn_fontsize + 'px',
2784
+ color: sectionproperties.reviewbtn_color,
2785
+ fontWeight: sectionproperties.reviewbtn_fontweight,
2786
+ backgroundColor: sectionproperties.reviewbtn_bgcolor,
2787
+ border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
2788
+ ':hover': {
2789
+ transition: '.3s',
2790
+ backgroundColor: sectionproperties.reviewbtn_bgcoloronhover,
2791
+ color: sectionproperties.reviewbtn_coloronhover
2792
+ }
2793
+ }),
2794
+ form_control: glamor.css((_css = {
2795
+ position: 'relative',
2796
+ display: 'flex',
2797
+ alignItems: 'center'
2798
+ }, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 10px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty__default["default"](_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty__default["default"](_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty__default["default"](_css, "background", sectionproperties.input_bgcolor), _defineProperty__default["default"](_css, "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_css, ':focus', {
2799
+ borderColor: sectionproperties.inputfeildbordercoloronfocus
2800
+ }), _defineProperty__default["default"](_css, ':focus .login_input_icon', {
2801
+ color: sectionproperties.inputfeildbordercoloronfocus
2802
+ }), _css)),
2803
+ inputfield_label: glamor.css({
2804
+ color: sectionproperties.form_labelcolor,
2805
+ fontWeight: sectionproperties.form_labelfontweight,
2806
+ fontSize: sectionproperties.form_labelfontsize + 'px',
2807
+ textTransform: sectionproperties.form_labeltexttransform,
2808
+ marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
2809
+ }),
2810
+ reviewbutton: glamor.css({
2811
+ width: sectionproperties.reviewbtn_width + 'px',
2812
+ height: sectionproperties.reviewbtn_height + 'px',
2813
+ background: sectionproperties.reviewbtn_bgcolor,
2814
+ color: sectionproperties.reviewbtn_color,
2815
+ fontSize: sectionproperties.reviewbtn_fontsize + 'px',
2816
+ borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
2817
+ border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
2818
+ fontWeight: sectionproperties.reviewbtn_fontweight,
2819
+ ':hover': {
2820
+ transition: '.3s',
2821
+ color: sectionproperties.reviewbtn_coloronhover,
2822
+ borderColor: sectionproperties.reviewbtn_coloronhover,
2823
+ backgroundColor: sectionproperties.reviewbtn_bgcoloronhover
2824
+ }
2825
+ }),
2826
+ productname: glamor.css({
2827
+ fontSize: sectionproperties.prodNameFontSize + 'px',
2828
+ textTransform: sectionproperties.prodNameTextTranform,
2829
+ fontWeight: sectionproperties.prodNameFontWeight,
2830
+ color: sectionproperties.prodNameColor
2831
+ })
2832
+ };
2833
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2834
+ className: 'row w-100 ml-0 mr-0 pb-5',
2835
+ style: {
2836
+ marginTop: sectionproperties.marginTop + 'px'
2837
+ }
2838
+ }, sectionproperties.sectionTitleFontSize != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2839
+ "class": "row m-0 w-100 mt-3"
2840
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2841
+ "class": "col-lg-12 p-0 allcentered"
2842
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2843
+ "class": "m-0 p-0",
2844
+ style: {
2845
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
2846
+ color: sectionproperties.sectionTitleColor,
2847
+ fontWeight: sectionproperties.sectionTitleFontWeight
2848
+ }
2849
+ }, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
2850
+ "class": "col-lg-12"
2851
+ }, /*#__PURE__*/React__default["default"].createElement("hr", null))), /*#__PURE__*/React__default["default"].createElement("div", {
2852
+ "class": "col-lg-12 mb-3"
2853
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2854
+ "class": "row m-0 w-100 d-flex justify-content-start align-items-center"
2855
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2856
+ "class": "d-flex justify-content-start align-items-center",
2857
+ style: {
2858
+ width: '9vh',
2859
+ height: '9vh'
2860
+ }
2861
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
2862
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
2863
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
2864
+ path: fetchProductInfoQueryContext.data.data.productinfo.productmainimage,
2865
+ style: {
2866
+ width: '100%',
2867
+ height: '100%',
2868
+ objectFit: 'contain'
2869
+ },
2870
+ loading: "lazy"
2871
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
2872
+ "class": "col-lg-9 co-md-9 col-sm-9 d-flex justify-content-start align-items-center"
2873
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2874
+ "class": "row m-0 w-100"
2875
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2876
+ "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
2877
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2878
+ "class": reviewstyles.productname + ' m-0 p-0 '
2879
+ }, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
2880
+ "class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
2881
+ }, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
2882
+ count: 5,
2883
+ value: reviewpayloadobj.reviewrate,
2884
+ size: 18,
2885
+ emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
2886
+ className: "far fa-star",
2887
+ style: {
2888
+ color: '#bfbfbf'
2889
+ }
2890
+ }),
2891
+ halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
2892
+ className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
2893
+ }),
2894
+ filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
2895
+ className: "fa fa-star",
2896
+ style: {
2897
+ color: '#FAB400'
2898
+ }
2899
+ }),
2900
+ activeColor: "#ffd700",
2901
+ onChange: function onChange(event) {
2902
+ var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
2903
+ tempreviewpayloadobj.reviewrate = event;
2904
+ setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
2905
+ }
2906
+ })))))), /*#__PURE__*/React__default["default"].createElement("div", {
2907
+ "class": "col-lg-12"
2908
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2909
+ "class": "row m-0 w-100"
2910
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2911
+ "class": "col-lg-12 mb-4"
2912
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
2913
+ className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
2914
+ }, langdetect == 'en' ? 'Your Name' : 'اسمك'), /*#__PURE__*/React__default["default"].createElement("input", {
2915
+ "class": reviewstyles.form_control,
2916
+ value: reviewpayloadobj.reviewname,
2917
+ onChange: function onChange(event) {
2918
+ var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
2919
+ tempreviewpayloadobj.reviewname = event.target.value;
2920
+ setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
2921
+ }
2922
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
2923
+ "class": "col-lg-12 mb-4"
2924
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
2925
+ className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
2926
+ }, langdetect == 'en' ? 'Review title' : 'عنوان التقييم'), /*#__PURE__*/React__default["default"].createElement("input", {
2927
+ "class": reviewstyles.form_control,
2928
+ value: reviewpayloadobj.reviewtitle,
2929
+ onChange: function onChange(event) {
2930
+ var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
2931
+ tempreviewpayloadobj.reviewtitle = event.target.value;
2932
+ setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
2933
+ }
2934
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
2935
+ "class": "col-lg-12 mb-4"
2936
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
2937
+ className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
2938
+ }, langdetect == 'en' ? 'Your Review' : 'تقييمك'), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
2939
+ type: 'text',
2940
+ "class": reviewstyles.form_control + ' form_control ',
2941
+ value: reviewpayloadobj.reviewbody,
2942
+ onChange: function onChange(event) {
2943
+ var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
2944
+ tempreviewpayloadobj.reviewbody = event.target.value;
2945
+ setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
2946
+ },
2947
+ style: {
2948
+ resize: 'none',
2949
+ minRows: 5
2950
+ }
2951
+ })))), canuserreview && /*#__PURE__*/React__default["default"].createElement("div", {
2952
+ "class": "col-lg-12 allcentered mt-3"
2953
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
2954
+ "class": "".concat(reviewstyles.submitreviewbtn),
2955
+ onClick: function onClick() {
2956
+ if (reviewpayloadobj.reviewtitle.length != 0 && reviewpayloadobj.reviewbody.length != 0 && reviewpayloadobj.reviewrate.length != 0 && parseInt(reviewpayloadobj.reviewrate) > 0 && reviewpayloadobj.reviewname.length != 0) {
2957
+ GeneralAPIMutationContext.mutate({
2958
+ endpointurl: '/addproductreview',
2959
+ productid: productid,
2960
+ reviewpayloadobj: reviewpayloadobj,
2961
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
2962
+ if (data.data.status) {
2963
+ NotificationManager.success('', 'Success');
2964
+ addreviewcallback();
2965
+ } else {
2966
+ NotificationManager.warning('', data.data.reason);
2967
+ }
2968
+ }
2969
+ });
2970
+ } else {
2971
+ NotificationManager.warning('', langdetect == 'en' ? 'Please complete the missing fields' : 'من فضلك اكمل باقى البيانات');
2972
+
2973
+ // alert('Please fill the missing fields');
2974
+ }
2975
+ }
2976
+ }, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
2977
+ };
2978
+
2979
+ function ownKeys$1Z(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2980
+ function _objectSpread$1Z(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Z(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Z(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2981
+ var ProductReviews = function ProductReviews(props) {
2982
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
2983
+ props.actions.lang;
2984
+ var langdetect = props.actions.langdetect;
2985
+ var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
2986
+ var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
2987
+ props.actions.NotificationManager;
2988
+ var sectionproperties = props.actions.sectionproperties;
2989
+ var actions = props.actions;
2990
+ var productid = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productid;
2991
+ var productinfo_cssstyles = props.actions.productinfo_cssstyles;
2992
+ var _useState = React.useState(false),
2993
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
2994
+ canuserreview = _useState2[0],
2995
+ setcanuserreview = _useState2[1];
2996
+ var _useState3 = React.useState(false),
2997
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
2998
+ openreviewmodal = _useState4[0],
2999
+ setopenreviewmodal = _useState4[1];
3000
+ var _useState5 = React.useState('all'),
3001
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
3002
+ filterproductreviews = _useState6[0],
3003
+ setfilterproductreviews = _useState6[1];
3004
+ var _useState7 = React.useState([]),
3005
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
3006
+ productreviews = _useState8[0],
3007
+ setproductreviews = _useState8[1];
3008
+ React.useEffect(function () {
3009
+ if (fetchProductInfoQueryContext.isSuccess) {
3010
+ getreviewsassignermutationfunc();
3011
+ }
3012
+ }, [filterproductreviews]);
3013
+ var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
3014
+ var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
3015
+ GeneralAPIMutationContext.mutate({
3016
+ endpointurl: '/fetchproductreviews',
3017
+ productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.productid,
3018
+ filterproductreviews: filterproductreviews,
3019
+ mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
3020
+ if (data.data.status) {
3021
+ setproductreviews(data.data.productreviews);
3022
+ setcanuserreview(data.data.canuserAddReview);
3023
+ }
3024
+ }
3025
+ });
3026
+ };
3027
+ var addreviewcallback = function addreviewcallback() {
3028
+ setopenreviewmodal(false);
3029
+ getreviewsassignermutationfunc();
3030
+ fetchProductInfoQueryContext.refetch();
3031
+ };
3032
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3033
+ className: 'row w-100 ml-0 mr-0',
3034
+ style: {
3035
+ marginTop: sectionproperties.marginTop + 'px'
3036
+ }
3037
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3038
+ "class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0 plr-1025-0"
3039
+ }, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
3040
+ "class": "col-lg-12 allcentered",
3041
+ style: {
3042
+ height: '20vh'
3043
+ }
3044
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.Messaging, {
3045
+ color: "#ccc",
3046
+ width: "10px",
3047
+ height: "10px",
3048
+ duration: "1s"
3049
+ })), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
3050
+ "class": "row m-0 w-100"
3051
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3052
+ "class": "col-lg-3"
3053
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3054
+ "class": "row m-0 w-100 allcentered"
3055
+ }, canuserreview && /*#__PURE__*/React__default["default"].createElement("div", {
3056
+ "class": "col-lg-12 allcentered mb-3 p-0"
3057
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
3058
+ "class": "".concat(productinfo_cssstyles.reviewbutton) + ' ',
3059
+ onClick: function onClick() {
3060
+ setopenreviewmodal(true);
3061
+ }
3062
+ }, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)), /*#__PURE__*/React__default["default"].createElement("div", {
3063
+ "class": "col-lg-12 p-0 mb-3"
3064
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3065
+ "class": "row m-0 w-100 py-3 px-2",
3066
+ style: {
3067
+ borderRadius: 10,
3068
+ background: '#eee'
3069
+ }
3070
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3071
+ "class": "col-lg-12 p-0 allcentered"
3072
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3073
+ "class": "m-0 font-weight-600 text-uppercase",
3074
+ style: {
3075
+ fontSize: '17px'
3076
+ }
3077
+ }, langdetect == 'en' ? 'Overall Ratings' : 'جميع التقييمات')), /*#__PURE__*/React__default["default"].createElement("div", {
3078
+ "class": "col-lg-12 pl-3 pr-3"
3079
+ }, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
3080
+ "class": "col-lg-12 p-0 allcentered"
3081
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3082
+ "class": "m-0 p-0 font-weight-600",
3083
+ style: {
3084
+ fontSize: '20px'
3085
+ }
3086
+ }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : _fetchProductInfoQuer9.productoverallrate, "/5")), /*#__PURE__*/React__default["default"].createElement("div", {
3087
+ "class": "col-lg-12 p-0 allcentered"
3088
+ }, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
3089
+ count: 5,
3090
+ value: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer10 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : (_fetchProductInfoQuer11 = _fetchProductInfoQuer10.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.productinfo) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : _fetchProductInfoQuer12.productoverallrate,
3091
+ edit: false,
3092
+ size: 18,
3093
+ emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3094
+ className: "far fa-star",
3095
+ style: {
3096
+ color: '#bfbfbf'
3097
+ }
3098
+ }),
3099
+ halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3100
+ className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
3101
+ }),
3102
+ filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3103
+ className: "fa fa-star",
3104
+ style: {
3105
+ color: '#FAB400'
3106
+ }
3107
+ }),
3108
+ activeColor: "#ffd700"
3109
+ })))), /*#__PURE__*/React__default["default"].createElement("div", {
3110
+ "class": "col-lg-12 p-0 d-flex justify-content-start mb-3"
3111
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3112
+ "class": "row m-0 w-100 py-3 px-2",
3113
+ style: {
3114
+ borderRadius: 10,
3115
+ background: '#eee'
3116
+ }
3117
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3118
+ "class": "col-lg-12 p-0 allcentered"
3119
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3120
+ "class": "m-0 font-weight-600 text-uppercase",
3121
+ style: {
3122
+ fontSize: '17px'
3123
+ }
3124
+ }, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React__default["default"].createElement("div", {
3125
+ "class": "col-lg-12 pl-3 pr-3"
3126
+ }, /*#__PURE__*/React__default["default"].createElement("hr", null)), /*#__PURE__*/React__default["default"].createElement("div", {
3127
+ "class": "col-lg-12 d-flex justify-content-center"
3128
+ }, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
3129
+ count: 5,
3130
+ value: filterproductreviews
3131
+ // edit={false}
3132
+ ,
3133
+ size: 18,
3134
+ emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3135
+ className: "far fa-star",
3136
+ style: {
3137
+ color: '#bfbfbf'
3138
+ }
3139
+ }),
3140
+ halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3141
+ className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
3142
+ }),
3143
+ filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3144
+ className: "fa fa-star",
3145
+ style: {
3146
+ color: '#FAB400'
3147
+ }
3148
+ }),
3149
+ activeColor: "#ffd700",
3150
+ onChange: function onChange(event) {
3151
+ setfilterproductreviews(event);
3152
+ }
3153
+ })))))), /*#__PURE__*/React__default["default"].createElement("div", {
3154
+ "class": "col-lg-9"
3155
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3156
+ "class": "row m-0 w-100"
3157
+ }, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
3158
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3159
+ "class": "col-lg-12 flex-column"
3160
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3161
+ "class": "row m-0 w-100"
3162
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3163
+ "class": "col-lg-12 d-flex justify-content-start p-0 mb-2"
3164
+ }, /*#__PURE__*/React__default["default"].createElement(ReactStars__default["default"], {
3165
+ count: 5,
3166
+ value: reviewitem.review_rating,
3167
+ edit: false,
3168
+ size: 18,
3169
+ emptyIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3170
+ className: "far fa-star",
3171
+ style: {
3172
+ color: '#bfbfbf'
3173
+ }
3174
+ }),
3175
+ halfIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3176
+ className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
3177
+ }),
3178
+ filledIcon: /*#__PURE__*/React__default["default"].createElement("i", {
3179
+ className: "fa fa-star",
3180
+ style: {
3181
+ color: '#FAB400'
3182
+ }
3183
+ }),
3184
+ activeColor: "#ffd700"
3185
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3186
+ "class": "col-lg-12 p-0 mb-2 d-flex justify-content-start "
3187
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3188
+ "class": "m-0 p-0 font-weight-600",
3189
+ style: {
3190
+ fontSize: '17px'
3191
+ }
3192
+ }, reviewitem.reviewtitle)), /*#__PURE__*/React__default["default"].createElement("div", {
3193
+ "class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
3194
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3195
+ "class": "m-0 p-0 font-weight-500"
3196
+ }, reviewitem.reviewbody)), /*#__PURE__*/React__default["default"].createElement("div", {
3197
+ "class": "col-lg-6 d-flex align-items-center justify-content-start p-0"
3198
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3199
+ "class": "m-0 p-0 font-weight-600"
3200
+ }, langdetect == 'en' ? 'By' : 'عن طريق', ": ", reviewitem.review_name)), /*#__PURE__*/React__default["default"].createElement("div", {
3201
+ "class": "col-lg-6 d-flex align-items-center justify-content-end justify-content-md-start p-0 font-weight-500 text-light"
3202
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
3203
+ "class": "fa fa-clock text-light ml-2 mr-2"
3204
+ }), " ", reviewitem.timestamp)), /*#__PURE__*/React__default["default"].createElement("hr", null));
3205
+ }))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
3206
+ show: openreviewmodal,
3207
+ onHide: function onHide() {
3208
+ return setopenreviewmodal(false);
3209
+ },
3210
+ centered: true,
3211
+ size: "md",
3212
+ "class": "reviewmodal"
3213
+ }, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
3214
+ actions: _objectSpread$1Z(_objectSpread$1Z({}, actions), {}, {
3215
+ productid: productid,
3216
+ canuserreview: canuserreview,
3217
+ addreviewcallback: addreviewcallback
3218
+ })
3219
+ }))));
3220
+ };
3221
+
2683
3222
  function ownKeys$1Y(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2684
3223
  function _objectSpread$1Y(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1Y(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1Y(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2685
3224
  var Productinfo = function Productinfo(props) {
2686
- var _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer96, _fetchProductInfoQuer97, _fetchProductInfoQuer98;
3225
+ var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _fetchProductInfoQuer55, _fetchProductInfoQuer56, _fetchProductInfoQuer57, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8;
2687
3226
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2688
3227
  var lang = props.actions.lang;
2689
3228
  var langdetect = props.actions.langdetect;
@@ -2705,6 +3244,7 @@ var Productinfo = function Productinfo(props) {
2705
3244
  var setpageindexcontext = props.actions.setpageindexcontext;
2706
3245
  var authdetailsContext = props.actions.authdetailsContext;
2707
3246
  var ikimagecredcontext = props.actions.ikimagecredcontext;
3247
+ var actions = props.actions;
2708
3248
  var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
2709
3249
  var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
2710
3250
  var NotificationManager = props.actions.NotificationManager;
@@ -2726,13 +3266,13 @@ var Productinfo = function Productinfo(props) {
2726
3266
  ProductInfoObj = _useState8[0],
2727
3267
  setProductInfoObj = _useState8[1];
2728
3268
  var _useState9 = React.useState('all'),
2729
- _useState10 = _slicedToArray__default["default"](_useState9, 2),
2730
- filterproductreviews = _useState10[0],
2731
- setfilterproductreviews = _useState10[1];
3269
+ _useState10 = _slicedToArray__default["default"](_useState9, 2);
3270
+ _useState10[0];
3271
+ _useState10[1];
2732
3272
  var _useState11 = React.useState([]),
2733
- _useState12 = _slicedToArray__default["default"](_useState11, 2),
2734
- productreviews = _useState12[0],
2735
- setproductreviews = _useState12[1];
3273
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
3274
+ _useState12[0];
3275
+ _useState12[1];
2736
3276
  var _useState13 = React.useState([]),
2737
3277
  _useState14 = _slicedToArray__default["default"](_useState13, 2),
2738
3278
  Relatedproducts = _useState14[0],
@@ -2773,12 +3313,16 @@ var Productinfo = function Productinfo(props) {
2773
3313
  setShowMore = _useState26[1];
2774
3314
  var _useState27 = React.useState(0),
2775
3315
  _useState28 = _slicedToArray__default["default"](_useState27, 2),
2776
- tabIndex = _useState28[0],
2777
- setTabIndex = _useState28[1];
2778
- var _useState29 = React.useState('descriptiontab'),
3316
+ currentshowingimageindex = _useState28[0],
3317
+ setcurrentshowingimageindex = _useState28[1];
3318
+ var _useState29 = React.useState(0),
2779
3319
  _useState30 = _slicedToArray__default["default"](_useState29, 2),
2780
- tabname = _useState30[0],
2781
- settabname = _useState30[1];
3320
+ tabIndex = _useState30[0],
3321
+ setTabIndex = _useState30[1];
3322
+ var _useState31 = React.useState('descriptiontab'),
3323
+ _useState32 = _slicedToArray__default["default"](_useState31, 2),
3324
+ tabname = _useState32[0],
3325
+ settabname = _useState32[1];
2782
3326
  var handleTabChange = function handleTabChange(event, newTabIndex) {
2783
3327
  setTabIndex(newTabIndex);
2784
3328
  };
@@ -2836,41 +3380,17 @@ var Productinfo = function Productinfo(props) {
2836
3380
  tempfetchproductinfoObjContext.productid = productid;
2837
3381
  setfetchproductinfoObjContext(_objectSpread$1Y({}, tempfetchproductinfoObjContext));
2838
3382
  };
2839
- React.useEffect(function () {
2840
- if (fetchProductInfoQueryContext.isSuccess && tabname == 'reviewstab') {
2841
- if (Array.isArray(productreviews) && productreviews.length == 0) {
2842
- getreviewsassignermutationfunc();
2843
- }
2844
- }
2845
- }, [tabname, fetchProductInfoQueryContext.isSuccess]);
2846
- React.useEffect(function () {
2847
- if (fetchProductInfoQueryContext.isSuccess && tabname == 'reviewstab') {
2848
- getreviewsassignermutationfunc();
2849
- }
2850
- }, [filterproductreviews]);
2851
- var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
2852
- var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3;
2853
- GeneralAPIMutationContext.mutate({
2854
- endpointurl: '/fetchproductreviews',
2855
- productid: fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.productid,
2856
- filterproductreviews: filterproductreviews,
2857
- mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
2858
- if (data.data.status) {
2859
- setproductreviews(data.data.productreviews);
2860
- }
2861
- }
2862
- });
2863
- };
2864
3383
  React.useEffect(function () {
2865
3384
  if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess) {
2866
3385
  if (fetchProductInfoQueryContext.data.data.productinfo != null) {
2867
- var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10;
3386
+ var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
2868
3387
  var tempproductimagesarray = [];
2869
3388
  if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
2870
3389
  fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
2871
3390
  var productimagesarrayobj = {
2872
3391
  thumbnail: serverbaselink + arrayItem.path,
2873
- original: serverbaselink + arrayItem.path
3392
+ original: serverbaselink + arrayItem.path,
3393
+ galleryid: arrayItem.galleryid
2874
3394
  // description:
2875
3395
  // // { dangerouslySetInnerHTML={{
2876
3396
  // // __html:
@@ -2888,7 +3408,7 @@ var Productinfo = function Productinfo(props) {
2888
3408
  tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
2889
3409
  setaddtocardpayloadobj(_objectSpread$1Y({}, tempaddtocardpayloadobj));
2890
3410
  setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
2891
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : _fetchProductInfoQuer6.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer7 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : (_fetchProductInfoQuer8 = _fetchProductInfoQuer7.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.productinfo) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : (_fetchProductInfoQuer10 = _fetchProductInfoQuer9.maintagid) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.length) != 0) {
3411
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer === void 0 ? void 0 : (_fetchProductInfoQuer2 = _fetchProductInfoQuer.data) === null || _fetchProductInfoQuer2 === void 0 ? void 0 : (_fetchProductInfoQuer3 = _fetchProductInfoQuer2.productinfo) === null || _fetchProductInfoQuer3 === void 0 ? void 0 : _fetchProductInfoQuer3.maintagid) != null && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer4 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer4 === void 0 ? void 0 : (_fetchProductInfoQuer5 = _fetchProductInfoQuer4.data) === null || _fetchProductInfoQuer5 === void 0 ? void 0 : (_fetchProductInfoQuer6 = _fetchProductInfoQuer5.productinfo) === null || _fetchProductInfoQuer6 === void 0 ? void 0 : (_fetchProductInfoQuer7 = _fetchProductInfoQuer6.maintagid) === null || _fetchProductInfoQuer7 === void 0 ? void 0 : _fetchProductInfoQuer7.length) != 0) {
2892
3412
  GeneralAPIMutationContext.mutate({
2893
3413
  endpointurl: '/FetchRelatedProducts',
2894
3414
  tagid: fetchProductInfoQueryContext.data.data.productinfo.maintagid,
@@ -3050,6 +3570,13 @@ var Productinfo = function Productinfo(props) {
3050
3570
  variantid = variantobj.variantid;
3051
3571
  var tempaddtocardpayloadobj = _objectSpread$1Y({}, addtocardpayloadobj);
3052
3572
  tempaddtocardpayloadobj.variantid = variantid;
3573
+ var variantimageindex = 0;
3574
+ productimagesarray === null || productimagesarray === void 0 ? void 0 : productimagesarray.forEach(function (tempimageitem, tempimageindex) {
3575
+ if (tempimageitem.galleryid == (variantobj === null || variantobj === void 0 ? void 0 : variantobj.variantgalleryid)) {
3576
+ variantimageindex = tempimageindex;
3577
+ }
3578
+ });
3579
+ setcurrentshowingimageindex(variantimageindex);
3053
3580
  setaddtocardpayloadobj(_objectSpread$1Y({}, tempaddtocardpayloadobj));
3054
3581
  setvariantindexcompleted(ProductVariantIndex);
3055
3582
  }
@@ -3061,8 +3588,8 @@ var Productinfo = function Productinfo(props) {
3061
3588
  var addtocartfunc = function addtocartfunc() {
3062
3589
  var runfunc = false;
3063
3590
  if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
3064
- var _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13;
3065
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : (_fetchProductInfoQuer13 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.hasvariants) == 1) {
3591
+ var _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10;
3592
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer8 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer8 === void 0 ? void 0 : (_fetchProductInfoQuer9 = _fetchProductInfoQuer8.data) === null || _fetchProductInfoQuer9 === void 0 ? void 0 : (_fetchProductInfoQuer10 = _fetchProductInfoQuer9.productinfo) === null || _fetchProductInfoQuer10 === void 0 ? void 0 : _fetchProductInfoQuer10.hasvariants) == 1) {
3066
3593
  if (addtocardpayloadobj.variantid.length != 0) {
3067
3594
  runfunc = true;
3068
3595
  } else {
@@ -3185,6 +3712,54 @@ var Productinfo = function Productinfo(props) {
3185
3712
  }
3186
3713
  };
3187
3714
  var productinfo_cssstyles = {
3715
+ submitreviewbtn: glamor.css({
3716
+ width: sectionproperties.applybtn_width + 'px',
3717
+ height: sectionproperties.applybtn_height + 'px',
3718
+ borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
3719
+ fontSize: sectionproperties.applybtn_fontsize + 'px',
3720
+ color: sectionproperties.applybtn_textColor,
3721
+ fontWeight: sectionproperties.applybtn_Textfontweight,
3722
+ backgroundColor: sectionproperties.applybtn_bgColor,
3723
+ border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
3724
+ textTransform: sectionproperties.applybtn_texttransform,
3725
+ ':hover': {
3726
+ transition: '.3s',
3727
+ backgroundColor: sectionproperties.applybtn_bgColoronhover,
3728
+ color: sectionproperties.applybtn_Textcoloronhover
3729
+ }
3730
+ }),
3731
+ form_control: glamor.css((_css = {
3732
+ position: 'relative',
3733
+ display: 'flex',
3734
+ alignItems: 'center'
3735
+ }, _defineProperty__default["default"](_css, "display", 'block'), _defineProperty__default["default"](_css, "width", '100%'), _defineProperty__default["default"](_css, "padding", '0 10px'), _defineProperty__default["default"](_css, "transition", '.3s'), _defineProperty__default["default"](_css, "fontWeight", 500), _defineProperty__default["default"](_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty__default["default"](_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty__default["default"](_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty__default["default"](_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty__default["default"](_css, "background", sectionproperties.input_bgcolor), _defineProperty__default["default"](_css, "color", sectionproperties.inputfieldcolor), _defineProperty__default["default"](_css, ':focus', {
3736
+ borderColor: sectionproperties.inputfeildbordercoloronfocus
3737
+ }), _defineProperty__default["default"](_css, ':focus .login_input_icon', {
3738
+ color: sectionproperties.inputfeildbordercoloronfocus
3739
+ }), _css)),
3740
+ inputfield_label: glamor.css({
3741
+ color: sectionproperties.form_labelcolor,
3742
+ fontWeight: sectionproperties.form_labelfontweight,
3743
+ fontSize: sectionproperties.form_labelfontsize + 'px',
3744
+ textTransform: sectionproperties.form_labeltexttransform,
3745
+ marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
3746
+ }),
3747
+ reviewbutton: glamor.css({
3748
+ width: sectionproperties.reviewbtn_width + 'px',
3749
+ height: sectionproperties.reviewbtn_height + 'px',
3750
+ background: sectionproperties.reviewbtn_bgcolor,
3751
+ color: sectionproperties.reviewbtn_color,
3752
+ fontSize: sectionproperties.reviewbtn_fontsize + 'px',
3753
+ borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
3754
+ border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
3755
+ fontWeight: sectionproperties.reviewbtn_fontweight,
3756
+ ':hover': {
3757
+ transition: '.3s',
3758
+ color: sectionproperties.reviewbtn_coloronhover,
3759
+ borderColor: sectionproperties.reviewbtn_coloronhover,
3760
+ backgroundColor: sectionproperties.reviewbtn_bgcoloronhover
3761
+ }
3762
+ }),
3188
3763
  before: glamor.css({
3189
3764
  ':before': {
3190
3765
  background: sectionproperties.activetabbordercolor
@@ -3397,24 +3972,24 @@ var Productinfo = function Productinfo(props) {
3397
3972
  })
3398
3973
  };
3399
3974
  var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
3400
- var _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23, _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26;
3975
+ var _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
3401
3976
  var price = 0;
3402
3977
  var quantityconditions = [];
3403
3978
  var quantity = 0;
3404
3979
  if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
3405
3980
  quantity = parseFloat(addtocardpayloadobj.quantity);
3406
3981
  }
3407
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.productquantityoptions) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : (_fetchProductInfoQuer19 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : (_fetchProductInfoQuer22 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : _fetchProductInfoQuer22.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer23 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : (_fetchProductInfoQuer24 = _fetchProductInfoQuer23.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.productinfo) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.productquantityoptions) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : _fetchProductInfoQuer26.length) != 0) {
3982
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer11 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer11 === void 0 ? void 0 : (_fetchProductInfoQuer12 = _fetchProductInfoQuer11.data) === null || _fetchProductInfoQuer12 === void 0 ? void 0 : (_fetchProductInfoQuer13 = _fetchProductInfoQuer12.productinfo) === null || _fetchProductInfoQuer13 === void 0 ? void 0 : _fetchProductInfoQuer13.productquantityoptions) != undefined && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer14 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer14 === void 0 ? void 0 : (_fetchProductInfoQuer15 = _fetchProductInfoQuer14.data) === null || _fetchProductInfoQuer15 === void 0 ? void 0 : (_fetchProductInfoQuer16 = _fetchProductInfoQuer15.productinfo) === null || _fetchProductInfoQuer16 === void 0 ? void 0 : _fetchProductInfoQuer16.productquantityoptions) != null && Array.isArray(fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer17 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer17 === void 0 ? void 0 : (_fetchProductInfoQuer18 = _fetchProductInfoQuer17.data) === null || _fetchProductInfoQuer18 === void 0 ? void 0 : (_fetchProductInfoQuer19 = _fetchProductInfoQuer18.productinfo) === null || _fetchProductInfoQuer19 === void 0 ? void 0 : _fetchProductInfoQuer19.productquantityoptions) && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer20 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer20 === void 0 ? void 0 : (_fetchProductInfoQuer21 = _fetchProductInfoQuer20.data) === null || _fetchProductInfoQuer21 === void 0 ? void 0 : (_fetchProductInfoQuer22 = _fetchProductInfoQuer21.productinfo) === null || _fetchProductInfoQuer22 === void 0 ? void 0 : (_fetchProductInfoQuer23 = _fetchProductInfoQuer22.productquantityoptions) === null || _fetchProductInfoQuer23 === void 0 ? void 0 : _fetchProductInfoQuer23.length) != 0) {
3408
3983
  quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
3409
3984
  }
3410
3985
  if (type == 'defaultprice') {
3411
3986
  price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
3412
3987
  if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
3413
3988
  if (variantindexcompleted != undefined) {
3414
- var _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30;
3415
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer27 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : (_fetchProductInfoQuer28 = _fetchProductInfoQuer27.data) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : (_fetchProductInfoQuer29 = _fetchProductInfoQuer28.productinfo) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.variants[variantindexcompleted]) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : _fetchProductInfoQuer30.variantprice) != undefined) {
3416
- var _fetchProductInfoQuer31, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34;
3417
- price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer31 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : (_fetchProductInfoQuer32 = _fetchProductInfoQuer31.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.productinfo) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.variants[variantindexcompleted]) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : _fetchProductInfoQuer34.variantprice;
3989
+ var _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27;
3990
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer24 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer24 === void 0 ? void 0 : (_fetchProductInfoQuer25 = _fetchProductInfoQuer24.data) === null || _fetchProductInfoQuer25 === void 0 ? void 0 : (_fetchProductInfoQuer26 = _fetchProductInfoQuer25.productinfo) === null || _fetchProductInfoQuer26 === void 0 ? void 0 : (_fetchProductInfoQuer27 = _fetchProductInfoQuer26.variants[variantindexcompleted]) === null || _fetchProductInfoQuer27 === void 0 ? void 0 : _fetchProductInfoQuer27.variantprice) != undefined) {
3991
+ var _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31;
3992
+ price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer28 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer28 === void 0 ? void 0 : (_fetchProductInfoQuer29 = _fetchProductInfoQuer28.data) === null || _fetchProductInfoQuer29 === void 0 ? void 0 : (_fetchProductInfoQuer30 = _fetchProductInfoQuer29.productinfo) === null || _fetchProductInfoQuer30 === void 0 ? void 0 : (_fetchProductInfoQuer31 = _fetchProductInfoQuer30.variants[variantindexcompleted]) === null || _fetchProductInfoQuer31 === void 0 ? void 0 : _fetchProductInfoQuer31.variantprice;
3418
3993
  }
3419
3994
  }
3420
3995
  }
@@ -3422,10 +3997,10 @@ var Productinfo = function Productinfo(props) {
3422
3997
  price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
3423
3998
  if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
3424
3999
  if (variantindexcompleted != undefined) {
3425
- var _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38;
3426
- if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer35 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : (_fetchProductInfoQuer36 = _fetchProductInfoQuer35.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.productinfo) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.variants[variantindexcompleted]) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : _fetchProductInfoQuer38.variantsaleprice) != undefined) {
3427
- var _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42;
3428
- price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer39 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : (_fetchProductInfoQuer40 = _fetchProductInfoQuer39.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : (_fetchProductInfoQuer41 = _fetchProductInfoQuer40.productinfo) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.variants[variantindexcompleted]) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : _fetchProductInfoQuer42.variantsaleprice;
4000
+ var _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
4001
+ if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer32 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer32 === void 0 ? void 0 : (_fetchProductInfoQuer33 = _fetchProductInfoQuer32.data) === null || _fetchProductInfoQuer33 === void 0 ? void 0 : (_fetchProductInfoQuer34 = _fetchProductInfoQuer33.productinfo) === null || _fetchProductInfoQuer34 === void 0 ? void 0 : (_fetchProductInfoQuer35 = _fetchProductInfoQuer34.variants[variantindexcompleted]) === null || _fetchProductInfoQuer35 === void 0 ? void 0 : _fetchProductInfoQuer35.variantsaleprice) != undefined) {
4002
+ var _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39;
4003
+ price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer36 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer36 === void 0 ? void 0 : (_fetchProductInfoQuer37 = _fetchProductInfoQuer36.data) === null || _fetchProductInfoQuer37 === void 0 ? void 0 : (_fetchProductInfoQuer38 = _fetchProductInfoQuer37.productinfo) === null || _fetchProductInfoQuer38 === void 0 ? void 0 : (_fetchProductInfoQuer39 = _fetchProductInfoQuer38.variants[variantindexcompleted]) === null || _fetchProductInfoQuer39 === void 0 ? void 0 : _fetchProductInfoQuer39.variantsaleprice;
3429
4004
  }
3430
4005
  }
3431
4006
  }
@@ -3451,7 +4026,7 @@ var Productinfo = function Productinfo(props) {
3451
4026
  return price;
3452
4027
  };
3453
4028
  var getQuantityCondition = function getQuantityCondition() {
3454
- var _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46;
4029
+ var _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43;
3455
4030
  return /*#__PURE__*/React__default["default"].createElement("div", {
3456
4031
  "class": "col-lg-12 p-0",
3457
4032
  style: {
@@ -3481,12 +4056,12 @@ var Productinfo = function Productinfo(props) {
3481
4056
  height: 1,
3482
4057
  background: sectionproperties.pricelisttitlecolor
3483
4058
  }
3484
- })), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer43 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : (_fetchProductInfoQuer44 = _fetchProductInfoQuer43.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.productinfo) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productquantityoptions) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : _fetchProductInfoQuer46.map(function (item, index) {
3485
- var _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50;
4059
+ })), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer40 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer40 === void 0 ? void 0 : (_fetchProductInfoQuer41 = _fetchProductInfoQuer40.data) === null || _fetchProductInfoQuer41 === void 0 ? void 0 : (_fetchProductInfoQuer42 = _fetchProductInfoQuer41.productinfo) === null || _fetchProductInfoQuer42 === void 0 ? void 0 : (_fetchProductInfoQuer43 = _fetchProductInfoQuer42.productquantityoptions) === null || _fetchProductInfoQuer43 === void 0 ? void 0 : _fetchProductInfoQuer43.map(function (item, index) {
4060
+ var _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47;
3486
4061
  return /*#__PURE__*/React__default["default"].createElement("div", {
3487
4062
  className: "col-lg-12 p-0 w-100 d-flex align-items-center",
3488
4063
  style: {
3489
- marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer47 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : (_fetchProductInfoQuer48 = _fetchProductInfoQuer47.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.productinfo) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : (_fetchProductInfoQuer50 = _fetchProductInfoQuer49.productquantityoptions) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : _fetchProductInfoQuer50.length) - 1 != index ? '1rem' : 0
4064
+ marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer44 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer44 === void 0 ? void 0 : (_fetchProductInfoQuer45 = _fetchProductInfoQuer44.data) === null || _fetchProductInfoQuer45 === void 0 ? void 0 : (_fetchProductInfoQuer46 = _fetchProductInfoQuer45.productinfo) === null || _fetchProductInfoQuer46 === void 0 ? void 0 : (_fetchProductInfoQuer47 = _fetchProductInfoQuer46.productquantityoptions) === null || _fetchProductInfoQuer47 === void 0 ? void 0 : _fetchProductInfoQuer47.length) - 1 != index ? '1rem' : 0
3490
4065
  }
3491
4066
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3492
4067
  "class": "d-flex align-items-center",
@@ -3520,7 +4095,7 @@ var Productinfo = function Productinfo(props) {
3520
4095
  })));
3521
4096
  };
3522
4097
  var StoreInfo = function StoreInfo() {
3523
- var _fetchProductInfoQuer51, _fetchProductInfoQuer52, _fetchProductInfoQuer53, _fetchProductInfoQuer54, _authdetailsContext$i5, _authdetailsContext$i6;
4098
+ var _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _authdetailsContext$i5, _authdetailsContext$i6;
3524
4099
  return /*#__PURE__*/React__default["default"].createElement("div", {
3525
4100
  "class": "row m-0 w-100"
3526
4101
  }, sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showstoreinfo1 == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -3563,7 +4138,7 @@ var Productinfo = function Productinfo(props) {
3563
4138
  style: {
3564
4139
  textAlign: langdetect == 'en' ? 'left' : 'right'
3565
4140
  }
3566
- }, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer51 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : (_fetchProductInfoQuer52 = _fetchProductInfoQuer51.data) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : (_fetchProductInfoQuer53 = _fetchProductInfoQuer52.productinfo) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.productquantityoptions) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
4141
+ }, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer48 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer48 === void 0 ? void 0 : (_fetchProductInfoQuer49 = _fetchProductInfoQuer48.data) === null || _fetchProductInfoQuer49 === void 0 ? void 0 : (_fetchProductInfoQuer50 = _fetchProductInfoQuer49.productinfo) === null || _fetchProductInfoQuer50 === void 0 ? void 0 : (_fetchProductInfoQuer51 = _fetchProductInfoQuer50.productquantityoptions) === null || _fetchProductInfoQuer51 === void 0 ? void 0 : _fetchProductInfoQuer51.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
3567
4142
  "class": "col-lg-12 p-0 mb-4"
3568
4143
  }, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
3569
4144
  className: productinfo_cssstyles.storeinfocontainer + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
@@ -3629,7 +4204,7 @@ var Productinfo = function Productinfo(props) {
3629
4204
  width: "10px",
3630
4205
  height: "10px",
3631
4206
  duration: "1s"
3632
- })), /*#__PURE__*/React__default["default"].createElement("div", {
4207
+ })), Object.keys(sectionproperties).length != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
3633
4208
  className: "col-lg-12 p-0"
3634
4209
  }, !fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && fetchProductInfoQueryContext.data.data.productinfo != null && /*#__PURE__*/React__default["default"].createElement("div", {
3635
4210
  className: sectionproperties.card_marginLeft != 0 ? ' row m-0 w-100 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' row m-0 w-100 p-sm-0 ',
@@ -3643,7 +4218,7 @@ var Productinfo = function Productinfo(props) {
3643
4218
  langdetect: langdetect,
3644
4219
  lang: lang,
3645
4220
  srcfromprops: props.srcfromprops
3646
- }, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _ref)
4221
+ }, _defineProperty__default["default"](_ref, "returnpolicyobj", returnpolicyobj), _defineProperty__default["default"](_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty__default["default"](_ref, "addtocartfunc", addtocartfunc), _defineProperty__default["default"](_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty__default["default"](_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty__default["default"](_ref, "productimagesarray", productimagesarray), _defineProperty__default["default"](_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty__default["default"](_ref, "ProductInfoObj", ProductInfoObj), _defineProperty__default["default"](_ref, "sectionproperties", sectionproperties), _defineProperty__default["default"](_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty__default["default"](_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty__default["default"](_ref, "routingcountext", routingcountext), _defineProperty__default["default"](_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty__default["default"](_ref, "authdetailsContext", authdetailsContext), _defineProperty__default["default"](_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty__default["default"](_ref, "variantindexcompleted", variantindexcompleted), _defineProperty__default["default"](_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty__default["default"](_ref, "NotificationManager", NotificationManager), _defineProperty__default["default"](_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty__default["default"](_ref, "relatedproducts", relatedproducts), _defineProperty__default["default"](_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty__default["default"](_ref, "StoreInfoprops", StoreInfo), _defineProperty__default["default"](_ref, "currentshowingimageindex", currentshowingimageindex), _defineProperty__default["default"](_ref, "setcurrentshowingimageindex", setcurrentshowingimageindex), _ref)
3647
4222
  }), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React__default["default"].createElement(Service_itemtype, {
3648
4223
  actions: (_ref2 = {
3649
4224
  returnpolicyobj: returnpolicyobj,
@@ -3716,18 +4291,18 @@ var Productinfo = function Productinfo(props) {
3716
4291
  onClick: function onClick() {
3717
4292
  settabname('refundpolicytab');
3718
4293
  }
3719
- }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : (_fetchProductInfoQuer56 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
3720
- label: 'Reviews',
4294
+ }), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer52 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer52 === void 0 ? void 0 : (_fetchProductInfoQuer53 = _fetchProductInfoQuer52.data) === null || _fetchProductInfoQuer53 === void 0 ? void 0 : (_fetchProductInfoQuer54 = _fetchProductInfoQuer53.productinfo) === null || _fetchProductInfoQuer54 === void 0 ? void 0 : _fetchProductInfoQuer54.productcanrate) == 1 && /*#__PURE__*/React__default["default"].createElement(material.Tab, {
4295
+ label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
3721
4296
  onClick: function onClick() {
3722
4297
  settabname('reviewstab');
3723
4298
  }
3724
- }))), tabname == 'descriptiontab' && /*#__PURE__*/React__default["default"].createElement(material.Box, {
3725
- "class": "w-100"
3726
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3727
- "class": "col-lg-12 pl-5 pr-5 p-md-0 w-100 mt-3 mb-4"
4299
+ }))), /*#__PURE__*/React__default["default"].createElement(material.Box, {
4300
+ "class": "w-100 mt-5 mb-4"
4301
+ }, tabname == 'descriptiontab' && /*#__PURE__*/React__default["default"].createElement("div", {
4302
+ "class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
3728
4303
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3729
4304
  "class": "row m-0 w-100"
3730
- }, langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : (_fetchProductInfoQuer59 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.description_en) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : (_fetchProductInfoQuer62 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.productinfo) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.description_en) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
4305
+ }, langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer55 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer55 === void 0 ? void 0 : (_fetchProductInfoQuer56 = _fetchProductInfoQuer55.data) === null || _fetchProductInfoQuer56 === void 0 ? void 0 : (_fetchProductInfoQuer57 = _fetchProductInfoQuer56.productinfo) === null || _fetchProductInfoQuer57 === void 0 ? void 0 : _fetchProductInfoQuer57.description_en) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer58 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer58 === void 0 ? void 0 : (_fetchProductInfoQuer59 = _fetchProductInfoQuer58.data) === null || _fetchProductInfoQuer59 === void 0 ? void 0 : (_fetchProductInfoQuer60 = _fetchProductInfoQuer59.productinfo) === null || _fetchProductInfoQuer60 === void 0 ? void 0 : _fetchProductInfoQuer60.description_en) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
3731
4306
  className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
3732
4307
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3733
4308
  className: "row m-0 w-100 d-flex"
@@ -3739,16 +4314,16 @@ var Productinfo = function Productinfo(props) {
3739
4314
  textAlign: langdetect == 'en' ? 'left' : 'right'
3740
4315
  },
3741
4316
  dangerouslySetInnerHTML: {
3742
- __html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : (_fetchProductInfoQuer65 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : (_fetchProductInfoQuer68 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : (_fetchProductInfoQuer69 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.description_en.slice(0, 1000)
4317
+ __html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer61 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer61 === void 0 ? void 0 : (_fetchProductInfoQuer62 = _fetchProductInfoQuer61.data) === null || _fetchProductInfoQuer62 === void 0 ? void 0 : (_fetchProductInfoQuer63 = _fetchProductInfoQuer62.productinfo) === null || _fetchProductInfoQuer63 === void 0 ? void 0 : _fetchProductInfoQuer63.description_en : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer64 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer64 === void 0 ? void 0 : (_fetchProductInfoQuer65 = _fetchProductInfoQuer64.data) === null || _fetchProductInfoQuer65 === void 0 ? void 0 : (_fetchProductInfoQuer66 = _fetchProductInfoQuer65.productinfo) === null || _fetchProductInfoQuer66 === void 0 ? void 0 : _fetchProductInfoQuer66.description_en.slice(0, 1000)
3743
4318
  }
3744
4319
  })), /*#__PURE__*/React__default["default"].createElement("div", {
3745
4320
  "class": "col-lg-12 allcentered"
3746
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : (_fetchProductInfoQuer71 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : (_fetchProductInfoQuer72 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.description_en.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
4321
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer67 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer67 === void 0 ? void 0 : (_fetchProductInfoQuer68 = _fetchProductInfoQuer67.data) === null || _fetchProductInfoQuer68 === void 0 ? void 0 : (_fetchProductInfoQuer69 = _fetchProductInfoQuer68.productinfo) === null || _fetchProductInfoQuer69 === void 0 ? void 0 : _fetchProductInfoQuer69.description_en.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
3747
4322
  "class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
3748
4323
  onClick: function onClick() {
3749
4324
  return setShowMore(!showMore);
3750
4325
  }
3751
- }, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : (_fetchProductInfoQuer74 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : (_fetchProductInfoQuer75 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.description_ar) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : (_fetchProductInfoQuer77 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : (_fetchProductInfoQuer78 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.description_ar) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
4326
+ }, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer70 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer70 === void 0 ? void 0 : (_fetchProductInfoQuer71 = _fetchProductInfoQuer70.data) === null || _fetchProductInfoQuer71 === void 0 ? void 0 : (_fetchProductInfoQuer72 = _fetchProductInfoQuer71.productinfo) === null || _fetchProductInfoQuer72 === void 0 ? void 0 : _fetchProductInfoQuer72.description_ar) != '' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer73 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer73 === void 0 ? void 0 : (_fetchProductInfoQuer74 = _fetchProductInfoQuer73.data) === null || _fetchProductInfoQuer74 === void 0 ? void 0 : (_fetchProductInfoQuer75 = _fetchProductInfoQuer74.productinfo) === null || _fetchProductInfoQuer75 === void 0 ? void 0 : _fetchProductInfoQuer75.description_ar) != null && sectionproperties.prodCatShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
3752
4327
  className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
3753
4328
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3754
4329
  className: "row m-0 w-100 d-flex"
@@ -3760,16 +4335,16 @@ var Productinfo = function Productinfo(props) {
3760
4335
  textAlign: langdetect == 'en' ? 'left' : 'right'
3761
4336
  },
3762
4337
  dangerouslySetInnerHTML: {
3763
- __html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : (_fetchProductInfoQuer80 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : (_fetchProductInfoQuer81 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer81 === void 0 ? void 0 : _fetchProductInfoQuer81.description_ar : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer82 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer82 === void 0 ? void 0 : (_fetchProductInfoQuer83 = _fetchProductInfoQuer82.data) === null || _fetchProductInfoQuer83 === void 0 ? void 0 : (_fetchProductInfoQuer84 = _fetchProductInfoQuer83.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.description_ar.slice(0, 1000)
4338
+ __html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer76 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer76 === void 0 ? void 0 : (_fetchProductInfoQuer77 = _fetchProductInfoQuer76.data) === null || _fetchProductInfoQuer77 === void 0 ? void 0 : (_fetchProductInfoQuer78 = _fetchProductInfoQuer77.productinfo) === null || _fetchProductInfoQuer78 === void 0 ? void 0 : _fetchProductInfoQuer78.description_ar : fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer79 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer79 === void 0 ? void 0 : (_fetchProductInfoQuer80 = _fetchProductInfoQuer79.data) === null || _fetchProductInfoQuer80 === void 0 ? void 0 : (_fetchProductInfoQuer81 = _fetchProductInfoQuer80.productinfo) === null || _fetchProductInfoQuer81 === void 0 ? void 0 : _fetchProductInfoQuer81.description_ar.slice(0, 1000)
3764
4339
  }
3765
4340
  })), /*#__PURE__*/React__default["default"].createElement("div", {
3766
4341
  "class": "col-lg-12 allcentered"
3767
- }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : (_fetchProductInfoQuer86 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : (_fetchProductInfoQuer87 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : _fetchProductInfoQuer87.description_ar.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
4342
+ }, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer82 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer82 === void 0 ? void 0 : (_fetchProductInfoQuer83 = _fetchProductInfoQuer82.data) === null || _fetchProductInfoQuer83 === void 0 ? void 0 : (_fetchProductInfoQuer84 = _fetchProductInfoQuer83.productinfo) === null || _fetchProductInfoQuer84 === void 0 ? void 0 : _fetchProductInfoQuer84.description_ar.length) > 1000 && /*#__PURE__*/React__default["default"].createElement("p", {
3768
4343
  "class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
3769
4344
  onClick: function onClick() {
3770
4345
  return setShowMore(!showMore);
3771
4346
  }
3772
- }, showMore ? lang.showless : lang.showmore)))), sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer88 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : (_fetchProductInfoQuer89 = _fetchProductInfoQuer88.data) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : (_fetchProductInfoQuer90 = _fetchProductInfoQuer89.productinfo) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : (_fetchProductInfoQuer91 = _fetchProductInfoQuer90.productimages) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : _fetchProductInfoQuer91.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
4347
+ }, showMore ? lang.showless : lang.showmore)))), sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer85 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer85 === void 0 ? void 0 : (_fetchProductInfoQuer86 = _fetchProductInfoQuer85.data) === null || _fetchProductInfoQuer86 === void 0 ? void 0 : (_fetchProductInfoQuer87 = _fetchProductInfoQuer86.productinfo) === null || _fetchProductInfoQuer87 === void 0 ? void 0 : (_fetchProductInfoQuer88 = _fetchProductInfoQuer87.productimages) === null || _fetchProductInfoQuer88 === void 0 ? void 0 : _fetchProductInfoQuer88.length) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
3773
4348
  "class": "col-lg-12 p-0"
3774
4349
  }, /*#__PURE__*/React__default["default"].createElement("div", {
3775
4350
  "class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
@@ -3777,7 +4352,7 @@ var Productinfo = function Productinfo(props) {
3777
4352
  paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
3778
4353
  paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
3779
4354
  }
3780
- }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer92 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : (_fetchProductInfoQuer93 = _fetchProductInfoQuer92.data) === null || _fetchProductInfoQuer93 === void 0 ? void 0 : (_fetchProductInfoQuer94 = _fetchProductInfoQuer93.productinfo) === null || _fetchProductInfoQuer94 === void 0 ? void 0 : (_fetchProductInfoQuer95 = _fetchProductInfoQuer94.productimages) === null || _fetchProductInfoQuer95 === void 0 ? void 0 : _fetchProductInfoQuer95.map(function (item, index) {
4355
+ }, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer89 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer89 === void 0 ? void 0 : (_fetchProductInfoQuer90 = _fetchProductInfoQuer89.data) === null || _fetchProductInfoQuer90 === void 0 ? void 0 : (_fetchProductInfoQuer91 = _fetchProductInfoQuer90.productinfo) === null || _fetchProductInfoQuer91 === void 0 ? void 0 : (_fetchProductInfoQuer92 = _fetchProductInfoQuer91.productimages) === null || _fetchProductInfoQuer92 === void 0 ? void 0 : _fetchProductInfoQuer92.map(function (item, index) {
3781
4356
  if (index <= 6) {
3782
4357
  return /*#__PURE__*/React__default["default"].createElement("div", {
3783
4358
  "class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
@@ -3796,8 +4371,8 @@ var Productinfo = function Productinfo(props) {
3796
4371
  loading: "lazy"
3797
4372
  }));
3798
4373
  }
3799
- })))))), tabname == 'shippingpolicytab' && /*#__PURE__*/React__default["default"].createElement(material.Box, null, /*#__PURE__*/React__default["default"].createElement("div", {
3800
- "class": "col-lg-12 pl-5 pr-5 p-md-0 w-100 mt-3 mb-4"
4374
+ }))))), tabname == 'shippingpolicytab' && /*#__PURE__*/React__default["default"].createElement("div", {
4375
+ "class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
3801
4376
  }, /*#__PURE__*/React__default["default"].createElement("p", {
3802
4377
  className: ' m-0 p-0 wordbreak ',
3803
4378
  style: {
@@ -3808,8 +4383,8 @@ var Productinfo = function Productinfo(props) {
3808
4383
  dangerouslySetInnerHTML: {
3809
4384
  __html: langdetect == 'en' ? (_returnpolicyobj5 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj5 === void 0 ? void 0 : _returnpolicyobj5.policycontent_en : (_returnpolicyobj6 = returnpolicyobj('Shipping Policy')) === null || _returnpolicyobj6 === void 0 ? void 0 : _returnpolicyobj6.policycontent_ar
3810
4385
  }
3811
- }))), tabname == 'refundpolicytab' && /*#__PURE__*/React__default["default"].createElement(material.Box, null, /*#__PURE__*/React__default["default"].createElement("div", {
3812
- "class": "col-lg-12 p-0 w-100 mt-3 mb-4 pl-5 pr-5 p-md-0"
4386
+ })), tabname == 'refundpolicytab' && /*#__PURE__*/React__default["default"].createElement("div", {
4387
+ "class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
3813
4388
  }, /*#__PURE__*/React__default["default"].createElement("p", {
3814
4389
  className: ' m-0 p-0 wordbreak ',
3815
4390
  style: {
@@ -3820,35 +4395,14 @@ var Productinfo = function Productinfo(props) {
3820
4395
  dangerouslySetInnerHTML: {
3821
4396
  __html: langdetect == 'en' ? (_returnpolicyobj7 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj7 === void 0 ? void 0 : _returnpolicyobj7.policycontent_en : (_returnpolicyobj8 = returnpolicyobj('Refund Policy')) === null || _returnpolicyobj8 === void 0 ? void 0 : _returnpolicyobj8.policycontent_ar
3822
4397
  }
3823
- }))), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement(material.Box, null, /*#__PURE__*/React__default["default"].createElement("div", {
3824
- "class": "col-lg-12 p-0 w-100 mt-3 mb-4 pl-5 pr-5 p-md-0"
3825
- }, /*#__PURE__*/React__default["default"].createElement("p", null, "Reviews tab"), /*#__PURE__*/React__default["default"].createElement("p", null, " Overall rate: ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (_fetchProductInfoQuer96 = fetchProductInfoQueryContext.data) === null || _fetchProductInfoQuer96 === void 0 ? void 0 : (_fetchProductInfoQuer97 = _fetchProductInfoQuer96.data) === null || _fetchProductInfoQuer97 === void 0 ? void 0 : (_fetchProductInfoQuer98 = _fetchProductInfoQuer97.productinfo) === null || _fetchProductInfoQuer98 === void 0 ? void 0 : _fetchProductInfoQuer98.productoverallrate, "/5"), "Ratings Filter", /*#__PURE__*/React__default["default"].createElement("select", {
3826
- value: filterproductreviews,
3827
- onChange: function onChange(event) {
3828
- setfilterproductreviews(event.target.value);
3829
- }
3830
- }, /*#__PURE__*/React__default["default"].createElement("option", {
3831
- value: "all"
3832
- }, "All"), /*#__PURE__*/React__default["default"].createElement("option", {
3833
- value: "5"
3834
- }, "5"), /*#__PURE__*/React__default["default"].createElement("option", {
3835
- value: "4"
3836
- }, "4"), /*#__PURE__*/React__default["default"].createElement("option", {
3837
- value: "3"
3838
- }, "3"), /*#__PURE__*/React__default["default"].createElement("option", {
3839
- value: "2"
3840
- }, "2"), /*#__PURE__*/React__default["default"].createElement("option", {
3841
- value: "1"
3842
- }, "1")), GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("p", null, "Loading.."), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
3843
- "class": "row w-100"
3844
- }, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
3845
- return /*#__PURE__*/React__default["default"].createElement("div", {
3846
- "class": "col-lg-12",
3847
- style: {
3848
- backgroundColor: 'grey'
3849
- }
3850
- }, /*#__PURE__*/React__default["default"].createElement("p", null, "Title:", reviewitem.reviewtitle), /*#__PURE__*/React__default["default"].createElement("p", null, "Body:", reviewitem.reviewbody), /*#__PURE__*/React__default["default"].createElement("p", null, "Name:", reviewitem.review_name), /*#__PURE__*/React__default["default"].createElement("p", null, "Rating:", reviewitem.review_rating), /*#__PURE__*/React__default["default"].createElement("p", null, "date:", reviewitem.reviewtimestmap));
3851
- })))))), /*#__PURE__*/React__default["default"].createElement("div", {
4398
+ })), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
4399
+ "class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
4400
+ }, /*#__PURE__*/React__default["default"].createElement(ProductReviews, {
4401
+ actions: _objectSpread$1Y(_objectSpread$1Y({}, actions), {}, {
4402
+ productinfo_cssstyles: productinfo_cssstyles,
4403
+ sectionproperties: sectionproperties
4404
+ })
4405
+ }))))), /*#__PURE__*/React__default["default"].createElement("div", {
3852
4406
  className: sectionproperties.card_marginLeft != 0 ? ' col-lg-12 pl-lg-3 pr-lg-3 pl-md-4 pr-md-4 pl-sm-1 pr-sm-1 ' : ' col-lg-12 p-sm-0 ',
3853
4407
  style: {
3854
4408
  paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
@@ -4088,32 +4642,36 @@ var Ordershistory = function Ordershistory(props) {
4088
4642
  var _useState = React.useState(''),
4089
4643
  _useState2 = _slicedToArray__default["default"](_useState, 2);
4090
4644
  _useState2[0];
4091
- var setCurrentPageId = _useState2[1];
4092
- var _useState3 = React.useState(false),
4645
+ _useState2[1];
4646
+ var _useState3 = React.useState(''),
4093
4647
  _useState4 = _slicedToArray__default["default"](_useState3, 2);
4094
4648
  _useState4[0];
4095
- var setopenorderitemsmodalshow = _useState4[1];
4096
- var _useState5 = React.useState({
4649
+ var setCurrentPageId = _useState4[1];
4650
+ var _useState5 = React.useState(false),
4651
+ _useState6 = _slicedToArray__default["default"](_useState5, 2);
4652
+ _useState6[0];
4653
+ var setopenorderitemsmodalshow = _useState6[1];
4654
+ var _useState7 = React.useState({
4097
4655
  reviewtitle: '',
4098
4656
  reviewbody: '',
4099
4657
  reviewrate: 0,
4100
4658
  reviewname: ''
4101
4659
  }),
4102
- _useState6 = _slicedToArray__default["default"](_useState5, 2),
4103
- reviewpayloadobj = _useState6[0],
4104
- setreviewpayloadobj = _useState6[1];
4105
- var _useState7 = React.useState({}),
4106
- _useState8 = _slicedToArray__default["default"](_useState7, 2),
4107
- openreviewmodalproductobj = _useState8[0],
4108
- setopenreviewmodalproductobj = _useState8[1];
4109
- var _useState9 = React.useState(false),
4110
- _useState10 = _slicedToArray__default["default"](_useState9, 2),
4111
- openreviewmodal = _useState10[0],
4112
- setopenreviewmodal = _useState10[1];
4113
- var _useState11 = React.useState(''),
4114
- _useState12 = _slicedToArray__default["default"](_useState11, 2),
4115
- orderindex = _useState12[0],
4116
- setorderindex = _useState12[1];
4660
+ _useState8 = _slicedToArray__default["default"](_useState7, 2);
4661
+ _useState8[0];
4662
+ _useState8[1];
4663
+ var _useState9 = React.useState({}),
4664
+ _useState10 = _slicedToArray__default["default"](_useState9, 2);
4665
+ _useState10[0];
4666
+ _useState10[1];
4667
+ var _useState11 = React.useState(false),
4668
+ _useState12 = _slicedToArray__default["default"](_useState11, 2);
4669
+ _useState12[0];
4670
+ _useState12[1];
4671
+ var _useState13 = React.useState(''),
4672
+ _useState14 = _slicedToArray__default["default"](_useState13, 2),
4673
+ orderindex = _useState14[0],
4674
+ setorderindex = _useState14[1];
4117
4675
  React.useEffect(function () {
4118
4676
  if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
4119
4677
  var tempFetchQueriesEngineContext = _objectSpread$1W({}, FetchQueriesEngineContext);
@@ -4121,10 +4679,10 @@ var Ordershistory = function Ordershistory(props) {
4121
4679
  setFetchQueriesEngineContext(_objectSpread$1W({}, tempFetchQueriesEngineContext));
4122
4680
  }
4123
4681
  }, []);
4124
- var _useState13 = React.useState(''),
4125
- _useState14 = _slicedToArray__default["default"](_useState13, 2),
4126
- sectionproperties = _useState14[0],
4127
- setsectionproperties = _useState14[1];
4682
+ var _useState15 = React.useState(''),
4683
+ _useState16 = _slicedToArray__default["default"](_useState15, 2),
4684
+ sectionproperties = _useState16[0],
4685
+ setsectionproperties = _useState16[1];
4128
4686
  React.useEffect(function () {
4129
4687
  var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
4130
4688
  return x.staticpageid == '6218bccb81d1c';
@@ -4281,10 +4839,10 @@ var Ordershistory = function Ordershistory(props) {
4281
4839
  }
4282
4840
  })
4283
4841
  };
4284
- var _useState15 = React.useState([]),
4285
- _useState16 = _slicedToArray__default["default"](_useState15, 2),
4286
- bgimagesarray = _useState16[0],
4287
- setbgimagesarray = _useState16[1];
4842
+ var _useState17 = React.useState([]),
4843
+ _useState18 = _slicedToArray__default["default"](_useState17, 2),
4844
+ bgimagesarray = _useState18[0],
4845
+ setbgimagesarray = _useState18[1];
4288
4846
  React.useEffect(function () {
4289
4847
  if (sectionproperties.length != 0) {
4290
4848
  if (sectionproperties.arrayofobjectimagesonly != null) {
@@ -4690,7 +5248,7 @@ var Ordershistory = function Ordershistory(props) {
4690
5248
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4691
5249
  className: "row m-0 w-100 d-flex align-items-start"
4692
5250
  }, /*#__PURE__*/React__default["default"].createElement("div", {
4693
- className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-start"
5251
+ className: "col-lg-9 col-md-9 col-sm-9 p-0 d-flex align-items-start"
4694
5252
  }, /*#__PURE__*/React__default["default"].createElement("p", {
4695
5253
  className: orderhistory_cssstyles.productNameStyles + ' p-0 m-0 wordbreak wordbreak3 ',
4696
5254
  style: {
@@ -4713,26 +5271,7 @@ var Ordershistory = function Ordershistory(props) {
4713
5271
  }, /*#__PURE__*/React__default["default"].createElement("p", {
4714
5272
  className: ' m-0 p-0 font-13 fontfamilymedium wordbreak allcentered '
4715
5273
  }, variantoptionitem.valuename));
4716
- })))))), item.productcanrate == 1 && /*#__PURE__*/React__default["default"].createElement("div", null, item.hasreview == 0 && /*#__PURE__*/React__default["default"].createElement("p", {
4717
- onClick: function onClick() {
4718
- setopenreviewmodal(true);
4719
- setopenreviewmodalproductobj(item);
4720
- }
4721
- }, "Rate item"), item.hasreview == 1 && /*#__PURE__*/React__default["default"].createElement("p", {
4722
- style: {
4723
- color: 'green'
4724
- },
4725
- onClick: function onClick() {
4726
- setopenreviewmodal(true);
4727
- setopenreviewmodalproductobj(item);
4728
- setreviewpayloadobj({
4729
- reviewtitle: item.reviewtitle,
4730
- reviewbody: item.reviewbody,
4731
- reviewrate: item.review_rating,
4732
- reviewname: item.review_name
4733
- });
4734
- }
4735
- }, "View Rate")), /*#__PURE__*/React__default["default"].createElement("div", {
5274
+ })))))), /*#__PURE__*/React__default["default"].createElement("div", {
4736
5275
  className: "col-lg-12 p-0"
4737
5276
  }, /*#__PURE__*/React__default["default"].createElement("hr", {
4738
5277
  className: "mt- mb-3"
@@ -4995,77 +5534,7 @@ var Ordershistory = function Ordershistory(props) {
4995
5534
  color: sectionproperties.paymenttextcolor,
4996
5535
  fontWeight: sectionproperties.paymenttextfontweight
4997
5536
  }
4998
- }, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar)))))))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
4999
- show: openreviewmodal,
5000
- onHide: function onHide() {
5001
- return setopenreviewmodal(false);
5002
- },
5003
- centered: true,
5004
- size: "lg"
5005
- }, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("p", null, "Review modal"), /*#__PURE__*/React__default["default"].createElement("div", {
5006
- "class": "col-lg-12"
5007
- }, /*#__PURE__*/React__default["default"].createElement("p", null, "Review title"), /*#__PURE__*/React__default["default"].createElement("input", {
5008
- disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
5009
- value: reviewpayloadobj.reviewtitle,
5010
- onChange: function onChange(event) {
5011
- var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
5012
- tempreviewpayloadobj.reviewtitle = event.target.value;
5013
- setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
5014
- }
5015
- })), /*#__PURE__*/React__default["default"].createElement("div", {
5016
- "class": "col-lg-12"
5017
- }, /*#__PURE__*/React__default["default"].createElement("p", null, "Review body"), /*#__PURE__*/React__default["default"].createElement("input", {
5018
- disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
5019
- value: reviewpayloadobj.reviewbody,
5020
- onChange: function onChange(event) {
5021
- var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
5022
- tempreviewpayloadobj.reviewbody = event.target.value;
5023
- setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
5024
- }
5025
- })), /*#__PURE__*/React__default["default"].createElement("div", {
5026
- "class": "col-lg-12"
5027
- }, /*#__PURE__*/React__default["default"].createElement("p", null, "Review rate"), /*#__PURE__*/React__default["default"].createElement("input", {
5028
- disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
5029
- value: reviewpayloadobj.reviewrate,
5030
- type: "number",
5031
- onChange: function onChange(event) {
5032
- var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
5033
- tempreviewpayloadobj.reviewrate = event.target.value;
5034
- setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
5035
- }
5036
- })), /*#__PURE__*/React__default["default"].createElement("div", {
5037
- "class": "col-lg-12"
5038
- }, /*#__PURE__*/React__default["default"].createElement("p", null, "Review name"), /*#__PURE__*/React__default["default"].createElement("input", {
5039
- disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
5040
- value: reviewpayloadobj.reviewname,
5041
- onChange: function onChange(event) {
5042
- var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
5043
- tempreviewpayloadobj.reviewname = event.target.value;
5044
- setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
5045
- }
5046
- })), openreviewmodalproductobj.hasreview == 0 && /*#__PURE__*/React__default["default"].createElement("button", {
5047
- onClick: function onClick() {
5048
- if (reviewpayloadobj.reviewtitle.length != 0 && reviewpayloadobj.reviewbody.length != 0 && reviewpayloadobj.reviewrate.length != 0 && parseInt(reviewpayloadobj.reviewrate) > 0 && reviewpayloadobj.reviewname.length != 0) {
5049
- var tempreviewpayloadobj = reviewpayloadobj;
5050
- tempreviewpayloadobj.endpointurl = '/addproductreview';
5051
- tempreviewpayloadobj.orderitemid = openreviewmodalproductobj.orderitemid;
5052
- GeneralAPIMutationContext.mutate({
5053
- endpointurl: '/addproductreview',
5054
- orderitemid: openreviewmodalproductobj.orderitemid,
5055
- reviewpayloadobj: reviewpayloadobj,
5056
- mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
5057
- if (data.data.status) {
5058
- NotificationManager.success('', 'Success');
5059
- } else {
5060
- NotificationManager.warning('', data.data.reason);
5061
- }
5062
- }
5063
- });
5064
- } else {
5065
- alert('Please fill the missing fields');
5066
- }
5067
- }
5068
- }, "Submit")))))));
5537
+ }, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))))))))))));
5069
5538
  };
5070
5539
 
5071
5540
  var css_248z$G = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_container__FuptA {\n height: 300px;\n border-radius: 10px;\n background-size: cover !important;\n background-repeat: no-repeat;\n background-position: center;\n background-color: #e6e6e6;\n width: 100% !important;\n box-shadow: 0 0 10px #e6e6e6;\n}\n.wishlist-module_floatbtn__PZDvQ {\n position: absolute;\n top: 10px;\n right: 10px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: 0.3s;\n opacity: 0;\n}\n.wishlist-module_wishlist_card__sUXul:hover .wishlist-module_floatbtn__PZDvQ {\n opacity: 1;\n}\n@media screen and (max-width: 800px) {\n .wishlist-module_floatbtn__PZDvQ {\n opacity: 1 !important;\n }\n}\n";
@@ -6880,7 +7349,7 @@ var Checkout = function Checkout(props) {
6880
7349
  onClick: function onClick() {
6881
7350
  routingcountext(StaticPagesLinksContext.accountinfo);
6882
7351
  }
6883
- }, lang.update)))), /*#__PURE__*/React__default["default"].createElement("div", {
7352
+ }, lang.update)))), sectionproperties.hideshipping == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
6884
7353
  className: "col-lg-12 p-0"
6885
7354
  }, /*#__PURE__*/React__default["default"].createElement("div", {
6886
7355
  "class": "".concat(checkoutstyles.innersection) + ' w-100 mb-3 '
@@ -7261,7 +7730,7 @@ var Select = /*#__PURE__*/React__default["default"].lazy(function () {
7261
7730
  return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
7262
7731
  });
7263
7732
  var CustomerInformationForm = function CustomerInformationForm(props) {
7264
- var _css;
7733
+ var _fetchAuthorizationQu, _fetchAuthorizationQu2, _fetchAuthorizationQu3, _fetchAuthorizationQu4, _fetchAuthorizationQu5, _fetchAuthorizationQu6, _css;
7265
7734
  var lang = props.actions.lang;
7266
7735
  var langdetect = props.actions.langdetect;
7267
7736
  props.actions.routingcountext;
@@ -7274,21 +7743,34 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7274
7743
  var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
7275
7744
  var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
7276
7745
  var CustomerSignUpMutationContext = props.actions.CustomerSignUpMutationContext;
7746
+ var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
7277
7747
  var authdetailsContext = props.actions.authdetailsContext;
7278
7748
  var instapikey = props.actions.instapikey;
7279
7749
  var templatepropcontext = props.actions.templatepropcontext;
7280
7750
  props.actions.ikimagecredcontext;
7281
7751
  var NotificationManager = props.actions.NotificationManager;
7282
7752
  var actions = props.actions;
7283
- var _useState = React.useState(''),
7753
+ var _useState = React.useState(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu === void 0 ? void 0 : (_fetchAuthorizationQu2 = _fetchAuthorizationQu.data) === null || _fetchAuthorizationQu2 === void 0 ? void 0 : (_fetchAuthorizationQu3 = _fetchAuthorizationQu2.instinfo) === null || _fetchAuthorizationQu3 === void 0 ? void 0 : _fetchAuthorizationQu3.customerAddressrequiered),
7284
7754
  _useState2 = _slicedToArray__default["default"](_useState, 2),
7285
- sectionproperties = _useState2[0],
7286
- setsectionproperties = _useState2[1];
7287
- var _useState3 = React.useState(false),
7288
- _useState4 = _slicedToArray__default["default"](_useState3, 2),
7289
- dataloaded = _useState4[0],
7290
- setdataloaded = _useState4[1];
7291
- var _useState5 = React.useState({
7755
+ customeraddressrequierd = _useState2[0],
7756
+ setcustomeraddressrequierd = _useState2[1];
7757
+ var _useState3 = React.useState(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu4 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu4 === void 0 ? void 0 : (_fetchAuthorizationQu5 = _fetchAuthorizationQu4.data) === null || _fetchAuthorizationQu5 === void 0 ? void 0 : (_fetchAuthorizationQu6 = _fetchAuthorizationQu5.instinfo) === null || _fetchAuthorizationQu6 === void 0 ? void 0 : _fetchAuthorizationQu6.customervalidateemail),
7758
+ _useState4 = _slicedToArray__default["default"](_useState3, 2);
7759
+ _useState4[0];
7760
+ var setcustomervalidateemail = _useState4[1];
7761
+ var _useState5 = React.useState(false),
7762
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
7763
+ validateemailmodal = _useState6[0],
7764
+ setvalidateemailmodal = _useState6[1];
7765
+ var _useState7 = React.useState(''),
7766
+ _useState8 = _slicedToArray__default["default"](_useState7, 2),
7767
+ sectionproperties = _useState8[0],
7768
+ setsectionproperties = _useState8[1];
7769
+ var _useState9 = React.useState(false),
7770
+ _useState10 = _slicedToArray__default["default"](_useState9, 2),
7771
+ dataloaded = _useState10[0],
7772
+ setdataloaded = _useState10[1];
7773
+ var _useState11 = React.useState({
7292
7774
  instapikey: instapikey,
7293
7775
  name: '',
7294
7776
  email: '',
@@ -7303,9 +7785,16 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7303
7785
  cityid: '',
7304
7786
  countrydialcode: ''
7305
7787
  }),
7306
- _useState6 = _slicedToArray__default["default"](_useState5, 2),
7307
- payloadobj = _useState6[0],
7308
- setpayloadobj = _useState6[1];
7788
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
7789
+ payloadobj = _useState12[0],
7790
+ setpayloadobj = _useState12[1];
7791
+ React.useEffect(function () {
7792
+ if (fetchAuthorizationQueryContext.isSuccess) {
7793
+ var _fetchAuthorizationQu7, _fetchAuthorizationQu8, _fetchAuthorizationQu9, _fetchAuthorizationQu10, _fetchAuthorizationQu11, _fetchAuthorizationQu12;
7794
+ setcustomeraddressrequierd(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu7 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu7 === void 0 ? void 0 : (_fetchAuthorizationQu8 = _fetchAuthorizationQu7.data) === null || _fetchAuthorizationQu8 === void 0 ? void 0 : (_fetchAuthorizationQu9 = _fetchAuthorizationQu8.instinfo) === null || _fetchAuthorizationQu9 === void 0 ? void 0 : _fetchAuthorizationQu9.customerAddressrequiered);
7795
+ setcustomervalidateemail(fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : (_fetchAuthorizationQu10 = fetchAuthorizationQueryContext.data) === null || _fetchAuthorizationQu10 === void 0 ? void 0 : (_fetchAuthorizationQu11 = _fetchAuthorizationQu10.data) === null || _fetchAuthorizationQu11 === void 0 ? void 0 : (_fetchAuthorizationQu12 = _fetchAuthorizationQu11.instinfo) === null || _fetchAuthorizationQu12 === void 0 ? void 0 : _fetchAuthorizationQu12.customervalidateemail);
7796
+ }
7797
+ }, [fetchAuthorizationQueryContext.isSuccess]);
7309
7798
  React.useEffect(function () {
7310
7799
  var tempFetchQueriesEngineContext = _objectSpread$1R({}, FetchQueriesEngineContext);
7311
7800
  tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
@@ -7499,7 +7988,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7499
7988
  className: sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
7500
7989
  }, /*#__PURE__*/React__default["default"].createElement("label", {
7501
7990
  className: formstyles.input_label_name + ' d-flex justify-content-start '
7502
- }, lang.country), fetchTabexCountriesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
7991
+ }, lang.country, customeraddressrequierd == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
7992
+ "class": "ml-1 mr-1",
7993
+ style: {
7994
+ color: 'red'
7995
+ }
7996
+ }, "*")), fetchTabexCountriesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
7503
7997
  className: "col-lg-4 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
7504
7998
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
7505
7999
  color: "black",
@@ -7542,7 +8036,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7542
8036
  className: sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
7543
8037
  }, /*#__PURE__*/React__default["default"].createElement("label", {
7544
8038
  className: formstyles.input_label_name + ' d-flex justify-content-start '
7545
- }, lang.choosestategov), fetchTabexStatesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
8039
+ }, lang.choosestategov, ' ', customeraddressrequierd == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
8040
+ "class": "ml-1 mr-1",
8041
+ style: {
8042
+ color: 'red'
8043
+ }
8044
+ }, "*")), fetchTabexStatesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
7546
8045
  className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
7547
8046
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
7548
8047
  color: "black",
@@ -7589,7 +8088,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7589
8088
  className: sectionproperties.cardstyletype == 'Style 1' ? 'col-lg-4 col-md-12 col-sm-12 mb-4 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
7590
8089
  }, /*#__PURE__*/React__default["default"].createElement("label", {
7591
8090
  className: formstyles.input_label_name + ' d-flex justify-content-start '
7592
- }, lang.city), fetchTabexCitiesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
8091
+ }, lang.city, customeraddressrequierd == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
8092
+ "class": "ml-1 mr-1",
8093
+ style: {
8094
+ color: 'red'
8095
+ }
8096
+ }, "*")), fetchTabexCitiesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
7593
8097
  className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
7594
8098
  }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
7595
8099
  color: "black",
@@ -7632,7 +8136,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7632
8136
  className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
7633
8137
  }, /*#__PURE__*/React__default["default"].createElement("label", {
7634
8138
  className: "".concat(formstyles.input_label_name) + ' mb-1 text-transform-none d-flex align-items-start '
7635
- }, lang.address), /*#__PURE__*/React__default["default"].createElement("div", {
8139
+ }, lang.address, ' ', customeraddressrequierd == 1 && /*#__PURE__*/React__default["default"].createElement("span", {
8140
+ "class": "ml-1 mr-1",
8141
+ style: {
8142
+ color: 'red'
8143
+ }
8144
+ }, "*")), /*#__PURE__*/React__default["default"].createElement("div", {
7636
8145
  className: loginstyles.wrap_input100
7637
8146
  }, /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
7638
8147
  type: "text",
@@ -7893,6 +8402,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7893
8402
  className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
7894
8403
  disabled: CustomerSignUpMutationContext.isLoading ? true : false,
7895
8404
  onClick: function onClick() {
8405
+ var isshippingaddresscompleted = false;
7896
8406
  var passwordvalidation = false;
7897
8407
  if (authdetailsContext.loggedin == false) {
7898
8408
  if (payloadobj.password.length != 0) {
@@ -7912,27 +8422,38 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7912
8422
  if (passwordvalidation == false) {
7913
8423
  NotificationManager.warning('', lang.passwordsdontmatch);
7914
8424
  }
7915
- if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true && payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0) {
7916
- var signupformismissing = true;
7917
- payloadobj.instsignupformvalues.forEach(function (arrayItem) {
7918
- if (arrayItem.optional == 1) {
7919
- if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
7920
- signupformismissing = false;
8425
+ if (customeraddressrequierd == 1) {
8426
+ if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
8427
+ isshippingaddresscompleted = true;
8428
+ }
8429
+ } else {
8430
+ isshippingaddresscompleted = true;
8431
+ }
8432
+ if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
8433
+ if (isshippingaddresscompleted) {
8434
+ var signupformismissing = true;
8435
+ payloadobj.instsignupformvalues.forEach(function (arrayItem) {
8436
+ if (arrayItem.optional == 1) {
8437
+ if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
8438
+ signupformismissing = false;
8439
+ }
7921
8440
  }
7922
- }
7923
- });
7924
- if (signupformismissing) {
7925
- var temppayloadobj = _objectSpread$1R({}, payloadobj);
7926
- if (authdetailsContext.loggedin == true) {
7927
- temppayloadobj.functype = 'edit';
8441
+ });
8442
+ if (signupformismissing) {
8443
+ var temppayloadobj = _objectSpread$1R({}, payloadobj);
8444
+ if (authdetailsContext.loggedin == true) {
8445
+ temppayloadobj.functype = 'edit';
8446
+ } else {
8447
+ temppayloadobj.functype = 'add';
8448
+ }
8449
+ temppayloadobj.addedsourcetype = 'Webapp';
8450
+ temppayloadobj.instapikey = instapikey;
8451
+ CustomerSignUpMutationContext.mutate(temppayloadobj);
7928
8452
  } else {
7929
- temppayloadobj.functype = 'add';
8453
+ NotificationManager.warning('', lang.completerequiredfields);
7930
8454
  }
7931
- temppayloadobj.addedsourcetype = 'Webapp';
7932
- temppayloadobj.instapikey = instapikey;
7933
- CustomerSignUpMutationContext.mutate(temppayloadobj);
7934
8455
  } else {
7935
- NotificationManager.warning('', lang.completerequiredfields);
8456
+ NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
7936
8457
  }
7937
8458
  } else {
7938
8459
  NotificationManager.warning('', lang.fillthemissingfields);
@@ -7975,7 +8496,31 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
7975
8496
  className: "ml-1 mr-1"
7976
8497
  }, /*#__PURE__*/React__default["default"].createElement(GoogleLoginButton, {
7977
8498
  actions: actions
7978
- })))));
8499
+ })))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal, {
8500
+ show: validateemailmodal,
8501
+ onHide: function onHide() {
8502
+ return setvalidateemailmodal(false);
8503
+ },
8504
+ centered: true,
8505
+ size: 'md'
8506
+ }, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement("div", {
8507
+ "class": "d-flex align-items-center justify-content-center bgdanger-hover",
8508
+ style: {
8509
+ position: 'absolute',
8510
+ right: -15,
8511
+ top: -15,
8512
+ width: '4vh',
8513
+ height: '4vh',
8514
+ background: '#000',
8515
+ borderRadius: '50%'
8516
+ },
8517
+ onClick: function onClick() {
8518
+ return setvalidateemailmodal(false);
8519
+ }
8520
+ }, /*#__PURE__*/React__default["default"].createElement(IoMdClose.IoMdClose, {
8521
+ size: 15,
8522
+ color: "white"
8523
+ }))), /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Footer, null)));
7979
8524
  };
7980
8525
 
7981
8526
  function ownKeys$1Q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -8486,7 +9031,7 @@ var Policies = function Policies(props) {
8486
9031
  }), /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
8487
9032
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
8488
9033
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
8489
- path: bgimagesarray.length != 0 ? langdetect == 'en' ? (_bgimagesarray$7 = bgimagesarray[0]) === null || _bgimagesarray$7 === void 0 ? void 0 : _bgimagesarray$7.bgsection_imageresponsive : (_bgimagesarray$8 = bgimagesarray[0]) === null || _bgimagesarray$8 === void 0 ? void 0 : _bgimagesarray$8.bgsection_imageresponsive_ar : '',
9034
+ path: bgimagesarray.length != 0 ? langdetect == 'en' ? '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_bgimagesarray$7 = bgimagesarray[0]) === null || _bgimagesarray$7 === void 0 ? void 0 : _bgimagesarray$7.bgsection_image) : '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + ((_bgimagesarray$8 = bgimagesarray[0]) === null || _bgimagesarray$8 === void 0 ? void 0 : _bgimagesarray$8.bgsection_image_ar) : '',
8490
9035
  "class": "d-none d-sm-flex",
8491
9036
  style: {
8492
9037
  height: '100%',
@@ -9376,7 +9921,14 @@ var Filter$1 = function Filter(props) {
9376
9921
  _useState10 = _slicedToArray__default["default"](_useState9, 2);
9377
9922
  _useState10[0];
9378
9923
  _useState10[1];
9379
- var _useState11 = React.useState([{
9924
+ var _useState11 = React.useState({
9925
+ min: 0,
9926
+ max: 5
9927
+ }),
9928
+ _useState12 = _slicedToArray__default["default"](_useState11, 2),
9929
+ raterangevalue = _useState12[0],
9930
+ setraterangevalue = _useState12[1];
9931
+ var _useState13 = React.useState([{
9380
9932
  payloadvalue: 'sortprice',
9381
9933
  name: lang.price,
9382
9934
  filterarray: [{
@@ -9401,9 +9953,9 @@ var Filter$1 = function Filter(props) {
9401
9953
  isfilterselected: false
9402
9954
  }]
9403
9955
  }]),
9404
- _useState12 = _slicedToArray__default["default"](_useState11, 2),
9405
- otherfilters = _useState12[0];
9406
- _useState12[1];
9956
+ _useState14 = _slicedToArray__default["default"](_useState13, 2),
9957
+ otherfilters = _useState14[0];
9958
+ _useState14[1];
9407
9959
  React.useEffect(function () {
9408
9960
  filterupdater();
9409
9961
  }, []);
@@ -9421,6 +9973,22 @@ var Filter$1 = function Filter(props) {
9421
9973
  React.useEffect(function () {
9422
9974
  filterupdater();
9423
9975
  }, [ProductFilterObjContext]);
9976
+ var timeoutRef = React__default["default"].useRef(null);
9977
+ React__default["default"].useEffect(function () {
9978
+ if (timeoutRef.current !== null) {
9979
+ clearTimeout(timeoutRef.current);
9980
+ }
9981
+ timeoutRef.current = setTimeout(function () {
9982
+ if (raterangevalue.min != 0 || raterangevalue.max != 5) {
9983
+ var tempfetchproductsfilerobjcontext = _objectSpread$1L({}, ProductFilterObjContext);
9984
+ tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
9985
+ tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
9986
+ tempfetchproductsfilerobjcontext.page = 0;
9987
+ setProductFilterObjContext(_objectSpread$1L({}, tempfetchproductsfilerobjcontext));
9988
+ // routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
9989
+ }
9990
+ }, 500);
9991
+ }, [raterangevalue]);
9424
9992
  var filterupdater = function filterupdater() {
9425
9993
  if (instfilters.length != 0) {
9426
9994
  var _ProductFilterObjCont;
@@ -10051,7 +10619,28 @@ var Filter$1 = function Filter(props) {
10051
10619
  }
10052
10620
  }, valueitem.name)));
10053
10621
  }))))))));
10054
- })), /*#__PURE__*/React__default["default"].createElement("div", {
10622
+ }), sectionproperties.showfilterbyrating == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
10623
+ className: "col-lg-12 pl-4 pr-4"
10624
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
10625
+ className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
10626
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
10627
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 mb-3"
10628
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
10629
+ className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
10630
+ }, langdetect == 'en' ? 'Ratings' : 'التقييمات')), /*#__PURE__*/React__default["default"].createElement("div", {
10631
+ className: "col-lg-12 col-md-12 col-sm-12 mb-4"
10632
+ }, /*#__PURE__*/React__default["default"].createElement(InputRange__default["default"], {
10633
+ draggableTrack: true,
10634
+ formatLabel: function formatLabel(value) {
10635
+ return "".concat(value);
10636
+ },
10637
+ maxValue: 5,
10638
+ minValue: 0,
10639
+ value: raterangevalue,
10640
+ onChange: function onChange(value) {
10641
+ setraterangevalue(_objectSpread$1L({}, value));
10642
+ }
10643
+ }))))), /*#__PURE__*/React__default["default"].createElement("div", {
10055
10644
  className: "col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none"
10056
10645
  }, /*#__PURE__*/React__default["default"].createElement("p", {
10057
10646
  className: "m-0 p-0 font-16 font-weight-600",
@@ -10990,7 +11579,10 @@ var CardsSection = function CardsSection(props) {
10990
11579
  }, /*#__PURE__*/React__default["default"].createElement(reactHorizontalScrollingMenu.ScrollMenu, {
10991
11580
  transitionBehavior: 'auto',
10992
11581
  wrapperClassName: '',
10993
- itemClassName: item.tabexsectioninfo.sectioncompname == 'Productcard6' ? 'scrollmenuclassnameitemProductcard6' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? 'scrollmenuclassnameitemProductcard_with_circularhover' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? 'scrollmenuclassnameitemProductcard_with_circularbg' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation' ? 'scrollmenuclassnameitemProductcard_with_slideanimation' : item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext' ? 'scrollmenuclassnameitemCategorycard_withtext' :
11582
+ itemClassName: item.tabexsectioninfo.sectioncompname == 'Productcard6' ? 'scrollmenuclassnameitemProductcard6' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? 'scrollmenuclassnameitemProductcard_with_circularhover' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? 'scrollmenuclassnameitemProductcard_with_circularbg' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? 'scrollmenuclassnameitemCategorycard_with_twolinestransition' :
11583
+ // : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
11584
+ // ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
11585
+ item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext' ? 'scrollmenuclassnameitemCategorycard_withtext' :
10994
11586
  // : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
10995
11587
  // ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
10996
11588
  item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants' ? 'scrollmenuclassnameitemProductcard_with_variants' : item.tabexsectioninfo.sectioncompname == 'Productcarddefault' ? 'scrollmenuclassnameitemProductcarddefault' :
@@ -11024,7 +11616,7 @@ var CardsSection = function CardsSection(props) {
11024
11616
  }
11025
11617
  }, cardsarray.map(function (cardinfoitem, cardinfoindex) {
11026
11618
  return /*#__PURE__*/React__default["default"].createElement("div", {
11027
- "class": sectionproperties.numberOfColsvertical == '1' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '2' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft ' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0' : ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0' : sectionproperties.numberOfColsvertical == '3' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-4 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0' : ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '4' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0' : ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '12' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0' : '' : sectionproperties.numberOfColsvertical == '6' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-2 p-0 col-lg-2 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-2 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0' : item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly' ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : ''
11619
+ "class": sectionproperties.numberOfColsvertical == '1' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-12 p-0 col-lg-12 col-md-4 p-0 d-flex justify-content-center col-sm-6 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-12 p-0 col-lg-12 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-12 p-0 col-lg-12 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage' ? ' col-xl-12 p-0 col-lg-12 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-12 p-0 col-lg-12 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '2' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft ' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-6 p-0 col-lg-6 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-6 p-0 col-lg-6 col-md-12 col-sm-12 d-flex justify-content-center p-0' : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage' ? ' col-xl-6 p-0 col-lg-6 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-6 p-0 col-lg-6 col-md-6 col-sm-12 d-flex justify-content-center p-0' : sectionproperties.numberOfColsvertical == '3' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-4 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-4 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-4 p-0 col-lg-4 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-4 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0' : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage' ? ' col-xl-4 p-0 col-lg-4 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-4 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '4' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-3 p-0 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'ModernProductCard' ? ' col-xl-3 p-0 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-3 col-lg-4 col-md-4 col-sm-12 p-0 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0' : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-3 col-lg-4 col-md-4 col-sm-6 p-0 d-flex justify-content-center p-0 ' : sectionproperties.numberOfColsvertical == '12' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-3 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-3 p-0 col-lg-4 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-3 p-0 col-lg-3 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-3 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-3 p-0 col-lg-3 col-md-12 col-sm-12 d-flex justify-content-center p-0' : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage' ? ' col-xl-3 p-0 col-lg-3 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : '' : sectionproperties.numberOfColsvertical == '6' ? item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularhover' ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productccard_with_imageontopleft' ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'MenuCard' ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'StylishProductCard' ? ' col-xl-2 p-0 col-lg-2 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Productcard_with_circularbg' ? ' col-xl-2 p-0 col-lg-3 col-md-3 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Card20' ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-10 d-flex justify-content-center p-0 ml-sm-auto mr-sm-auto ' : item.tabexsectioninfo.sectioncompname == 'Simplecategorycardwithtextbelow' ? ' col-xl-2 p-0 col-lg-3 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_with_twolinestransition' ? ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'HorizontalCategoryCard' ? ' col-xl-2 p-0 col-lg-2 col-md-12 col-sm-12 d-flex justify-content-center p-0' : item.tabexsectioninfo.sectioncompname == 'CardWithTextOnly' ? ' col-xl-2 col-lg-4 col-md-4 col-sm-6 d-flex justify-content-center p-0 ' : item.tabexsectioninfo.sectioncompname == 'Categorycard_fullimage' ? ' col-xl-2 p-0 col-lg-2 col-md-4 col-sm-12 d-flex justify-content-center p-0 ' : ' col-xl-2 col-lg-4 col-md-6 col-sm-12 d-flex justify-content-center p-0 ' : ''
11028
11620
  }, /*#__PURE__*/React__default["default"].createElement(Sectioncomp, {
11029
11621
  sectiontypeprops: 'horizontal',
11030
11622
  sectiontypeprops2: 'vertical',
@@ -11740,7 +12332,7 @@ var usflag = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoK
11740
12332
  function ownKeys$1H(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11741
12333
  function _objectSpread$1H(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1H(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1H(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
11742
12334
  var Headerresponsive = function Headerresponsive(props) {
11743
- var _logoarrayofobjects$, _logoarrayofobjects$2, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
12335
+ var _logoarrayofobjects$, _logoarrayofobjects$2, _logoarrayofobjects$3, _logoarrayofobjects$4, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
11744
12336
  var actions = props.actions;
11745
12337
  var LogoutMutationContext = props.actions.LogoutMutationContext;
11746
12338
  var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
@@ -11949,6 +12541,69 @@ var Headerresponsive = function Headerresponsive(props) {
11949
12541
  }
11950
12542
  })
11951
12543
  };
12544
+ var CartButton = function CartButton() {
12545
+ var _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
12546
+ return /*#__PURE__*/React__default["default"].createElement("div", {
12547
+ "class": "d-flex align-items-center",
12548
+ style: {
12549
+ position: 'relative'
12550
+ }
12551
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
12552
+ className: "".concat(header_cssstyles.addtocartbtn_resp) + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
12553
+ onClick: function onClick() {
12554
+ var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4;
12555
+ if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : (_fetchcustomercartQue3 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.length) > 7) {
12556
+ routingcountext(StaticPagesLinksContext.viewcart);
12557
+ } else {
12558
+ setsidecartnavshowcontext(true);
12559
+ }
12560
+ }
12561
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
12562
+ className: ' h-100 d-flex align-items-center justify-content-center '
12563
+ }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
12564
+ size: sectionproperties.cartBtniconresp_size
12565
+ }), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
12566
+ size: sectionproperties.cartBtniconresp_size
12567
+ }), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
12568
+ size: sectionproperties.cartBtniconresp_size
12569
+ }), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(RiHandbagLine.RiHandbagLine, {
12570
+ size: sectionproperties.cartBtniconresp_size
12571
+ }), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
12572
+ size: sectionproperties.cartBtniconresp_size
12573
+ }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
12574
+ size: sectionproperties.cartBtniconresp_size
12575
+ }), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React__default["default"].createElement(FiCalendar.FiCalendar, {
12576
+ size: sectionproperties.cartBtniconresp_size
12577
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
12578
+ className: "".concat(header_cssstyles.badge_counter_header_notifications),
12579
+ style: {
12580
+ top: sectionproperties.cartbadgefromtop + 'px',
12581
+ right: sectionproperties.cartbadgefromright + 'px'
12582
+ }
12583
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length : 0));
12584
+ };
12585
+ var FavButton = function FavButton() {
12586
+ return /*#__PURE__*/React__default["default"].createElement("div", {
12587
+ style: {
12588
+ position: 'relative',
12589
+ marginLeft: langdetect == 'en' ? '12px' : '16px',
12590
+ marginRight: langdetect == 'en' ? '16px' : '16px'
12591
+ }
12592
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
12593
+ className: header_cssstyles.wishlistbtn + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
12594
+ onClick: function onClick() {
12595
+ routingcountext(StaticPagesLinksContext.Wishlist);
12596
+ }
12597
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
12598
+ className: ' h-100 d-flex align-items-center justify-content-center '
12599
+ }, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, null))), /*#__PURE__*/React__default["default"].createElement("div", {
12600
+ className: "".concat(header_cssstyles.badge_counter_header_notifications),
12601
+ style: {
12602
+ top: sectionproperties.wishlistresponsivebadgefromtop + 'px',
12603
+ right: sectionproperties.wishlistresponsivebadgefromright + 'px'
12604
+ }
12605
+ }, favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length));
12606
+ };
11952
12607
  return /*#__PURE__*/React__default["default"].createElement("div", {
11953
12608
  className: "row m-0 w-100"
11954
12609
  }, /*#__PURE__*/React__default["default"].createElement("div", {
@@ -11963,7 +12618,7 @@ var Headerresponsive = function Headerresponsive(props) {
11963
12618
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11964
12619
  className: "row m-0 w-100 p-0 pl-2 pr-2 "
11965
12620
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11966
- className: "col-md-6 col-sm-5 d-flex filter align-items-center p-0"
12621
+ className: sectionproperties.searchbar_show == 'Show' ? 'col-md-6 col-sm-5 d-flex filter align-items-center p-0' : 'col-md-4 col-sm-4 d-flex filter align-items-center p-0'
11967
12622
  }, /*#__PURE__*/React__default["default"].createElement("div", {
11968
12623
  className: langdetect == 'en' ? 'mr-1' : 'ml-1',
11969
12624
  onClick: function onClick() {
@@ -11985,7 +12640,7 @@ var Headerresponsive = function Headerresponsive(props) {
11985
12640
  style: {
11986
12641
  color: sectionproperties.resp_sidenav_color
11987
12642
  }
11988
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
12643
+ }))), sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
11989
12644
  className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
11990
12645
  style: {
11991
12646
  cursor: 'pointer'
@@ -12001,8 +12656,26 @@ var Headerresponsive = function Headerresponsive(props) {
12001
12656
  maxWidth: '100%',
12002
12657
  maxHeight: '100%'
12003
12658
  }
12659
+ }))), sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
12660
+ className: 'col-md-4 col-sm-4 allcentered p-0'
12661
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
12662
+ className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
12663
+ style: {
12664
+ cursor: 'pointer'
12665
+ },
12666
+ onClick: function onClick() {
12667
+ routingcountext('home');
12668
+ }
12669
+ }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
12670
+ urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
12671
+ publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
12672
+ path: langdetect == 'en' ? (_logoarrayofobjects$3 = logoarrayofobjects[0]) === null || _logoarrayofobjects$3 === void 0 ? void 0 : _logoarrayofobjects$3.englishlogo : (_logoarrayofobjects$4 = logoarrayofobjects[0]) === null || _logoarrayofobjects$4 === void 0 ? void 0 : _logoarrayofobjects$4.arabiclogo,
12673
+ style: {
12674
+ maxWidth: '100%',
12675
+ maxHeight: '100%'
12676
+ }
12004
12677
  }))), /*#__PURE__*/React__default["default"].createElement("div", {
12005
- className: "col-md-6 col-sm-7 d-flex align-items-center justify-content-end p-0"
12678
+ className: sectionproperties.searchbar_show == 'Show' ? 'col-md-6 col-sm-7 d-flex align-items-center justify-content-end p-0' : 'col-md-4 col-sm-4 d-flex align-items-center justify-content-end p-0'
12006
12679
  }, sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("button", {
12007
12680
  "class": "".concat(header_cssstyles.userbtn_respContainer) + ' d-flex align-items-center justify-content-center p-0 m-0 font-weight-600 mt-1 '
12008
12681
  }, /*#__PURE__*/React__default["default"].createElement("p", {
@@ -12163,69 +12836,13 @@ var Headerresponsive = function Headerresponsive(props) {
12163
12836
  className: ' d-flex align-items-center m-0 p-0 '
12164
12837
  }, /*#__PURE__*/React__default["default"].createElement(BiLogOutCircle.BiLogOutCircle, null), /*#__PURE__*/React__default["default"].createElement("span", {
12165
12838
  className: langdetect == 'en' ? 'ml-2' : 'mr-2'
12166
- }, lang.logout)))))), sectionproperties.faviconshape != null && /*#__PURE__*/React__default["default"].createElement("div", {
12167
- style: {
12168
- position: 'relative',
12169
- marginLeft: langdetect == 'en' ? '12px' : '16px',
12170
- marginRight: langdetect == 'en' ? '16px' : '16px'
12171
- }
12172
- }, /*#__PURE__*/React__default["default"].createElement("button", {
12173
- className: header_cssstyles.wishlistbtn + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
12174
- onClick: function onClick() {
12175
- routingcountext(StaticPagesLinksContext.Wishlist);
12176
- }
12177
- }, /*#__PURE__*/React__default["default"].createElement("i", {
12178
- className: ' h-100 d-flex align-items-center justify-content-center '
12179
- }, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React__default["default"].createElement(AiFillStar.AiFillStar, null))), /*#__PURE__*/React__default["default"].createElement("div", {
12180
- className: "".concat(header_cssstyles.badge_counter_header_notifications),
12181
- style: {
12182
- top: sectionproperties.wishlistresponsivebadgefromtop + 'px',
12183
- right: sectionproperties.wishlistresponsivebadgefromright + 'px'
12184
- }
12185
- }, favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
12186
- style: {
12187
- position: 'relative'
12188
- },
12189
- "class": "d-flex align-items-center"
12190
- }, /*#__PURE__*/React__default["default"].createElement("button", {
12191
- className: "".concat(header_cssstyles.addtocartbtn_resp) + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
12192
- onClick: function onClick() {
12193
- var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4;
12194
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : (_fetchcustomercartQue3 = _fetchcustomercartQue2.customercart) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.cartitems) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.length) > 7) {
12195
- routingcountext(StaticPagesLinksContext.viewcart);
12196
- } else {
12197
- setsidecartnavshowcontext(true);
12198
- }
12199
- }
12200
- }, /*#__PURE__*/React__default["default"].createElement("i", {
12201
- className: ' h-100 d-flex align-items-center justify-content-center '
12202
- }, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingBag.FiShoppingBag, {
12203
- size: sectionproperties.cartBtniconresp_size
12204
- }), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React__default["default"].createElement(CgShoppingBag.CgShoppingBag, {
12205
- size: sectionproperties.cartBtniconresp_size
12206
- }), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React__default["default"].createElement(BsBag.BsBag, {
12207
- size: sectionproperties.cartBtniconresp_size
12208
- }), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React__default["default"].createElement(RiHandbagLine.RiHandbagLine, {
12209
- size: sectionproperties.cartBtniconresp_size
12210
- }), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React__default["default"].createElement(FiShoppingCart.FiShoppingCart, {
12211
- size: sectionproperties.cartBtniconresp_size
12212
- }), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
12213
- size: sectionproperties.cartBtniconresp_size
12214
- }), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React__default["default"].createElement(FiCalendar.FiCalendar, {
12215
- size: sectionproperties.cartBtniconresp_size
12216
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
12217
- className: "".concat(header_cssstyles.badge_counter_header_notifications),
12218
- style: {
12219
- top: sectionproperties.cartbadgefromtop + 'px',
12220
- right: sectionproperties.cartbadgefromright + 'px'
12221
- }
12222
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart) != null ? fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : (_fetchcustomercartQue9 = _fetchcustomercartQue8.customercart) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.cartitems) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.length : 0)))), /*#__PURE__*/React__default["default"].createElement("div", {
12839
+ }, lang.logout)))))), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Show' && FavButton(), sectionproperties.cartBtnShow == 'Show' && sectionproperties.searchbar_show == 'Show' && CartButton())), /*#__PURE__*/React__default["default"].createElement("div", {
12223
12840
  className: "row m-0 w-100 p-0",
12224
12841
  style: {
12225
12842
  borderTop: '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
12226
12843
  borderBottom: '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
12227
12844
  }
12228
- }, /*#__PURE__*/React__default["default"].createElement("div", {
12845
+ }, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
12229
12846
  className: authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : (_authdetailsContext$i2 = _authdetailsContext$i.instcurrencies) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.length) > 1 ? 'col-md-8 p-0' : 'col-md-10 p-0',
12230
12847
  style: {
12231
12848
  borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
@@ -12252,12 +12869,27 @@ var Headerresponsive = function Headerresponsive(props) {
12252
12869
  sectionpropertiesprops: sectionproperties,
12253
12870
  actions: actions,
12254
12871
  srcfromprops: 'respheader'
12255
- }))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : (_authdetailsContext$i4 = _authdetailsContext$i3.instcurrencies) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
12256
- "class": 'col-md-2 d-flex align-items-center justify-content-center pl-1 pr-1 pt-1',
12872
+ }))), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
12873
+ "class": "allcentered pt-2 pb-2",
12257
12874
  style: {
12875
+ flex: 1,
12876
+ borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
12877
+ borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
12878
+ }
12879
+ }, FavButton()), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React__default["default"].createElement("div", {
12880
+ "class": "allcentered pt-2 pb-2",
12881
+ style: {
12882
+ flex: 1,
12258
12883
  borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
12259
12884
  borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
12260
12885
  }
12886
+ }, CartButton()), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : (_authdetailsContext$i4 = _authdetailsContext$i3.instcurrencies) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
12887
+ "class": sectionproperties.searchbar_show == 'Show' ? 'col-md-2 d-flex align-items-center justify-content-center pl-1 pr-1 pt-1' : 'd-flex align-items-center justify-content-center pl-1 pr-1 pt-2 pb-2',
12888
+ style: {
12889
+ borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
12890
+ borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
12891
+ flex: sectionproperties.searchbar_show == 'Show' ? '' : 1
12892
+ }
12261
12893
  }, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
12262
12894
  "class": ' d-flex align-items-center justify-content-center '
12263
12895
  }, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -12296,7 +12928,10 @@ var Headerresponsive = function Headerresponsive(props) {
12296
12928
  "class": "m-0"
12297
12929
  }))));
12298
12930
  })))), /*#__PURE__*/React__default["default"].createElement("div", {
12299
- className: langdetect == 'en' ? 'col-md-2 allcentered pl-1 pr-1 pt-1 resposiveheader_languagedropdown' : 'col-md-2 allcentered pl-1 pr-1 pt-1'
12931
+ className: sectionproperties.searchbar_show == 'Show' ? langdetect == 'en' ? 'col-md-2 allcentered pl-1 pr-1 pt-1 resposiveheader_languagedropdown' : 'col-md-2 allcentered pl-1 pr-1 pt-1' : 'allcentered pl-1 pr-1 pt-2 pb-2 resposiveheader_languagedropdown',
12932
+ style: {
12933
+ flex: sectionproperties.searchbar_show == 'Show' ? '' : 1
12934
+ }
12300
12935
  }, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("div", {
12301
12936
  className: 'allcentered m-0 cursor-pointer'
12302
12937
  }, langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
@@ -24594,7 +25229,7 @@ styleInject(css_248z$m);
24594
25229
  function ownKeys$1s(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
24595
25230
  function _objectSpread$1s(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1s(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1s(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
24596
25231
  var HeaderWithAdSlider = function HeaderWithAdSlider(props) {
24597
- var _css, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6;
25232
+ var _css, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6, _authdetailsContext$i7, _authdetailsContext$i8, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6;
24598
25233
  var _useState = React.useState(''),
24599
25234
  _useState2 = _slicedToArray__default["default"](_useState, 2),
24600
25235
  sectionproperties = _useState2[0],
@@ -24615,6 +25250,7 @@ var HeaderWithAdSlider = function HeaderWithAdSlider(props) {
24615
25250
  var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
24616
25251
  var ikimagecredcontext = props.actions.ikimagecredcontext;
24617
25252
  var actions = props.actions;
25253
+ var setcurrencyfunccontext = props.actions.setcurrencyfunccontext;
24618
25254
  React.useEffect(function () {
24619
25255
  var secpropobj = {};
24620
25256
  StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
@@ -25049,7 +25685,50 @@ var HeaderWithAdSlider = function HeaderWithAdSlider(props) {
25049
25685
  "class": "ml-2 mr-2"
25050
25686
  }), /*#__PURE__*/React__default["default"].createElement("p", {
25051
25687
  "class": "m-0 p-0"
25052
- }, "En")))))))), /*#__PURE__*/React__default["default"].createElement("div", {
25688
+ }, "En"))), authdetailsContext != undefined && (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : (_authdetailsContext$i6 = _authdetailsContext$i5.instcurrencies) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.length) > 1 && /*#__PURE__*/React__default["default"].createElement("div", {
25689
+ "class": 'd-flex align-items-center justify-content-center pl-3 pr-3'
25690
+ }, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"], null, /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Toggle, null, /*#__PURE__*/React__default["default"].createElement("li", {
25691
+ "class": ' d-flex align-items-center justify-content-center '
25692
+ }, langdetect == 'en' && /*#__PURE__*/React__default["default"].createElement("div", {
25693
+ "class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
25694
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
25695
+ "class": "m-0 p-0 mr-2 ml-2",
25696
+ style: {
25697
+ fontSize: '16px'
25698
+ }
25699
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, {
25700
+ size: 16
25701
+ })), langdetect == 'ar' && /*#__PURE__*/React__default["default"].createElement("div", {
25702
+ "class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
25703
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
25704
+ "class": "m-0 p-0 ml-2 mr-2",
25705
+ style: {
25706
+ fontSize: '16px'
25707
+ }
25708
+ }, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React__default["default"].createElement(MdKeyboardArrowDown.MdKeyboardArrowDown, {
25709
+ size: 16
25710
+ })))), /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Menu, null, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : (_authdetailsContext$i8 = _authdetailsContext$i7.instcurrencies) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.map(function (item, index) {
25711
+ var _authdetailsContext$i9, _authdetailsContext$i10;
25712
+ return /*#__PURE__*/React__default["default"].createElement(Dropdown__default["default"].Item, {
25713
+ onClick: function onClick() {
25714
+ setcurrencyfunccontext(item);
25715
+ }
25716
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
25717
+ "class": "row m-0 w-100"
25718
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
25719
+ "class": "col-lg-12 p-0 d-flex justify-content-start"
25720
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
25721
+ "class": "".concat(header_cssstyles.dropdownitemcontainer) + ' allcenetered m-0 p-0 '
25722
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
25723
+ "class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem allcenetered m-0 p-0 '
25724
+ }, /*#__PURE__*/React__default["default"].createElement(FaMoneyBillWave.FaMoneyBillWave, null), /*#__PURE__*/React__default["default"].createElement("span", {
25725
+ "class": 'ml-2 mr-2'
25726
+ }, langdetect == 'en' ? item.currencyname_en : item.currencyname_ar)))), index != (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i9 = authdetailsContext.instinfo) === null || _authdetailsContext$i9 === void 0 ? void 0 : (_authdetailsContext$i10 = _authdetailsContext$i9.instcurrencies) === null || _authdetailsContext$i10 === void 0 ? void 0 : _authdetailsContext$i10.length) - 1 && /*#__PURE__*/React__default["default"].createElement("div", {
25727
+ "class": "col-lg-12 p-0"
25728
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
25729
+ "class": "m-0"
25730
+ }))));
25731
+ }))))))))), /*#__PURE__*/React__default["default"].createElement("div", {
25053
25732
  "class": ' col-lg-12 p-0 allcentered '
25054
25733
  }, /*#__PURE__*/React__default["default"].createElement("div", {
25055
25734
  "class": header_cssstyles.divider
@@ -39278,7 +39957,7 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
39278
39957
  };
39279
39958
  var Content = function Content() {
39280
39959
  return /*#__PURE__*/React__default["default"].createElement("div", {
39281
- "class": "col-lg-6 col-md-12 d-flex justify-content-start h-100 h-md-auto justify-content-md-center pl-0 pr-0",
39960
+ "class": sectionproperties.image_show == 'show' ? 'col-lg-6 col-md-12 d-flex justify-content-start h-100 h-md-auto justify-content-md-center pl-0 pr-0' : 'col-lg-12 col-md-12 d-flex justify-content-start h-100 h-md-auto justify-content-md-center pl-0 pr-0',
39282
39961
  style: {
39283
39962
  background: sectionproperties.reservation_bgcolor,
39284
39963
  alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
@@ -39446,7 +40125,7 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
39446
40125
  width: sectionproperties.width + 'vw'
39447
40126
  }
39448
40127
  }, /*#__PURE__*/React__default["default"].createElement("div", {
39449
- "class": sectionproperties.paddingLeft != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : sectionproperties.paddingRight != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between',
40128
+ "class": sectionproperties.paddingLeft != 0 && sectionproperties.paddingRight != 0 ? 'row m-0 w-100 d-flex justify-content-between plr-1025-1 pr-md-3 pl-md-3' : sectionproperties.paddingLeft != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : sectionproperties.paddingRight != 0 ? langdetect == 'en' ? 'row m-0 w-100 d-flex justify-content-between pr-1025-1 pr-md-3' : 'row m-0 w-100 d-flex justify-content-between pl-1025-1 pl-md-3' : 'row m-0 w-100 d-flex justify-content-between',
39450
40129
  style: {
39451
40130
  paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
39452
40131
  paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
@@ -39467,7 +40146,7 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
39467
40146
  alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
39468
40147
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
39469
40148
  }
39470
- }, Content(), Image())), sectionproperties.sectionstyle == 'Image on left' && /*#__PURE__*/React__default["default"].createElement("div", {
40149
+ }, Content(), sectionproperties.image_show == 'show' && Image())), sectionproperties.sectionstyle == 'Image on left' && /*#__PURE__*/React__default["default"].createElement("div", {
39471
40150
  "class": "col-lg-12 p-0 d-flex justify-content-between"
39472
40151
  }, /*#__PURE__*/React__default["default"].createElement("div", {
39473
40152
  "class": "row m-0 w-100 d-flex justify-content-between",
@@ -39475,7 +40154,7 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
39475
40154
  alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
39476
40155
  justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
39477
40156
  }
39478
- }, Image(), Content())))));
40157
+ }, sectionproperties.image_show == 'show' && Image(), Content())))));
39479
40158
  };
39480
40159
 
39481
40160
  function ownKeys$Q(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -44345,8 +45024,8 @@ var NewProductcard = function NewProductcard(props) {
44345
45024
  minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
44346
45025
  maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
44347
45026
  '@media (max-width: 800px)': {
44348
- minWidth: sectionproperties.widthresponsive + 'px',
44349
- maxWidth: sectionproperties.widthresponsive + 'px'
45027
+ minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
45028
+ maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
44350
45029
  }
44351
45030
  }),
44352
45031
  innerproductcard: glamor.css((_css = {
@@ -47135,7 +47814,7 @@ var Categorycard_with_twolinestransition = function Categorycard_with_twolinestr
47135
47814
  }, langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar)))))));
47136
47815
  };
47137
47816
 
47138
- var css_248z$a = ".Categorcycard_fullimage-module_categorycardtext__WLY3- {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n display: flex;\n justify-content: center;\n width: 100%;\n}";
47817
+ var css_248z$a = ".Categorcycard_fullimage-module_categorycardtext__WLY3- {\n position: absolute;\n left: 0;\n right: 0;\n bottom: 0;\n top: 0;\n display: flex;\n justify-content: center;\n width: 100%;\n width: 100%;\n}";
47139
47818
  var cardstyles$5 = {"categorycardtext":"Categorcycard_fullimage-module_categorycardtext__WLY3-"};
47140
47819
  styleInject(css_248z$a);
47141
47820
 
@@ -47295,11 +47974,11 @@ var Categorycard_fullimage = function Categorycard_fullimage(props) {
47295
47974
  }, /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
47296
47975
  urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
47297
47976
  publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
47298
- path: item.image,
47977
+ path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
47299
47978
  style: {
47300
47979
  width: '100%',
47301
47980
  height: '100%',
47302
- objectFit: 'cover'
47981
+ objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
47303
47982
  },
47304
47983
  loading: "lazy"
47305
47984
  }), /*#__PURE__*/React__default["default"].createElement("div", {
@@ -48507,7 +49186,7 @@ var Horizontalcard = function Horizontalcard(props) {
48507
49186
  paddingBottom: sectionproperties.paddingBottom + 'px'
48508
49187
  }
48509
49188
  }, sectionproperties.image_show == 'show' && /*#__PURE__*/React__default["default"].createElement("div", {
48510
- "class": props.numberOfColsvertical == '1' ? 'col-lg-2 col-md-2 col-sm-2 p-0 h-100' : 'col-lg-4 col-md-4 col-sm-4 p-0 h-100'
49189
+ "class": props.numberOfColsvertical == '1' ? 'col-lg-2 col-md-3 col-sm-3 p-0 h-100' : 'col-lg-4 col-md-4 col-sm-4 p-0 h-100'
48511
49190
  }, /*#__PURE__*/React__default["default"].createElement("div", {
48512
49191
  "class": "d-flex d-md-none",
48513
49192
  onClick: function onClick() {
@@ -48584,7 +49263,7 @@ var Horizontalcard = function Horizontalcard(props) {
48584
49263
  fontSize: sectionproperties.badge_fontsize + 'px'
48585
49264
  }
48586
49265
  }, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))), /*#__PURE__*/React__default["default"].createElement("div", {
48587
- "class": sectionproperties.image_show == 'show' ? props.numberOfColsvertical == '1' ? 'col-lg-10 col-md-8 col-sm-8 pt-2' : 'col-lg-8 col-md-8 col-sm-8 pt-2' : 'col-lg-12 col-md-12 col-sm-12 pt-2',
49266
+ "class": sectionproperties.image_show == 'show' ? props.numberOfColsvertical == '1' ? 'col-lg-10 col-md-9 col-sm-9 pt-2' : 'col-lg-8 col-md-8 col-sm-8 pt-2' : 'col-lg-12 col-md-12 col-sm-12 pt-2',
48588
49267
  style: {
48589
49268
  paddingRight: langdetect == 'en' ? 0 : '',
48590
49269
  paddingLeft: langdetect == 'ar' ? 0 : '',
@@ -48647,7 +49326,7 @@ var Horizontalcard = function Horizontalcard(props) {
48647
49326
  textAlign: langdetect == 'en' ? 'left' : 'right'
48648
49327
  }
48649
49328
  }, plainString(langdetect == 'en' ? item.description_en : item.description_ar))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical == '1' && /*#__PURE__*/React__default["default"].createElement("div", {
48650
- "class": "col-lg-3 col-md-3 col-sm-3 p-0 d-flex align-items-center justify-content-end"
49329
+ "class": "col-lg-3 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end justify-content-md-start"
48651
49330
  }, /*#__PURE__*/React__default["default"].createElement("button", {
48652
49331
  "class": card_cssstyles.cart_btn,
48653
49332
  onClick: function onClick() {
@@ -50943,28 +51622,23 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
50943
51622
  var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
50944
51623
  var ikimagecredcontext = props.actions.ikimagecredcontext;
50945
51624
  React.useEffect(function () {
50946
- if (props.srcfrom == 'addsectionform') {
50947
- var secpropobj = {};
50948
- props.defaultproperties.forEach(function (defaultpropobj, defaultpropindex) {
50949
- secpropobj[defaultpropobj.property_css_name] = defaultpropobj.property_value;
50950
- });
50951
- setsectionproperties(_objectSpread$b({}, secpropobj));
50952
- } else {
50953
- var secpropobj = {};
50954
- StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
50955
- if (sectionitem.sectionid == props.sectionidprops) {
50956
- sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
50957
- secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
50958
- });
50959
- }
50960
- });
50961
- setsectionproperties(_objectSpread$b({}, secpropobj));
50962
- }
51625
+ var secpropobj = {};
51626
+ StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
51627
+ if (sectionitem.sectionid == props.sectionidprops) {
51628
+ sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
51629
+ secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
51630
+ });
51631
+ }
51632
+ });
51633
+ setsectionproperties(_objectSpread$b({}, secpropobj));
50963
51634
  }, [StatePagePropertiesContext]);
50964
51635
  React.useEffect(function () {
50965
51636
  setitem(props.cardinfoitemprops);
50966
51637
  }, [props.cardinfoitemprops]);
50967
51638
  var card_cssstyles = {
51639
+ cardcont: glamor.css({
51640
+ width: sectionproperties.width + 'px'
51641
+ }),
50968
51642
  productcard: glamor.css({
50969
51643
  position: 'relative',
50970
51644
  background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
@@ -51044,8 +51718,8 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
51044
51718
  }
51045
51719
  }),
51046
51720
  cart_btn: glamor.css({
51047
- width: sectionproperties.cartBtnWidth + 'px',
51048
- height: sectionproperties.cartBtnHeight + 'px',
51721
+ width: sectionproperties.cartBtnWidth == 0 ? 'auto' : sectionproperties.cartBtnWidth + 'px',
51722
+ height: sectionproperties.cartBtnHeight == 0 ? 'auto' : sectionproperties.cartBtnHeight + 'px',
51049
51723
  background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
51050
51724
  borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
51051
51725
  color: sectionproperties.cartBtnTextcolor,
@@ -51061,7 +51735,9 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
51061
51735
  })
51062
51736
  };
51063
51737
  return /*#__PURE__*/React__default["default"].createElement("div", {
51064
- "class": "row m-0 w-100",
51738
+ "class": props.sectiontypeprops2 == 'vertical' ? 'w-100' : "".concat(card_cssstyles.cardcont)
51739
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
51740
+ "class": "row m-0 w-100 pl-sm-2 pr-sm-2",
51065
51741
  style: {
51066
51742
  paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
51067
51743
  paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
@@ -51188,7 +51864,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
51188
51864
  size: sectionproperties.favBtnIconfontsize
51189
51865
  }), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React__default["default"].createElement(FaRegHeart.FaRegHeart, {
51190
51866
  size: sectionproperties.favBtnIconfontsize
51191
- }))))))));
51867
+ })))))))));
51192
51868
  };
51193
51869
 
51194
51870
  function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
@@ -54126,6 +54802,7 @@ var returnLibrary = function returnLibrary() {
54126
54802
  AwesomeButton: AwesomeButton,
54127
54803
  Checkout: Checkout,
54128
54804
  Signup: Signup,
54805
+ AddReview: AddReview,
54129
54806
  Productinfo: Productinfo,
54130
54807
  Ordershistory: Ordershistory,
54131
54808
  Wishlist: Wishlist,