tabexseriescomponents 0.0.249 → 0.0.251
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 +1095 -418
- package/dist/index.esm.js +1092 -417
- package/dist/index.umd.js +1096 -421
- package/package.json +3 -1
- package/src.zip +0 -0
- package/src-components.zip +0 -0
package/dist/index.esm.js
CHANGED
|
@@ -31,6 +31,7 @@ import { AiFillStar } from '@react-icons/all-files/ai/AiFillStar';
|
|
|
31
31
|
import { AiOutlineStar } from '@react-icons/all-files/ai/AiOutlineStar';
|
|
32
32
|
import { FacebookShareButton, FacebookIcon, TwitterShareButton, TwitterIcon, WhatsappShareButton, WhatsappIcon } from 'react-share';
|
|
33
33
|
import { IKImage } from 'imagekitio-react';
|
|
34
|
+
import ReactStars from 'react-rating-stars-component';
|
|
34
35
|
import { Box, Tabs, Tab } from '@mui/material';
|
|
35
36
|
import { AiOutlineClockCircle } from '@react-icons/all-files/ai/AiOutlineClockCircle';
|
|
36
37
|
import { AiOutlinePlus } from '@react-icons/all-files/ai/AiOutlinePlus';
|
|
@@ -40,6 +41,7 @@ import { HiOutlinePhone } from '@react-icons/all-files/hi/HiOutlinePhone';
|
|
|
40
41
|
import { AiOutlineMail } from '@react-icons/all-files/ai/AiOutlineMail';
|
|
41
42
|
import { FaShippingFast } from '@react-icons/all-files/fa/FaShippingFast';
|
|
42
43
|
import { RiSecurePaymentLine } from '@react-icons/all-files/ri/RiSecurePaymentLine';
|
|
44
|
+
import TextareaAutosize from 'react-textarea-autosize';
|
|
43
45
|
import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
|
|
44
46
|
import { AiOutlineSecurityScan } from '@react-icons/all-files/ai/AiOutlineSecurityScan';
|
|
45
47
|
import { FaStar } from '@react-icons/all-files/fa/FaStar';
|
|
@@ -52,7 +54,6 @@ import { FiLayers } from '@react-icons/all-files/fi/FiLayers';
|
|
|
52
54
|
import { HiOutlineTrash } from '@react-icons/all-files/hi/HiOutlineTrash';
|
|
53
55
|
import { BiSad } from '@react-icons/all-files/bi/BiSad';
|
|
54
56
|
import { FiCalendar } from '@react-icons/all-files/fi/FiCalendar';
|
|
55
|
-
import TextareaAutosize from 'react-textarea-autosize';
|
|
56
57
|
import { HiUser } from '@react-icons/all-files/hi/HiUser';
|
|
57
58
|
import { GrMail } from '@react-icons/all-files/gr/GrMail';
|
|
58
59
|
import { FiCheckCircle } from '@react-icons/all-files/fi/FiCheckCircle';
|
|
@@ -69,6 +70,7 @@ import { IoBagRemoveOutline } from '@react-icons/all-files/io5/IoBagRemoveOutlin
|
|
|
69
70
|
import Dropdown from 'react-bootstrap/Dropdown';
|
|
70
71
|
import { FiChevronUp } from '@react-icons/all-files/fi/FiChevronUp';
|
|
71
72
|
import { FiChevronDown } from '@react-icons/all-files/fi/FiChevronDown';
|
|
73
|
+
import InputRange from 'react-input-range';
|
|
72
74
|
import { useInView } from 'react-intersection-observer';
|
|
73
75
|
import { FaArrowAltCircleRight } from '@react-icons/all-files/fa/FaArrowAltCircleRight';
|
|
74
76
|
import { FaArrowAltCircleLeft } from '@react-icons/all-files/fa/FaArrowAltCircleLeft';
|
|
@@ -262,8 +264,9 @@ var LanguageProvider = /*#__PURE__*/function (_Component) {
|
|
|
262
264
|
loginwithfacebook: 'Sign in with facebook',
|
|
263
265
|
orsigninwith: 'Or Sign in with',
|
|
264
266
|
orsignupwith: 'Or Sign up with'
|
|
265
|
-
}, _defineProperty(_en, "price", 'Price'), _defineProperty(_en, "relatedproducts", 'Related products'), _defineProperty(_en, "qty", 'QTY'), _defineProperty(_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty(_en, "shopnow", 'Shop now'), _defineProperty(_en, "total", 'Total'), _defineProperty(_en, "otherinformation", 'Other information'), _defineProperty(_en, "productname", 'Product name'), _defineProperty(_en, "quantity", 'Quantity'), _defineProperty(_en, "orderid", 'Order ID'), _defineProperty(_en, "numberofproducts", 'Number of products'), _defineProperty(_en, "checkyourorder", 'Check your order'), _defineProperty(_en, "search", 'Search'), _defineProperty(_en, "searchproducts", 'Search for products...'), _defineProperty(_en, "choosecity", 'Choose city'), _defineProperty(_en, "choosestategov", 'Choose state/governorate'), _defineProperty(_en, "choosecountry", 'Choose country'), _defineProperty(_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty(_en, "nosearchresults", 'No search results'), _defineProperty(_en, "sale", 'Sale'), _defineProperty(_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty(_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty(_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty(_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty(_en, "promocoderemoved", 'Promo code is removed'), _defineProperty(_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty(_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty(_en, "addedtowishlist", 'Added to your favourites'), _defineProperty(_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty(_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty(_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty(_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty(_en, "subtotal", 'Sub total'), _defineProperty(_en, "discount", 'Discount'), _defineProperty(_en, "outofzone", 'Out of zone'), _defineProperty(_en, "total", 'Total'), _defineProperty(_en, "cod", 'Cash on Delivery'), _defineProperty(_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty(_en, "onlinepayment", 'Online Payment'), _defineProperty(_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty(_en, "shippingfees", 'Shipping fees'), _defineProperty(_en, "shippingaddress", 'Shipping address'), _defineProperty(_en, "cardnumber", 'Card number'), _defineProperty(_en, "year", 'Year'), _defineProperty(_en, "month", 'Month'), _defineProperty(_en, "cvv", 'CVV'), _defineProperty(_en, "nameoncard", 'Name On Card'), _defineProperty(_en, "country", 'Country'), _defineProperty(_en, "addressdetails", 'ِAddress details'), _defineProperty(_en, "stategov", 'State/Governorate'), _defineProperty(_en, "city", 'City'), _defineProperty(_en, "paymentmethod", 'Payment method'), _defineProperty(_en, "productimage", 'Product image'), _defineProperty(_en, "orderdetails", 'Order details'), _defineProperty(_en, "orderinvoice", 'Order invoice'), _defineProperty(_en, "promocodediscount", 'Promo code discount'), _defineProperty(_en, "address", 'Address'), _defineProperty(_en, "update", 'Update'), _defineProperty(_en, "phonenumber", 'Mobile number'), _defineProperty(_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty(_en, "name", 'Name'), _defineProperty(_en, "email", 'Email'), _defineProperty(_en, "password", 'Password'), _defineProperty(_en, "confirmpassword", 'Confirm password'), _defineProperty(_en, "showmore", 'Show more'), _defineProperty(_en, "showless", 'Show less'), _defineProperty(_en, "contactdetails", 'Contact Information'), _defineProperty(_en, "asaguest", 'As a guest'), _defineProperty(_en, "choosecountryfirst", 'Please choose country first'), _defineProperty(_en, "security", 'Security'), _defineProperty(_en, "personalinformation", 'Personal Information'), _defineProperty(_en, "contactus", 'Contact us'), _defineProperty(_en, "slogan", 'Your website & mobile application in one place'), _defineProperty(_en, "recent", 'Recent'), _defineProperty(_en, "oldest", 'Oldest'), _defineProperty(_en, "pricehightolow", 'High to low'), _defineProperty(_en, "pricelowtohigh", 'Low to High'), _en),
|
|
267
|
+
}, _defineProperty(_en, "price", 'Price'), _defineProperty(_en, "relatedproducts", 'Related products'), _defineProperty(_en, "qty", 'QTY'), _defineProperty(_en, "emptyshoppingcart", 'Your shopping cart is empty'), _defineProperty(_en, "shopnow", 'Shop now'), _defineProperty(_en, "total", 'Total'), _defineProperty(_en, "otherinformation", 'Other information'), _defineProperty(_en, "productname", 'Product name'), _defineProperty(_en, "quantity", 'Quantity'), _defineProperty(_en, "orderid", 'Order ID'), _defineProperty(_en, "numberofproducts", 'Number of products'), _defineProperty(_en, "checkyourorder", 'Check your order'), _defineProperty(_en, "search", 'Search'), _defineProperty(_en, "searchproducts", 'Search for products...'), _defineProperty(_en, "choosecity", 'Choose city'), _defineProperty(_en, "choosestategov", 'Choose state/governorate'), _defineProperty(_en, "choosecountry", 'Choose country'), _defineProperty(_en, "giftcarddicountcode", 'Gift Card Or Discount Code...'), _defineProperty(_en, "nosearchresults", 'No search results'), _defineProperty(_en, "sale", 'Sale'), _defineProperty(_en, "nofavoriteproducts", 'Your wishlist is empty'), _defineProperty(_en, "loggedoutsuccess", 'Logged out successfully'), _defineProperty(_en, "addedtocartsuccess", 'Cart is updated successfully'), _defineProperty(_en, "promocodeapplied", 'Promo code is applied.'), _defineProperty(_en, "promocoderemoved", 'Promo code is removed'), _defineProperty(_en, "countryandstateupdatedsuccess", 'Country and state are updated successfully'), _defineProperty(_en, "orderaddedsuccess", 'Order is added successfully'), _defineProperty(_en, "addedtowishlist", 'Added to your favourites'), _defineProperty(_en, "productrmovedfromwishlist", 'Removed from your favourites'), _defineProperty(_en, "fillthemissingfields", 'Please complete the missing fields'), _defineProperty(_en, "passwordsdontmatch", "Passwords don't match"), _defineProperty(_en, "loggedinsuccess", 'Logged in successfully'), _defineProperty(_en, "subtotal", 'Sub total'), _defineProperty(_en, "discount", 'Discount'), _defineProperty(_en, "outofzone", 'Out of zone'), _defineProperty(_en, "total", 'Total'), _defineProperty(_en, "cod", 'Cash on Delivery'), _defineProperty(_en, "cardondelivery", 'Credit Card On Delivery'), _defineProperty(_en, "onlinepayment", 'Online Payment'), _defineProperty(_en, "paymentcardinformation", 'Payment Card Information'), _defineProperty(_en, "shippingfees", 'Shipping fees'), _defineProperty(_en, "shippingaddress", 'Shipping address'), _defineProperty(_en, "cardnumber", 'Card number'), _defineProperty(_en, "year", 'Year'), _defineProperty(_en, "month", 'Month'), _defineProperty(_en, "cvv", 'CVV'), _defineProperty(_en, "nameoncard", 'Name On Card'), _defineProperty(_en, "country", 'Country'), _defineProperty(_en, "addressdetails", 'ِAddress details'), _defineProperty(_en, "stategov", 'State/Governorate'), _defineProperty(_en, "city", 'City'), _defineProperty(_en, "paymentmethod", 'Payment method'), _defineProperty(_en, "productimage", 'Product image'), _defineProperty(_en, "orderdetails", 'Order details'), _defineProperty(_en, "orderinvoice", 'Order invoice'), _defineProperty(_en, "promocodediscount", 'Promo code discount'), _defineProperty(_en, "address", 'Address'), _defineProperty(_en, "update", 'Update'), _defineProperty(_en, "phonenumber", 'Mobile number'), _defineProperty(_en, "completerequiredfields", 'Please complete all required fields'), _defineProperty(_en, "name", 'Name'), _defineProperty(_en, "email", 'Email'), _defineProperty(_en, "password", 'Password'), _defineProperty(_en, "confirmpassword", 'Confirm password'), _defineProperty(_en, "showmore", 'Show more'), _defineProperty(_en, "showless", 'Show less'), _defineProperty(_en, "contactdetails", 'Contact Information'), _defineProperty(_en, "asaguest", 'As a guest'), _defineProperty(_en, "choosecountryfirst", 'Please choose country first'), _defineProperty(_en, "security", 'Security'), _defineProperty(_en, "personalinformation", 'Personal Information'), _defineProperty(_en, "contactus", 'Contact us'), _defineProperty(_en, "slogan", 'Your website & mobile application in one place'), _defineProperty(_en, "recent", 'Recent'), _defineProperty(_en, "oldest", 'Oldest'), _defineProperty(_en, "pricehightolow", 'High to low'), _defineProperty(_en, "pricelowtohigh", 'Low to High'), _defineProperty(_en, "pleasecompleteaddressmissingfields", 'Please complete the missing address fields'), _en),
|
|
266
268
|
ar: (_ar = {
|
|
269
|
+
pleasecompleteaddressmissingfields: 'من فضلك اكمل باقى بيانات العنوان',
|
|
267
270
|
loginregister: 'تسجيل الدخول/إنشاء حساب جديد',
|
|
268
271
|
pleaselogintocheckout: 'قم بتسجيل دخول لاستكمال طلبك',
|
|
269
272
|
reservationtime: 'ميعاد الحجز',
|
|
@@ -411,7 +414,9 @@ var ProductsCardsSectionContext_Provider = function ProductsCardsSectionContext_
|
|
|
411
414
|
sortprice: '',
|
|
412
415
|
sortdates: '',
|
|
413
416
|
page: 0,
|
|
414
|
-
vendorsarr: []
|
|
417
|
+
vendorsarr: [],
|
|
418
|
+
minrate: 0,
|
|
419
|
+
maxrate: 5
|
|
415
420
|
}),
|
|
416
421
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
417
422
|
ProductFilterObjContext = _useState4[0],
|
|
@@ -534,8 +539,8 @@ var FacebookLoginButton = function FacebookLoginButton(props) {
|
|
|
534
539
|
}));
|
|
535
540
|
};
|
|
536
541
|
|
|
537
|
-
function ownKeys$
|
|
538
|
-
function _objectSpread$
|
|
542
|
+
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; }
|
|
543
|
+
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(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; }
|
|
539
544
|
var Login = function Login(props) {
|
|
540
545
|
var _css;
|
|
541
546
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -604,7 +609,7 @@ var Login = function Login(props) {
|
|
|
604
609
|
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) {
|
|
605
610
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
606
611
|
});
|
|
607
|
-
setsectionproperties(_objectSpread$
|
|
612
|
+
setsectionproperties(_objectSpread$21({}, secpropobj));
|
|
608
613
|
}
|
|
609
614
|
}, [StatePagePropertiesContext]);
|
|
610
615
|
useEffect(function () {
|
|
@@ -763,9 +768,9 @@ var Login = function Login(props) {
|
|
|
763
768
|
className: "".concat(loginstyles2.form_control),
|
|
764
769
|
value: payloadobj.email,
|
|
765
770
|
onChange: function onChange(event) {
|
|
766
|
-
var temppayloadobj = _objectSpread$
|
|
771
|
+
var temppayloadobj = _objectSpread$21({}, payloadobj);
|
|
767
772
|
temppayloadobj.email = event.target.value;
|
|
768
|
-
setpayloadobj(_objectSpread$
|
|
773
|
+
setpayloadobj(_objectSpread$21({}, temppayloadobj));
|
|
769
774
|
},
|
|
770
775
|
style: {
|
|
771
776
|
background: 'transparent'
|
|
@@ -786,9 +791,9 @@ var Login = function Login(props) {
|
|
|
786
791
|
textplaceholder: "",
|
|
787
792
|
value: payloadobj.password,
|
|
788
793
|
onChange: function onChange(event) {
|
|
789
|
-
var temppayloadobj = _objectSpread$
|
|
794
|
+
var temppayloadobj = _objectSpread$21({}, payloadobj);
|
|
790
795
|
temppayloadobj.password = event.target.value;
|
|
791
|
-
setpayloadobj(_objectSpread$
|
|
796
|
+
setpayloadobj(_objectSpread$21({}, temppayloadobj));
|
|
792
797
|
}
|
|
793
798
|
}), /*#__PURE__*/React.createElement("span", {
|
|
794
799
|
className: langdetect == 'en' ? loginstyles$1.login_input_icon : loginstyles$1.login_input_icontrans
|
|
@@ -921,9 +926,9 @@ var Login = function Login(props) {
|
|
|
921
926
|
className: "".concat(loginstyles2.form_control),
|
|
922
927
|
value: forgotpasswordpayload.email,
|
|
923
928
|
onChange: function onChange(event) {
|
|
924
|
-
var temppayloadobj = _objectSpread$
|
|
929
|
+
var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
|
|
925
930
|
temppayloadobj.email = event.target.value;
|
|
926
|
-
setforgotpasswordpayload(_objectSpread$
|
|
931
|
+
setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
|
|
927
932
|
},
|
|
928
933
|
disabled: forgetpasswordstage == 'verify' ? true : false
|
|
929
934
|
}), /*#__PURE__*/React.createElement("span", {
|
|
@@ -941,9 +946,9 @@ var Login = function Login(props) {
|
|
|
941
946
|
className: "".concat(loginstyles2.form_control),
|
|
942
947
|
value: forgotpasswordpayload.code,
|
|
943
948
|
onChange: function onChange(event) {
|
|
944
|
-
var temppayloadobj = _objectSpread$
|
|
949
|
+
var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
|
|
945
950
|
temppayloadobj.code = event.target.value;
|
|
946
|
-
setforgotpasswordpayload(_objectSpread$
|
|
951
|
+
setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
|
|
947
952
|
}
|
|
948
953
|
})), /*#__PURE__*/React.createElement("div", {
|
|
949
954
|
className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0"
|
|
@@ -954,9 +959,9 @@ var Login = function Login(props) {
|
|
|
954
959
|
className: "".concat(loginstyles2.form_control),
|
|
955
960
|
value: forgotpasswordpayload.newpassword,
|
|
956
961
|
onChange: function onChange(event) {
|
|
957
|
-
var temppayloadobj = _objectSpread$
|
|
962
|
+
var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
|
|
958
963
|
temppayloadobj.newpassword = event.target.value;
|
|
959
|
-
setforgotpasswordpayload(_objectSpread$
|
|
964
|
+
setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
|
|
960
965
|
}
|
|
961
966
|
})), /*#__PURE__*/React.createElement("div", {
|
|
962
967
|
className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0"
|
|
@@ -967,9 +972,9 @@ var Login = function Login(props) {
|
|
|
967
972
|
className: "".concat(loginstyles2.form_control),
|
|
968
973
|
value: forgotpasswordpayload.confirmnewpassword,
|
|
969
974
|
onChange: function onChange(event) {
|
|
970
|
-
var temppayloadobj = _objectSpread$
|
|
975
|
+
var temppayloadobj = _objectSpread$21({}, forgotpasswordpayload);
|
|
971
976
|
temppayloadobj.confirmnewpassword = event.target.value;
|
|
972
|
-
setforgotpasswordpayload(_objectSpread$
|
|
977
|
+
setforgotpasswordpayload(_objectSpread$21({}, temppayloadobj));
|
|
973
978
|
}
|
|
974
979
|
}))))), /*#__PURE__*/React.createElement(Modal.Footer, null, /*#__PURE__*/React.createElement("div", {
|
|
975
980
|
className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center mb-3 "
|
|
@@ -978,7 +983,7 @@ var Login = function Login(props) {
|
|
|
978
983
|
onClick: function onClick() {
|
|
979
984
|
if (forgotpasswordpayload.email.length != 0) {
|
|
980
985
|
var runfunc = false;
|
|
981
|
-
var tempforgotpasswordpayload = _objectSpread$
|
|
986
|
+
var tempforgotpasswordpayload = _objectSpread$21({}, forgotpasswordpayload);
|
|
982
987
|
tempforgotpasswordpayload.functype = forgetpasswordstage;
|
|
983
988
|
if (forgetpasswordstage == 'verify') {
|
|
984
989
|
if (tempforgotpasswordpayload.newpassword.length != 0 && tempforgotpasswordpayload.code.length != 0) {
|
|
@@ -1272,10 +1277,10 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1272
1277
|
}, '-' + 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 + '%'))))));
|
|
1273
1278
|
};
|
|
1274
1279
|
|
|
1275
|
-
function ownKeys$
|
|
1276
|
-
function _objectSpread$
|
|
1280
|
+
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; }
|
|
1281
|
+
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(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; }
|
|
1277
1282
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1278
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
|
|
1283
|
+
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;
|
|
1279
1284
|
var lang = props.actions.lang;
|
|
1280
1285
|
var langdetect = props.actions.langdetect;
|
|
1281
1286
|
var srcfromprops = props.actions.srcfromprops;
|
|
@@ -1301,6 +1306,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1301
1306
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
1302
1307
|
props.actions.quantityconditionfoundobjprops;
|
|
1303
1308
|
props.actions.ikimagecredcontext;
|
|
1309
|
+
var currentshowingimageindex = props.actions.currentshowingimageindex;
|
|
1310
|
+
props.actions.setcurrentshowingimageindex;
|
|
1304
1311
|
var StoreInfoprops = props.actions.StoreInfoprops;
|
|
1305
1312
|
var _useState = useState(false),
|
|
1306
1313
|
_useState2 = _slicedToArray(_useState, 2);
|
|
@@ -1378,13 +1385,14 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1378
1385
|
thumbnailPosition: sectionproperties.thumbnailposition == 'Bottom' ? 'bottom' : 'left',
|
|
1379
1386
|
showNav: false,
|
|
1380
1387
|
showPlayButton: false,
|
|
1381
|
-
showFullscreenButton: true
|
|
1388
|
+
showFullscreenButton: true,
|
|
1389
|
+
startIndex: currentshowingimageindex
|
|
1382
1390
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
1383
1391
|
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'
|
|
1384
1392
|
}, /*#__PURE__*/React.createElement("div", {
|
|
1385
1393
|
className: "row m-0 w-100"
|
|
1386
|
-
},
|
|
1387
|
-
className:
|
|
1394
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1395
|
+
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'
|
|
1388
1396
|
}, /*#__PURE__*/React.createElement("p", {
|
|
1389
1397
|
className: "".concat(productinfo_cssstyles.productname, " ").concat(productinfo_cssstyles.productnamehover) + ' m-0 p-0 wordbreak d-flex justify-content-start cursor-pointer font-sm-15 ',
|
|
1390
1398
|
onClick: function onClick() {
|
|
@@ -1393,12 +1401,31 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1393
1401
|
style: {
|
|
1394
1402
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1395
1403
|
}
|
|
1396
|
-
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)),
|
|
1397
|
-
className: "col-lg-
|
|
1398
|
-
}, /*#__PURE__*/React.createElement(
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1404
|
+
}, 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.createElement("div", {
|
|
1405
|
+
className: "col-lg-4 col-md-4 col-sm-4 p-0 mb-1 d-flex justify-content-end align-items-center"
|
|
1406
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
1407
|
+
count: 5,
|
|
1408
|
+
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,
|
|
1409
|
+
edit: false,
|
|
1410
|
+
size: 18,
|
|
1411
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
1412
|
+
className: "far fa-star",
|
|
1413
|
+
style: {
|
|
1414
|
+
color: '#FAB400'
|
|
1415
|
+
}
|
|
1416
|
+
}),
|
|
1417
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
1418
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
1419
|
+
}),
|
|
1420
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
1421
|
+
className: "fa fa-star",
|
|
1422
|
+
style: {
|
|
1423
|
+
color: '#FAB400'
|
|
1424
|
+
}
|
|
1425
|
+
}),
|
|
1426
|
+
activeColor: "#ffd700"
|
|
1427
|
+
})), sectionproperties.showSKU == 'Show' && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React.createElement("div", {
|
|
1428
|
+
"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'
|
|
1402
1429
|
}, /*#__PURE__*/React.createElement("p", {
|
|
1403
1430
|
"class": "m-0 p-0 d-flex justify-content-start"
|
|
1404
1431
|
}, /*#__PURE__*/React.createElement("span", {
|
|
@@ -1416,7 +1443,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1416
1443
|
fontSize: sectionproperties.skuFontSize + 'px',
|
|
1417
1444
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1418
1445
|
}
|
|
1419
|
-
}, fetchProductInfoQueryContext.data.data.productinfo.sku))), sectionproperties.deliverytimeshow == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1446
|
+
}, 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.createElement("div", {
|
|
1420
1447
|
"class": "mb-4 col-lg-12",
|
|
1421
1448
|
style: {
|
|
1422
1449
|
width: '100%',
|
|
@@ -1436,9 +1463,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1436
1463
|
style: {
|
|
1437
1464
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
1438
1465
|
}
|
|
1439
|
-
}, langdetect == 'en' ? 'Delivery Time' : 'مدة الشحن', ": ", fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1466
|
+
}, 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.createElement(ProductHeaderPricing, {
|
|
1440
1467
|
actions: props.actions
|
|
1441
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
1468
|
+
}), (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.createElement("div", {
|
|
1442
1469
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
1443
1470
|
}, 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) {
|
|
1444
1471
|
return /*#__PURE__*/React.createElement("div", {
|
|
@@ -1532,11 +1559,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1532
1559
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1533
1560
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
1534
1561
|
onClick: function onClick() {
|
|
1535
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1562
|
+
var tempaddtocardpayloadobj = _objectSpread$20({}, addtocardpayloadobj);
|
|
1536
1563
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
1537
1564
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
1538
1565
|
}
|
|
1539
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1566
|
+
setaddtocardpayloadobj(_objectSpread$20({}, tempaddtocardpayloadobj));
|
|
1540
1567
|
}
|
|
1541
1568
|
}, /*#__PURE__*/React.createElement("i", {
|
|
1542
1569
|
className: "fa fa-chevron-down",
|
|
@@ -1548,9 +1575,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1548
1575
|
}, addtocardpayloadobj.quantity), /*#__PURE__*/React.createElement("span", {
|
|
1549
1576
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
1550
1577
|
onClick: function onClick() {
|
|
1551
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1578
|
+
var tempaddtocardpayloadobj = _objectSpread$20({}, addtocardpayloadobj);
|
|
1552
1579
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
1553
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1580
|
+
setaddtocardpayloadobj(_objectSpread$20({}, tempaddtocardpayloadobj));
|
|
1554
1581
|
}
|
|
1555
1582
|
}, /*#__PURE__*/React.createElement("i", {
|
|
1556
1583
|
className: "fa fa-chevron-up",
|
|
@@ -1751,8 +1778,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1751
1778
|
}, StoreInfoprops())))));
|
|
1752
1779
|
};
|
|
1753
1780
|
|
|
1754
|
-
function ownKeys$
|
|
1755
|
-
function _objectSpread$
|
|
1781
|
+
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; }
|
|
1782
|
+
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(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; }
|
|
1756
1783
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
1757
1784
|
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;
|
|
1758
1785
|
var langdetect = props.actions.langdetect;
|
|
@@ -1793,7 +1820,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
1793
1820
|
slots = _useState6[0],
|
|
1794
1821
|
setslots = _useState6[1];
|
|
1795
1822
|
useEffect(function () {
|
|
1796
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1823
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1797
1824
|
item_type: 'service'
|
|
1798
1825
|
}));
|
|
1799
1826
|
}, [tabsarray]);
|
|
@@ -1805,16 +1832,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
1805
1832
|
if (diffDays.toString() != 'NaN') {
|
|
1806
1833
|
if (date2 <= date1) {
|
|
1807
1834
|
NotificationManager.warning('', 'Please choose another date.');
|
|
1808
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1835
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1809
1836
|
quantity: 0
|
|
1810
1837
|
}));
|
|
1811
1838
|
} else {
|
|
1812
1839
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
1813
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1840
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1814
1841
|
quantity: diffDays
|
|
1815
1842
|
}));
|
|
1816
1843
|
} else {
|
|
1817
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1844
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1818
1845
|
quantity: 0
|
|
1819
1846
|
}));
|
|
1820
1847
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -1950,7 +1977,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
1950
1977
|
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,
|
|
1951
1978
|
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,
|
|
1952
1979
|
onChange: function onChange(event) {
|
|
1953
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1980
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1954
1981
|
from: event.target.value
|
|
1955
1982
|
}));
|
|
1956
1983
|
}
|
|
@@ -1970,7 +1997,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
1970
1997
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
1971
1998
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
1972
1999
|
onChange: function onChange(event) {
|
|
1973
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2000
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1974
2001
|
to: event.target.value
|
|
1975
2002
|
}));
|
|
1976
2003
|
}
|
|
@@ -1990,7 +2017,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
1990
2017
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
1991
2018
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
1992
2019
|
onChange: function onChange(event) {
|
|
1993
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2020
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
1994
2021
|
date: event.target.value
|
|
1995
2022
|
}));
|
|
1996
2023
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -2041,7 +2068,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2041
2068
|
color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
|
|
2042
2069
|
},
|
|
2043
2070
|
onClick: function onClick() {
|
|
2044
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2071
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
2045
2072
|
time: item.slot
|
|
2046
2073
|
}));
|
|
2047
2074
|
}
|
|
@@ -2050,7 +2077,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2050
2077
|
}, /*#__PURE__*/React.createElement("button", {
|
|
2051
2078
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
2052
2079
|
onClick: function onClick() {
|
|
2053
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2080
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
2054
2081
|
time: item.slot
|
|
2055
2082
|
}));
|
|
2056
2083
|
}
|
|
@@ -2092,7 +2119,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2092
2119
|
"class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
|
|
2093
2120
|
style: {},
|
|
2094
2121
|
onClick: function onClick() {
|
|
2095
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2122
|
+
setaddtocardpayloadobj(_objectSpread$1$(_objectSpread$1$({}, addtocardpayloadobj), {}, {
|
|
2096
2123
|
time: item.slot
|
|
2097
2124
|
}));
|
|
2098
2125
|
}
|
|
@@ -2635,10 +2662,520 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
2635
2662
|
}, StoreInfoprops()))));
|
|
2636
2663
|
};
|
|
2637
2664
|
|
|
2665
|
+
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; }
|
|
2666
|
+
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(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; }
|
|
2667
|
+
var AddReview = function AddReview(props) {
|
|
2668
|
+
var _css;
|
|
2669
|
+
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
2670
|
+
props.actions;
|
|
2671
|
+
props.actions.lang;
|
|
2672
|
+
var langdetect = props.actions.langdetect;
|
|
2673
|
+
var productid = props.actions.productid;
|
|
2674
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
2675
|
+
var NotificationManager = props.actions.NotificationManager;
|
|
2676
|
+
var canuserreview = props.actions.canuserreview;
|
|
2677
|
+
var addreviewcallback = props.actions.addreviewcallback;
|
|
2678
|
+
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
2679
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
2680
|
+
var pageindexcontext = props.actions.pageindexcontext;
|
|
2681
|
+
var setpageindexcontext = props.actions.setpageindexcontext;
|
|
2682
|
+
var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
|
|
2683
|
+
var templatepropcontext = props.actions.templatepropcontext;
|
|
2684
|
+
var _useState = useState(''),
|
|
2685
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2686
|
+
sectionproperties = _useState2[0],
|
|
2687
|
+
setsectionproperties = _useState2[1];
|
|
2688
|
+
var _useState3 = useState(''),
|
|
2689
|
+
_useState4 = _slicedToArray(_useState3, 2);
|
|
2690
|
+
_useState4[0];
|
|
2691
|
+
var setCurrentPageId = _useState4[1];
|
|
2692
|
+
var _useState5 = useState({
|
|
2693
|
+
reviewtitle: '',
|
|
2694
|
+
reviewbody: '',
|
|
2695
|
+
reviewrate: 0,
|
|
2696
|
+
reviewname: '',
|
|
2697
|
+
hasreview: 0
|
|
2698
|
+
}),
|
|
2699
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
2700
|
+
reviewpayloadobj = _useState6[0],
|
|
2701
|
+
setreviewpayloadobj = _useState6[1];
|
|
2702
|
+
useEffect(function () {
|
|
2703
|
+
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
2704
|
+
return x.staticpageid == '63fcbef36eebe';
|
|
2705
|
+
});
|
|
2706
|
+
if (cartindex >= 0) {
|
|
2707
|
+
setpageindexcontext(cartindex);
|
|
2708
|
+
setCurrentPageId(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
2709
|
+
if (props.srcfromprops != 'templatedraftrouter') {
|
|
2710
|
+
setCurrentPageIdContext(templatepropcontext.pagesnprop[cartindex].pageid);
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
}, []);
|
|
2714
|
+
useEffect(function () {
|
|
2715
|
+
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
2716
|
+
var secpropobj = {};
|
|
2717
|
+
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
2718
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2719
|
+
});
|
|
2720
|
+
setsectionproperties(_objectSpread$1_({}, secpropobj));
|
|
2721
|
+
}
|
|
2722
|
+
}, [StatePagePropertiesContext]);
|
|
2723
|
+
useEffect(function () {
|
|
2724
|
+
var _templatepropcontext$, _templatepropcontext$2;
|
|
2725
|
+
var secpropobj = {};
|
|
2726
|
+
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) {
|
|
2727
|
+
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
2728
|
+
});
|
|
2729
|
+
setsectionproperties(_objectSpread$1_({}, secpropobj));
|
|
2730
|
+
}, [pageindexcontext]);
|
|
2731
|
+
var reviewstyles = {
|
|
2732
|
+
submitreviewbtn: css({
|
|
2733
|
+
width: sectionproperties.reviewbtn_width + 'px',
|
|
2734
|
+
height: sectionproperties.reviewbtn_height + 'px',
|
|
2735
|
+
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
2736
|
+
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
2737
|
+
color: sectionproperties.reviewbtn_color,
|
|
2738
|
+
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
2739
|
+
backgroundColor: sectionproperties.reviewbtn_bgcolor,
|
|
2740
|
+
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
2741
|
+
':hover': {
|
|
2742
|
+
transition: '.3s',
|
|
2743
|
+
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover,
|
|
2744
|
+
color: sectionproperties.reviewbtn_coloronhover
|
|
2745
|
+
}
|
|
2746
|
+
}),
|
|
2747
|
+
form_control: css((_css = {
|
|
2748
|
+
position: 'relative',
|
|
2749
|
+
display: 'flex',
|
|
2750
|
+
alignItems: 'center'
|
|
2751
|
+
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 10px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
|
|
2752
|
+
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
2753
|
+
}), _defineProperty(_css, ':focus .login_input_icon', {
|
|
2754
|
+
color: sectionproperties.inputfeildbordercoloronfocus
|
|
2755
|
+
}), _css)),
|
|
2756
|
+
inputfield_label: css({
|
|
2757
|
+
color: sectionproperties.form_labelcolor,
|
|
2758
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
2759
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
2760
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
2761
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
2762
|
+
}),
|
|
2763
|
+
reviewbutton: css({
|
|
2764
|
+
width: sectionproperties.reviewbtn_width + 'px',
|
|
2765
|
+
height: sectionproperties.reviewbtn_height + 'px',
|
|
2766
|
+
background: sectionproperties.reviewbtn_bgcolor,
|
|
2767
|
+
color: sectionproperties.reviewbtn_color,
|
|
2768
|
+
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
2769
|
+
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
2770
|
+
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
2771
|
+
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
2772
|
+
':hover': {
|
|
2773
|
+
transition: '.3s',
|
|
2774
|
+
color: sectionproperties.reviewbtn_coloronhover,
|
|
2775
|
+
borderColor: sectionproperties.reviewbtn_coloronhover,
|
|
2776
|
+
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover
|
|
2777
|
+
}
|
|
2778
|
+
}),
|
|
2779
|
+
productname: css({
|
|
2780
|
+
fontSize: sectionproperties.prodNameFontSize + 'px',
|
|
2781
|
+
textTransform: sectionproperties.prodNameTextTranform,
|
|
2782
|
+
fontWeight: sectionproperties.prodNameFontWeight,
|
|
2783
|
+
color: sectionproperties.prodNameColor
|
|
2784
|
+
})
|
|
2785
|
+
};
|
|
2786
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2787
|
+
className: 'row w-100 ml-0 mr-0 pb-5',
|
|
2788
|
+
style: {
|
|
2789
|
+
marginTop: sectionproperties.marginTop + 'px'
|
|
2790
|
+
}
|
|
2791
|
+
}, sectionproperties.sectionTitleFontSize != 0 && /*#__PURE__*/React.createElement("div", {
|
|
2792
|
+
"class": "row m-0 w-100 mt-3"
|
|
2793
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2794
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
2795
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2796
|
+
"class": "m-0 p-0",
|
|
2797
|
+
style: {
|
|
2798
|
+
fontSize: sectionproperties.sectionTitleFontSize + 'px',
|
|
2799
|
+
color: sectionproperties.sectionTitleColor,
|
|
2800
|
+
fontWeight: sectionproperties.sectionTitleFontWeight
|
|
2801
|
+
}
|
|
2802
|
+
}, langdetect == 'en' ? sectionproperties.sectionTitleContent : sectionproperties.sectionTitleContent_ar)), /*#__PURE__*/React.createElement("div", {
|
|
2803
|
+
"class": "col-lg-12"
|
|
2804
|
+
}, /*#__PURE__*/React.createElement("hr", null))), /*#__PURE__*/React.createElement("div", {
|
|
2805
|
+
"class": "col-lg-12 mb-3"
|
|
2806
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2807
|
+
"class": "row m-0 w-100 d-flex justify-content-start align-items-center"
|
|
2808
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2809
|
+
"class": "d-flex justify-content-start align-items-center",
|
|
2810
|
+
style: {
|
|
2811
|
+
width: '9vh',
|
|
2812
|
+
height: '9vh'
|
|
2813
|
+
}
|
|
2814
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
2815
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
2816
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
2817
|
+
path: fetchProductInfoQueryContext.data.data.productinfo.productmainimage,
|
|
2818
|
+
style: {
|
|
2819
|
+
width: '100%',
|
|
2820
|
+
height: '100%',
|
|
2821
|
+
objectFit: 'contain'
|
|
2822
|
+
},
|
|
2823
|
+
loading: "lazy"
|
|
2824
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2825
|
+
"class": "col-lg-9 co-md-9 col-sm-9 d-flex justify-content-start align-items-center"
|
|
2826
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2827
|
+
"class": "row m-0 w-100"
|
|
2828
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2829
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
|
|
2830
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
2831
|
+
"class": reviewstyles.productname + ' m-0 p-0 '
|
|
2832
|
+
}, langdetect == 'en' ? fetchProductInfoQueryContext.data.data.productinfo.name_en : fetchProductInfoQueryContext.data.data.productinfo.name_ar)), /*#__PURE__*/React.createElement("div", {
|
|
2833
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start align-items-center"
|
|
2834
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
2835
|
+
count: 5,
|
|
2836
|
+
value: reviewpayloadobj.reviewrate,
|
|
2837
|
+
size: 18,
|
|
2838
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
2839
|
+
className: "far fa-star",
|
|
2840
|
+
style: {
|
|
2841
|
+
color: '#bfbfbf'
|
|
2842
|
+
}
|
|
2843
|
+
}),
|
|
2844
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
2845
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
2846
|
+
}),
|
|
2847
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
2848
|
+
className: "fa fa-star",
|
|
2849
|
+
style: {
|
|
2850
|
+
color: '#FAB400'
|
|
2851
|
+
}
|
|
2852
|
+
}),
|
|
2853
|
+
activeColor: "#ffd700",
|
|
2854
|
+
onChange: function onChange(event) {
|
|
2855
|
+
var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
|
|
2856
|
+
tempreviewpayloadobj.reviewrate = event;
|
|
2857
|
+
setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
|
|
2858
|
+
}
|
|
2859
|
+
})))))), /*#__PURE__*/React.createElement("div", {
|
|
2860
|
+
"class": "col-lg-12"
|
|
2861
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2862
|
+
"class": "row m-0 w-100"
|
|
2863
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2864
|
+
"class": "col-lg-12 mb-4"
|
|
2865
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
2866
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2867
|
+
}, langdetect == 'en' ? 'Your Name' : 'اسمك'), /*#__PURE__*/React.createElement("input", {
|
|
2868
|
+
"class": reviewstyles.form_control,
|
|
2869
|
+
value: reviewpayloadobj.reviewname,
|
|
2870
|
+
onChange: function onChange(event) {
|
|
2871
|
+
var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
|
|
2872
|
+
tempreviewpayloadobj.reviewname = event.target.value;
|
|
2873
|
+
setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
|
|
2874
|
+
}
|
|
2875
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2876
|
+
"class": "col-lg-12 mb-4"
|
|
2877
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
2878
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2879
|
+
}, langdetect == 'en' ? 'Review title' : 'عنوان التقييم'), /*#__PURE__*/React.createElement("input", {
|
|
2880
|
+
"class": reviewstyles.form_control,
|
|
2881
|
+
value: reviewpayloadobj.reviewtitle,
|
|
2882
|
+
onChange: function onChange(event) {
|
|
2883
|
+
var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
|
|
2884
|
+
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
2885
|
+
setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
|
|
2886
|
+
}
|
|
2887
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2888
|
+
"class": "col-lg-12 mb-4"
|
|
2889
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
2890
|
+
className: "".concat(reviewstyles.inputfield_label) + ' text-transform-none d-flex justify-content-start '
|
|
2891
|
+
}, langdetect == 'en' ? 'Your Review' : 'تقييمك'), /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
2892
|
+
type: 'text',
|
|
2893
|
+
"class": reviewstyles.form_control + ' form_control ',
|
|
2894
|
+
value: reviewpayloadobj.reviewbody,
|
|
2895
|
+
onChange: function onChange(event) {
|
|
2896
|
+
var tempreviewpayloadobj = _objectSpread$1_({}, reviewpayloadobj);
|
|
2897
|
+
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
2898
|
+
setreviewpayloadobj(_objectSpread$1_({}, tempreviewpayloadobj));
|
|
2899
|
+
},
|
|
2900
|
+
style: {
|
|
2901
|
+
resize: 'none',
|
|
2902
|
+
minRows: 5
|
|
2903
|
+
}
|
|
2904
|
+
})))), canuserreview && /*#__PURE__*/React.createElement("div", {
|
|
2905
|
+
"class": "col-lg-12 allcentered mt-3"
|
|
2906
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
2907
|
+
"class": "".concat(reviewstyles.submitreviewbtn),
|
|
2908
|
+
onClick: function onClick() {
|
|
2909
|
+
if (reviewpayloadobj.reviewtitle.length != 0 && reviewpayloadobj.reviewbody.length != 0 && reviewpayloadobj.reviewrate.length != 0 && parseInt(reviewpayloadobj.reviewrate) > 0 && reviewpayloadobj.reviewname.length != 0) {
|
|
2910
|
+
GeneralAPIMutationContext.mutate({
|
|
2911
|
+
endpointurl: '/addproductreview',
|
|
2912
|
+
productid: productid,
|
|
2913
|
+
reviewpayloadobj: reviewpayloadobj,
|
|
2914
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
2915
|
+
if (data.data.status) {
|
|
2916
|
+
NotificationManager.success('', 'Success');
|
|
2917
|
+
addreviewcallback();
|
|
2918
|
+
} else {
|
|
2919
|
+
NotificationManager.warning('', data.data.reason);
|
|
2920
|
+
}
|
|
2921
|
+
}
|
|
2922
|
+
});
|
|
2923
|
+
} else {
|
|
2924
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Please complete the missing fields' : 'من فضلك اكمل باقى البيانات');
|
|
2925
|
+
|
|
2926
|
+
// alert('Please fill the missing fields');
|
|
2927
|
+
}
|
|
2928
|
+
}
|
|
2929
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
2930
|
+
};
|
|
2931
|
+
|
|
2932
|
+
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; }
|
|
2933
|
+
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(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; }
|
|
2934
|
+
var ProductReviews = function ProductReviews(props) {
|
|
2935
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
2936
|
+
props.actions.lang;
|
|
2937
|
+
var langdetect = props.actions.langdetect;
|
|
2938
|
+
var fetchProductInfoQueryContext = props.actions.fetchProductInfoQueryContext;
|
|
2939
|
+
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
2940
|
+
props.actions.NotificationManager;
|
|
2941
|
+
var sectionproperties = props.actions.sectionproperties;
|
|
2942
|
+
var actions = props.actions;
|
|
2943
|
+
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;
|
|
2944
|
+
var productinfo_cssstyles = props.actions.productinfo_cssstyles;
|
|
2945
|
+
var _useState = useState(false),
|
|
2946
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
2947
|
+
canuserreview = _useState2[0],
|
|
2948
|
+
setcanuserreview = _useState2[1];
|
|
2949
|
+
var _useState3 = useState(false),
|
|
2950
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
2951
|
+
openreviewmodal = _useState4[0],
|
|
2952
|
+
setopenreviewmodal = _useState4[1];
|
|
2953
|
+
var _useState5 = useState('all'),
|
|
2954
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
2955
|
+
filterproductreviews = _useState6[0],
|
|
2956
|
+
setfilterproductreviews = _useState6[1];
|
|
2957
|
+
var _useState7 = useState([]),
|
|
2958
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
2959
|
+
productreviews = _useState8[0],
|
|
2960
|
+
setproductreviews = _useState8[1];
|
|
2961
|
+
useEffect(function () {
|
|
2962
|
+
if (fetchProductInfoQueryContext.isSuccess) {
|
|
2963
|
+
getreviewsassignermutationfunc();
|
|
2964
|
+
}
|
|
2965
|
+
}, [filterproductreviews]);
|
|
2966
|
+
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
2967
|
+
var _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6;
|
|
2968
|
+
GeneralAPIMutationContext.mutate({
|
|
2969
|
+
endpointurl: '/fetchproductreviews',
|
|
2970
|
+
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,
|
|
2971
|
+
filterproductreviews: filterproductreviews,
|
|
2972
|
+
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
2973
|
+
if (data.data.status) {
|
|
2974
|
+
setproductreviews(data.data.productreviews);
|
|
2975
|
+
setcanuserreview(data.data.canuserAddReview);
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
});
|
|
2979
|
+
};
|
|
2980
|
+
var addreviewcallback = function addreviewcallback() {
|
|
2981
|
+
setopenreviewmodal(false);
|
|
2982
|
+
getreviewsassignermutationfunc();
|
|
2983
|
+
fetchProductInfoQueryContext.refetch();
|
|
2984
|
+
};
|
|
2985
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2986
|
+
className: 'row w-100 ml-0 mr-0',
|
|
2987
|
+
style: {
|
|
2988
|
+
marginTop: sectionproperties.marginTop + 'px'
|
|
2989
|
+
}
|
|
2990
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2991
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0 plr-1025-0"
|
|
2992
|
+
}, GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
2993
|
+
"class": "col-lg-12 allcentered",
|
|
2994
|
+
style: {
|
|
2995
|
+
height: '20vh'
|
|
2996
|
+
}
|
|
2997
|
+
}, /*#__PURE__*/React.createElement(Messaging, {
|
|
2998
|
+
color: "#ccc",
|
|
2999
|
+
width: "10px",
|
|
3000
|
+
height: "10px",
|
|
3001
|
+
duration: "1s"
|
|
3002
|
+
})), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
3003
|
+
"class": "row m-0 w-100"
|
|
3004
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3005
|
+
"class": "col-lg-3"
|
|
3006
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3007
|
+
"class": "row m-0 w-100 allcentered"
|
|
3008
|
+
}, canuserreview && /*#__PURE__*/React.createElement("div", {
|
|
3009
|
+
"class": "col-lg-12 allcentered mb-3 p-0"
|
|
3010
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
3011
|
+
"class": "".concat(productinfo_cssstyles.reviewbutton) + ' ',
|
|
3012
|
+
onClick: function onClick() {
|
|
3013
|
+
setopenreviewmodal(true);
|
|
3014
|
+
}
|
|
3015
|
+
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)), /*#__PURE__*/React.createElement("div", {
|
|
3016
|
+
"class": "col-lg-12 p-0 mb-3"
|
|
3017
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3018
|
+
"class": "row m-0 w-100 py-3 px-2",
|
|
3019
|
+
style: {
|
|
3020
|
+
borderRadius: 10,
|
|
3021
|
+
background: '#eee'
|
|
3022
|
+
}
|
|
3023
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3024
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3025
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3026
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
3027
|
+
style: {
|
|
3028
|
+
fontSize: '17px'
|
|
3029
|
+
}
|
|
3030
|
+
}, langdetect == 'en' ? 'Overall Ratings' : 'جميع التقييمات')), /*#__PURE__*/React.createElement("div", {
|
|
3031
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
3032
|
+
}, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
|
|
3033
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3034
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3035
|
+
"class": "m-0 p-0 font-weight-600",
|
|
3036
|
+
style: {
|
|
3037
|
+
fontSize: '20px'
|
|
3038
|
+
}
|
|
3039
|
+
}, 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.createElement("div", {
|
|
3040
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3041
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
3042
|
+
count: 5,
|
|
3043
|
+
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,
|
|
3044
|
+
edit: false,
|
|
3045
|
+
size: 18,
|
|
3046
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
3047
|
+
className: "far fa-star",
|
|
3048
|
+
style: {
|
|
3049
|
+
color: '#bfbfbf'
|
|
3050
|
+
}
|
|
3051
|
+
}),
|
|
3052
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
3053
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3054
|
+
}),
|
|
3055
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
3056
|
+
className: "fa fa-star",
|
|
3057
|
+
style: {
|
|
3058
|
+
color: '#FAB400'
|
|
3059
|
+
}
|
|
3060
|
+
}),
|
|
3061
|
+
activeColor: "#ffd700"
|
|
3062
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
3063
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-3"
|
|
3064
|
+
}, /*#__PURE__*/React.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.createElement("div", {
|
|
3071
|
+
"class": "col-lg-12 p-0 allcentered"
|
|
3072
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3073
|
+
"class": "m-0 font-weight-600 text-uppercase",
|
|
3074
|
+
style: {
|
|
3075
|
+
fontSize: '17px'
|
|
3076
|
+
}
|
|
3077
|
+
}, langdetect == 'en' ? 'Filter' : 'فلترة')), /*#__PURE__*/React.createElement("div", {
|
|
3078
|
+
"class": "col-lg-12 pl-3 pr-3"
|
|
3079
|
+
}, /*#__PURE__*/React.createElement("hr", null)), /*#__PURE__*/React.createElement("div", {
|
|
3080
|
+
"class": "col-lg-12 d-flex justify-content-center"
|
|
3081
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
3082
|
+
count: 5,
|
|
3083
|
+
value: filterproductreviews
|
|
3084
|
+
// edit={false}
|
|
3085
|
+
,
|
|
3086
|
+
size: 18,
|
|
3087
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
3088
|
+
className: "far fa-star",
|
|
3089
|
+
style: {
|
|
3090
|
+
color: '#bfbfbf'
|
|
3091
|
+
}
|
|
3092
|
+
}),
|
|
3093
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
3094
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3095
|
+
}),
|
|
3096
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
3097
|
+
className: "fa fa-star",
|
|
3098
|
+
style: {
|
|
3099
|
+
color: '#FAB400'
|
|
3100
|
+
}
|
|
3101
|
+
}),
|
|
3102
|
+
activeColor: "#ffd700",
|
|
3103
|
+
onChange: function onChange(event) {
|
|
3104
|
+
setfilterproductreviews(event);
|
|
3105
|
+
}
|
|
3106
|
+
})))))), /*#__PURE__*/React.createElement("div", {
|
|
3107
|
+
"class": "col-lg-9"
|
|
3108
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3109
|
+
"class": "row m-0 w-100"
|
|
3110
|
+
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
3111
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
3112
|
+
"class": "col-lg-12 flex-column"
|
|
3113
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3114
|
+
"class": "row m-0 w-100"
|
|
3115
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
3116
|
+
"class": "col-lg-12 d-flex justify-content-start p-0 mb-2"
|
|
3117
|
+
}, /*#__PURE__*/React.createElement(ReactStars, {
|
|
3118
|
+
count: 5,
|
|
3119
|
+
value: reviewitem.review_rating,
|
|
3120
|
+
edit: false,
|
|
3121
|
+
size: 18,
|
|
3122
|
+
emptyIcon: /*#__PURE__*/React.createElement("i", {
|
|
3123
|
+
className: "far fa-star",
|
|
3124
|
+
style: {
|
|
3125
|
+
color: '#bfbfbf'
|
|
3126
|
+
}
|
|
3127
|
+
}),
|
|
3128
|
+
halfIcon: /*#__PURE__*/React.createElement("i", {
|
|
3129
|
+
className: "fa fa-star-half-alt style={{ color: '#FAB400' }}"
|
|
3130
|
+
}),
|
|
3131
|
+
filledIcon: /*#__PURE__*/React.createElement("i", {
|
|
3132
|
+
className: "fa fa-star",
|
|
3133
|
+
style: {
|
|
3134
|
+
color: '#FAB400'
|
|
3135
|
+
}
|
|
3136
|
+
}),
|
|
3137
|
+
activeColor: "#ffd700"
|
|
3138
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
3139
|
+
"class": "col-lg-12 p-0 mb-2 d-flex justify-content-start "
|
|
3140
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3141
|
+
"class": "m-0 p-0 font-weight-600",
|
|
3142
|
+
style: {
|
|
3143
|
+
fontSize: '17px'
|
|
3144
|
+
}
|
|
3145
|
+
}, reviewitem.reviewtitle)), /*#__PURE__*/React.createElement("div", {
|
|
3146
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start mb-2"
|
|
3147
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3148
|
+
"class": "m-0 p-0 font-weight-500"
|
|
3149
|
+
}, reviewitem.reviewbody)), /*#__PURE__*/React.createElement("div", {
|
|
3150
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-start p-0"
|
|
3151
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
3152
|
+
"class": "m-0 p-0 font-weight-600"
|
|
3153
|
+
}, langdetect == 'en' ? 'By' : 'عن طريق', ": ", reviewitem.review_name)), /*#__PURE__*/React.createElement("div", {
|
|
3154
|
+
"class": "col-lg-6 d-flex align-items-center justify-content-end justify-content-md-start p-0 font-weight-500 text-light"
|
|
3155
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
3156
|
+
"class": "fa fa-clock text-light ml-2 mr-2"
|
|
3157
|
+
}), " ", reviewitem.timestamp)), /*#__PURE__*/React.createElement("hr", null));
|
|
3158
|
+
}))))), /*#__PURE__*/React.createElement(Modal, {
|
|
3159
|
+
show: openreviewmodal,
|
|
3160
|
+
onHide: function onHide() {
|
|
3161
|
+
return setopenreviewmodal(false);
|
|
3162
|
+
},
|
|
3163
|
+
centered: true,
|
|
3164
|
+
size: "md",
|
|
3165
|
+
"class": "reviewmodal"
|
|
3166
|
+
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(AddReview, {
|
|
3167
|
+
actions: _objectSpread$1Z(_objectSpread$1Z({}, actions), {}, {
|
|
3168
|
+
productid: productid,
|
|
3169
|
+
canuserreview: canuserreview,
|
|
3170
|
+
addreviewcallback: addreviewcallback
|
|
3171
|
+
})
|
|
3172
|
+
}))));
|
|
3173
|
+
};
|
|
3174
|
+
|
|
2638
3175
|
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; }
|
|
2639
3176
|
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(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; }
|
|
2640
3177
|
var Productinfo = function Productinfo(props) {
|
|
2641
|
-
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,
|
|
3178
|
+
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;
|
|
2642
3179
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
2643
3180
|
var lang = props.actions.lang;
|
|
2644
3181
|
var langdetect = props.actions.langdetect;
|
|
@@ -2660,6 +3197,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
2660
3197
|
var setpageindexcontext = props.actions.setpageindexcontext;
|
|
2661
3198
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
2662
3199
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
3200
|
+
var actions = props.actions;
|
|
2663
3201
|
var GeneralAPIMutationContext = props.actions.GeneralAPIMutationContext;
|
|
2664
3202
|
var setCurrentPageIdContext = props.actions.setCurrentPageIdContext;
|
|
2665
3203
|
var NotificationManager = props.actions.NotificationManager;
|
|
@@ -2681,13 +3219,13 @@ var Productinfo = function Productinfo(props) {
|
|
|
2681
3219
|
ProductInfoObj = _useState8[0],
|
|
2682
3220
|
setProductInfoObj = _useState8[1];
|
|
2683
3221
|
var _useState9 = useState('all'),
|
|
2684
|
-
_useState10 = _slicedToArray(_useState9, 2)
|
|
2685
|
-
|
|
2686
|
-
|
|
3222
|
+
_useState10 = _slicedToArray(_useState9, 2);
|
|
3223
|
+
_useState10[0];
|
|
3224
|
+
_useState10[1];
|
|
2687
3225
|
var _useState11 = useState([]),
|
|
2688
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
2689
|
-
|
|
2690
|
-
|
|
3226
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
3227
|
+
_useState12[0];
|
|
3228
|
+
_useState12[1];
|
|
2691
3229
|
var _useState13 = useState([]),
|
|
2692
3230
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
2693
3231
|
Relatedproducts = _useState14[0],
|
|
@@ -2728,12 +3266,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
2728
3266
|
setShowMore = _useState26[1];
|
|
2729
3267
|
var _useState27 = useState(0),
|
|
2730
3268
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
var _useState29 = useState(
|
|
3269
|
+
currentshowingimageindex = _useState28[0],
|
|
3270
|
+
setcurrentshowingimageindex = _useState28[1];
|
|
3271
|
+
var _useState29 = useState(0),
|
|
2734
3272
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
2735
|
-
|
|
2736
|
-
|
|
3273
|
+
tabIndex = _useState30[0],
|
|
3274
|
+
setTabIndex = _useState30[1];
|
|
3275
|
+
var _useState31 = useState('descriptiontab'),
|
|
3276
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
3277
|
+
tabname = _useState32[0],
|
|
3278
|
+
settabname = _useState32[1];
|
|
2737
3279
|
var handleTabChange = function handleTabChange(event, newTabIndex) {
|
|
2738
3280
|
setTabIndex(newTabIndex);
|
|
2739
3281
|
};
|
|
@@ -2791,41 +3333,17 @@ var Productinfo = function Productinfo(props) {
|
|
|
2791
3333
|
tempfetchproductinfoObjContext.productid = productid;
|
|
2792
3334
|
setfetchproductinfoObjContext(_objectSpread$1Y({}, tempfetchproductinfoObjContext));
|
|
2793
3335
|
};
|
|
2794
|
-
useEffect(function () {
|
|
2795
|
-
if (fetchProductInfoQueryContext.isSuccess && tabname == 'reviewstab') {
|
|
2796
|
-
if (Array.isArray(productreviews) && productreviews.length == 0) {
|
|
2797
|
-
getreviewsassignermutationfunc();
|
|
2798
|
-
}
|
|
2799
|
-
}
|
|
2800
|
-
}, [tabname, fetchProductInfoQueryContext.isSuccess]);
|
|
2801
|
-
useEffect(function () {
|
|
2802
|
-
if (fetchProductInfoQueryContext.isSuccess && tabname == 'reviewstab') {
|
|
2803
|
-
getreviewsassignermutationfunc();
|
|
2804
|
-
}
|
|
2805
|
-
}, [filterproductreviews]);
|
|
2806
|
-
var getreviewsassignermutationfunc = function getreviewsassignermutationfunc() {
|
|
2807
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3;
|
|
2808
|
-
GeneralAPIMutationContext.mutate({
|
|
2809
|
-
endpointurl: '/fetchproductreviews',
|
|
2810
|
-
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,
|
|
2811
|
-
filterproductreviews: filterproductreviews,
|
|
2812
|
-
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
2813
|
-
if (data.data.status) {
|
|
2814
|
-
setproductreviews(data.data.productreviews);
|
|
2815
|
-
}
|
|
2816
|
-
}
|
|
2817
|
-
});
|
|
2818
|
-
};
|
|
2819
3336
|
useEffect(function () {
|
|
2820
3337
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess) {
|
|
2821
3338
|
if (fetchProductInfoQueryContext.data.data.productinfo != null) {
|
|
2822
|
-
var
|
|
3339
|
+
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
2823
3340
|
var tempproductimagesarray = [];
|
|
2824
3341
|
if (Array.isArray(fetchProductInfoQueryContext.data.data.productinfo.productimages)) {
|
|
2825
3342
|
fetchProductInfoQueryContext.data.data.productinfo.productimages.forEach(function (arrayItem, arrayindex) {
|
|
2826
3343
|
var productimagesarrayobj = {
|
|
2827
3344
|
thumbnail: serverbaselink + arrayItem.path,
|
|
2828
|
-
original: serverbaselink + arrayItem.path
|
|
3345
|
+
original: serverbaselink + arrayItem.path,
|
|
3346
|
+
galleryid: arrayItem.galleryid
|
|
2829
3347
|
// description:
|
|
2830
3348
|
// // { dangerouslySetInnerHTML={{
|
|
2831
3349
|
// // __html:
|
|
@@ -2843,7 +3361,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
2843
3361
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
2844
3362
|
setaddtocardpayloadobj(_objectSpread$1Y({}, tempaddtocardpayloadobj));
|
|
2845
3363
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
2846
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3364
|
+
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) {
|
|
2847
3365
|
GeneralAPIMutationContext.mutate({
|
|
2848
3366
|
endpointurl: '/FetchRelatedProducts',
|
|
2849
3367
|
tagid: fetchProductInfoQueryContext.data.data.productinfo.maintagid,
|
|
@@ -3005,6 +3523,13 @@ var Productinfo = function Productinfo(props) {
|
|
|
3005
3523
|
variantid = variantobj.variantid;
|
|
3006
3524
|
var tempaddtocardpayloadobj = _objectSpread$1Y({}, addtocardpayloadobj);
|
|
3007
3525
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
3526
|
+
var variantimageindex = 0;
|
|
3527
|
+
productimagesarray === null || productimagesarray === void 0 ? void 0 : productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
3528
|
+
if (tempimageitem.galleryid == (variantobj === null || variantobj === void 0 ? void 0 : variantobj.variantgalleryid)) {
|
|
3529
|
+
variantimageindex = tempimageindex;
|
|
3530
|
+
}
|
|
3531
|
+
});
|
|
3532
|
+
setcurrentshowingimageindex(variantimageindex);
|
|
3008
3533
|
setaddtocardpayloadobj(_objectSpread$1Y({}, tempaddtocardpayloadobj));
|
|
3009
3534
|
setvariantindexcompleted(ProductVariantIndex);
|
|
3010
3535
|
}
|
|
@@ -3016,8 +3541,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
3016
3541
|
var addtocartfunc = function addtocartfunc() {
|
|
3017
3542
|
var runfunc = false;
|
|
3018
3543
|
if (addtocardpayloadobj.productid.length != 0 && addtocardpayloadobj.quantity > 0) {
|
|
3019
|
-
var
|
|
3020
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3544
|
+
var _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10;
|
|
3545
|
+
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) {
|
|
3021
3546
|
if (addtocardpayloadobj.variantid.length != 0) {
|
|
3022
3547
|
runfunc = true;
|
|
3023
3548
|
} else {
|
|
@@ -3140,6 +3665,54 @@ var Productinfo = function Productinfo(props) {
|
|
|
3140
3665
|
}
|
|
3141
3666
|
};
|
|
3142
3667
|
var productinfo_cssstyles = {
|
|
3668
|
+
submitreviewbtn: css({
|
|
3669
|
+
width: sectionproperties.applybtn_width + 'px',
|
|
3670
|
+
height: sectionproperties.applybtn_height + 'px',
|
|
3671
|
+
borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
|
|
3672
|
+
fontSize: sectionproperties.applybtn_fontsize + 'px',
|
|
3673
|
+
color: sectionproperties.applybtn_textColor,
|
|
3674
|
+
fontWeight: sectionproperties.applybtn_Textfontweight,
|
|
3675
|
+
backgroundColor: sectionproperties.applybtn_bgColor,
|
|
3676
|
+
border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
|
|
3677
|
+
textTransform: sectionproperties.applybtn_texttransform,
|
|
3678
|
+
':hover': {
|
|
3679
|
+
transition: '.3s',
|
|
3680
|
+
backgroundColor: sectionproperties.applybtn_bgColoronhover,
|
|
3681
|
+
color: sectionproperties.applybtn_Textcoloronhover
|
|
3682
|
+
}
|
|
3683
|
+
}),
|
|
3684
|
+
form_control: css((_css = {
|
|
3685
|
+
position: 'relative',
|
|
3686
|
+
display: 'flex',
|
|
3687
|
+
alignItems: 'center'
|
|
3688
|
+
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 10px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "fontWeight", 500), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
|
|
3689
|
+
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
3690
|
+
}), _defineProperty(_css, ':focus .login_input_icon', {
|
|
3691
|
+
color: sectionproperties.inputfeildbordercoloronfocus
|
|
3692
|
+
}), _css)),
|
|
3693
|
+
inputfield_label: css({
|
|
3694
|
+
color: sectionproperties.form_labelcolor,
|
|
3695
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
3696
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
3697
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
3698
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
3699
|
+
}),
|
|
3700
|
+
reviewbutton: css({
|
|
3701
|
+
width: sectionproperties.reviewbtn_width + 'px',
|
|
3702
|
+
height: sectionproperties.reviewbtn_height + 'px',
|
|
3703
|
+
background: sectionproperties.reviewbtn_bgcolor,
|
|
3704
|
+
color: sectionproperties.reviewbtn_color,
|
|
3705
|
+
fontSize: sectionproperties.reviewbtn_fontsize + 'px',
|
|
3706
|
+
borderRadius: sectionproperties.reviewbtn_borderradius + 'px',
|
|
3707
|
+
border: sectionproperties.reviewbtn_borderwidth + 'px solid ' + sectionproperties.reviewbtn_bordercolor,
|
|
3708
|
+
fontWeight: sectionproperties.reviewbtn_fontweight,
|
|
3709
|
+
':hover': {
|
|
3710
|
+
transition: '.3s',
|
|
3711
|
+
color: sectionproperties.reviewbtn_coloronhover,
|
|
3712
|
+
borderColor: sectionproperties.reviewbtn_coloronhover,
|
|
3713
|
+
backgroundColor: sectionproperties.reviewbtn_bgcoloronhover
|
|
3714
|
+
}
|
|
3715
|
+
}),
|
|
3143
3716
|
before: css({
|
|
3144
3717
|
':before': {
|
|
3145
3718
|
background: sectionproperties.activetabbordercolor
|
|
@@ -3352,24 +3925,24 @@ var Productinfo = function Productinfo(props) {
|
|
|
3352
3925
|
})
|
|
3353
3926
|
};
|
|
3354
3927
|
var getprice_discountpriceprops = function getprice_discountpriceprops(type, withtotal, variantindexcompleted) {
|
|
3355
|
-
var _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23
|
|
3928
|
+
var _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13, _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16, _fetchProductInfoQuer17, _fetchProductInfoQuer18, _fetchProductInfoQuer19, _fetchProductInfoQuer20, _fetchProductInfoQuer21, _fetchProductInfoQuer22, _fetchProductInfoQuer23;
|
|
3356
3929
|
var price = 0;
|
|
3357
3930
|
var quantityconditions = [];
|
|
3358
3931
|
var quantity = 0;
|
|
3359
3932
|
if (addtocardpayloadobj.quantity != undefined && addtocardpayloadobj.quantity != null) {
|
|
3360
3933
|
quantity = parseFloat(addtocardpayloadobj.quantity);
|
|
3361
3934
|
}
|
|
3362
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3935
|
+
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) {
|
|
3363
3936
|
quantityconditions = fetchProductInfoQueryContext.data.data.productinfo.productquantityoptions;
|
|
3364
3937
|
}
|
|
3365
3938
|
if (type == 'defaultprice') {
|
|
3366
3939
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultprice;
|
|
3367
3940
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
3368
3941
|
if (variantindexcompleted != undefined) {
|
|
3369
|
-
var
|
|
3370
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3371
|
-
var
|
|
3372
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3942
|
+
var _fetchProductInfoQuer24, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27;
|
|
3943
|
+
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) {
|
|
3944
|
+
var _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31;
|
|
3945
|
+
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;
|
|
3373
3946
|
}
|
|
3374
3947
|
}
|
|
3375
3948
|
}
|
|
@@ -3377,10 +3950,10 @@ var Productinfo = function Productinfo(props) {
|
|
|
3377
3950
|
price = fetchProductInfoQueryContext.data.data.productinfo.defaultsaleprice;
|
|
3378
3951
|
if (fetchProductInfoQueryContext.data.data.productinfo.hasvariants == 1) {
|
|
3379
3952
|
if (variantindexcompleted != undefined) {
|
|
3380
|
-
var
|
|
3381
|
-
if ((fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3382
|
-
var
|
|
3383
|
-
price = fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3953
|
+
var _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35;
|
|
3954
|
+
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) {
|
|
3955
|
+
var _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39;
|
|
3956
|
+
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;
|
|
3384
3957
|
}
|
|
3385
3958
|
}
|
|
3386
3959
|
}
|
|
@@ -3406,7 +3979,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3406
3979
|
return price;
|
|
3407
3980
|
};
|
|
3408
3981
|
var getQuantityCondition = function getQuantityCondition() {
|
|
3409
|
-
var
|
|
3982
|
+
var _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43;
|
|
3410
3983
|
return /*#__PURE__*/React.createElement("div", {
|
|
3411
3984
|
"class": "col-lg-12 p-0",
|
|
3412
3985
|
style: {
|
|
@@ -3436,12 +4009,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
3436
4009
|
height: 1,
|
|
3437
4010
|
background: sectionproperties.pricelisttitlecolor
|
|
3438
4011
|
}
|
|
3439
|
-
})), fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3440
|
-
var
|
|
4012
|
+
})), 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) {
|
|
4013
|
+
var _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47;
|
|
3441
4014
|
return /*#__PURE__*/React.createElement("div", {
|
|
3442
4015
|
className: "col-lg-12 p-0 w-100 d-flex align-items-center",
|
|
3443
4016
|
style: {
|
|
3444
|
-
marginBottom: (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4017
|
+
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
|
|
3445
4018
|
}
|
|
3446
4019
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3447
4020
|
"class": "d-flex align-items-center",
|
|
@@ -3475,7 +4048,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3475
4048
|
})));
|
|
3476
4049
|
};
|
|
3477
4050
|
var StoreInfo = function StoreInfo() {
|
|
3478
|
-
var
|
|
4051
|
+
var _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
3479
4052
|
return /*#__PURE__*/React.createElement("div", {
|
|
3480
4053
|
"class": "row m-0 w-100"
|
|
3481
4054
|
}, sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showstoreinfo1 == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
@@ -3518,7 +4091,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3518
4091
|
style: {
|
|
3519
4092
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
3520
4093
|
}
|
|
3521
|
-
}, langdetect == 'en' ? sectionproperties.otherinfodesc2en : sectionproperties.otherinfodesc2ar))), sectionproperties.productInformationType == 'Product/Service Information' && sectionproperties.showpricinglist == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4094
|
+
}, 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.createElement("div", {
|
|
3522
4095
|
"class": "col-lg-12 p-0 mb-4"
|
|
3523
4096
|
}, getQuantityCondition()), sectionproperties.showfooterphonenumber == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
3524
4097
|
className: productinfo_cssstyles.storeinfocontainer + ' mb-4 col-lg-12 p-0 d-flex align-items-center cursor-pointer ',
|
|
@@ -3584,7 +4157,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3584
4157
|
width: "10px",
|
|
3585
4158
|
height: "10px",
|
|
3586
4159
|
duration: "1s"
|
|
3587
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
4160
|
+
})), Object.keys(sectionproperties).length != 0 && /*#__PURE__*/React.createElement("div", {
|
|
3588
4161
|
className: "col-lg-12 p-0"
|
|
3589
4162
|
}, !fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && fetchProductInfoQueryContext.data.data.productinfo != null && /*#__PURE__*/React.createElement("div", {
|
|
3590
4163
|
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 ',
|
|
@@ -3598,7 +4171,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3598
4171
|
langdetect: langdetect,
|
|
3599
4172
|
lang: lang,
|
|
3600
4173
|
srcfromprops: props.srcfromprops
|
|
3601
|
-
}, _defineProperty(_ref, "returnpolicyobj", returnpolicyobj), _defineProperty(_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty(_ref, "addtocartfunc", addtocartfunc), _defineProperty(_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty(_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty(_ref, "productimagesarray", productimagesarray), _defineProperty(_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty(_ref, "ProductInfoObj", ProductInfoObj), _defineProperty(_ref, "sectionproperties", sectionproperties), _defineProperty(_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty(_ref, "routingcountext", routingcountext), _defineProperty(_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty(_ref, "authdetailsContext", authdetailsContext), _defineProperty(_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty(_ref, "variantindexcompleted", variantindexcompleted), _defineProperty(_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty(_ref, "NotificationManager", NotificationManager), _defineProperty(_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_ref, "relatedproducts", relatedproducts), _defineProperty(_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty(_ref, "StoreInfoprops", StoreInfo), _ref)
|
|
4174
|
+
}, _defineProperty(_ref, "returnpolicyobj", returnpolicyobj), _defineProperty(_ref, "productinfo_cssstyles", productinfo_cssstyles), _defineProperty(_ref, "addtocartfunc", addtocartfunc), _defineProperty(_ref, "selectproductoptionvalue", selectproductoptionvalue), _defineProperty(_ref, "clearchoosenvaluesbutkeepcurrentvalue", clearchoosenvaluesbutkeepcurrentvalue), _defineProperty(_ref, "productimagesarray", productimagesarray), _defineProperty(_ref, "fetchProductInfoQueryContext", fetchProductInfoQueryContext), _defineProperty(_ref, "ProductInfoObj", ProductInfoObj), _defineProperty(_ref, "sectionproperties", sectionproperties), _defineProperty(_ref, "addtocardpayloadobj", addtocardpayloadobj), _defineProperty(_ref, "setaddtocardpayloadobj", setaddtocardpayloadobj), _defineProperty(_ref, "routingcountext", routingcountext), _defineProperty(_ref, "AddtoCartMutationContext", AddtoCartMutationContext), _defineProperty(_ref, "authdetailsContext", authdetailsContext), _defineProperty(_ref, "addtofavoritescontext", addtofavoritescontext), _defineProperty(_ref, "variantindexcompleted", variantindexcompleted), _defineProperty(_ref, "StaticPagesLinksContext", StaticPagesLinksContext), _defineProperty(_ref, "NotificationManager", NotificationManager), _defineProperty(_ref, "quantityconditionfoundobjprops", quantityconditionfoundobj), _defineProperty(_ref, "relatedproducts", relatedproducts), _defineProperty(_ref, "getprice_discountpriceprops", getprice_discountpriceprops), _defineProperty(_ref, "StoreInfoprops", StoreInfo), _defineProperty(_ref, "currentshowingimageindex", currentshowingimageindex), _defineProperty(_ref, "setcurrentshowingimageindex", setcurrentshowingimageindex), _ref)
|
|
3602
4175
|
}), fetchProductInfoQueryContext.data.data.productinfo.item_type == 'service' && /*#__PURE__*/React.createElement(Service_itemtype, {
|
|
3603
4176
|
actions: (_ref2 = {
|
|
3604
4177
|
returnpolicyobj: returnpolicyobj,
|
|
@@ -3671,18 +4244,18 @@ var Productinfo = function Productinfo(props) {
|
|
|
3671
4244
|
onClick: function onClick() {
|
|
3672
4245
|
settabname('refundpolicytab');
|
|
3673
4246
|
}
|
|
3674
|
-
}), (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
3675
|
-
label: 'Reviews',
|
|
4247
|
+
}), (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.createElement(Tab, {
|
|
4248
|
+
label: langdetect == 'en' ? 'Reviews' : 'التقييمات',
|
|
3676
4249
|
onClick: function onClick() {
|
|
3677
4250
|
settabname('reviewstab');
|
|
3678
4251
|
}
|
|
3679
|
-
}))),
|
|
3680
|
-
"class": "w-100"
|
|
3681
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
3682
|
-
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100
|
|
4252
|
+
}))), /*#__PURE__*/React.createElement(Box, {
|
|
4253
|
+
"class": "w-100 mt-5 mb-4"
|
|
4254
|
+
}, tabname == 'descriptiontab' && /*#__PURE__*/React.createElement("div", {
|
|
4255
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
3683
4256
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3684
4257
|
"class": "row m-0 w-100"
|
|
3685
|
-
}, langdetect == 'en' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4258
|
+
}, 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.createElement("div", {
|
|
3686
4259
|
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
3687
4260
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3688
4261
|
className: "row m-0 w-100 d-flex"
|
|
@@ -3694,16 +4267,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
3694
4267
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
3695
4268
|
},
|
|
3696
4269
|
dangerouslySetInnerHTML: {
|
|
3697
|
-
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4270
|
+
__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)
|
|
3698
4271
|
}
|
|
3699
4272
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3700
4273
|
"class": "col-lg-12 allcentered"
|
|
3701
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4274
|
+
}, (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.createElement("p", {
|
|
3702
4275
|
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600",
|
|
3703
4276
|
onClick: function onClick() {
|
|
3704
4277
|
return setShowMore(!showMore);
|
|
3705
4278
|
}
|
|
3706
|
-
}, showMore ? lang.showless : lang.showmore)))), langdetect == 'ar' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4279
|
+
}, 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.createElement("div", {
|
|
3707
4280
|
className: "col-lg-12 p-0 mb-4 d-flex justify-content-center"
|
|
3708
4281
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3709
4282
|
className: "row m-0 w-100 d-flex"
|
|
@@ -3715,16 +4288,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
3715
4288
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
3716
4289
|
},
|
|
3717
4290
|
dangerouslySetInnerHTML: {
|
|
3718
|
-
__html: showMore == true ? fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4291
|
+
__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)
|
|
3719
4292
|
}
|
|
3720
4293
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3721
4294
|
"class": "col-lg-12 allcentered"
|
|
3722
|
-
}, (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4295
|
+
}, (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.createElement("p", {
|
|
3723
4296
|
"class": "m-0 p-0 cursor-pointer text-grey font-weight-600 text-right",
|
|
3724
4297
|
onClick: function onClick() {
|
|
3725
4298
|
return setShowMore(!showMore);
|
|
3726
4299
|
}
|
|
3727
|
-
}, showMore ? lang.showless : lang.showmore)))), sectionproperties.showGallery == 'Show' && (fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4300
|
+
}, 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.createElement("div", {
|
|
3728
4301
|
"class": "col-lg-12 p-0"
|
|
3729
4302
|
}, /*#__PURE__*/React.createElement("div", {
|
|
3730
4303
|
"class": "row m-0 w-100 allcentered pl-md-3 pr-md-3",
|
|
@@ -3732,7 +4305,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3732
4305
|
paddingLeft: sectionproperties.galleryPaddingHorizontal + 'px',
|
|
3733
4306
|
paddingRight: sectionproperties.galleryPaddingHorizontal + 'px'
|
|
3734
4307
|
}
|
|
3735
|
-
}, fetchProductInfoQueryContext === null || fetchProductInfoQueryContext === void 0 ? void 0 : (
|
|
4308
|
+
}, 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) {
|
|
3736
4309
|
if (index <= 6) {
|
|
3737
4310
|
return /*#__PURE__*/React.createElement("div", {
|
|
3738
4311
|
"class": ' col-md-4 col-sm-12 mb-3 col-lg-' + sectionproperties.galleryNoOfCols,
|
|
@@ -3751,8 +4324,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
3751
4324
|
loading: "lazy"
|
|
3752
4325
|
}));
|
|
3753
4326
|
}
|
|
3754
|
-
})))))
|
|
3755
|
-
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100
|
|
4327
|
+
}))))), tabname == 'shippingpolicytab' && /*#__PURE__*/React.createElement("div", {
|
|
4328
|
+
"class": "col-lg-12 pl-5 pr-5 p-md-0 w-100"
|
|
3756
4329
|
}, /*#__PURE__*/React.createElement("p", {
|
|
3757
4330
|
className: ' m-0 p-0 wordbreak ',
|
|
3758
4331
|
style: {
|
|
@@ -3763,8 +4336,8 @@ var Productinfo = function Productinfo(props) {
|
|
|
3763
4336
|
dangerouslySetInnerHTML: {
|
|
3764
4337
|
__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
|
|
3765
4338
|
}
|
|
3766
|
-
}))
|
|
3767
|
-
"class": "col-lg-12 p-0 w-100
|
|
4339
|
+
})), tabname == 'refundpolicytab' && /*#__PURE__*/React.createElement("div", {
|
|
4340
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
3768
4341
|
}, /*#__PURE__*/React.createElement("p", {
|
|
3769
4342
|
className: ' m-0 p-0 wordbreak ',
|
|
3770
4343
|
style: {
|
|
@@ -3775,35 +4348,14 @@ var Productinfo = function Productinfo(props) {
|
|
|
3775
4348
|
dangerouslySetInnerHTML: {
|
|
3776
4349
|
__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
|
|
3777
4350
|
}
|
|
3778
|
-
}))
|
|
3779
|
-
"class": "col-lg-12 p-0 w-100
|
|
3780
|
-
}, /*#__PURE__*/React.createElement(
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
}
|
|
3785
|
-
}, /*#__PURE__*/React.createElement("
|
|
3786
|
-
value: "all"
|
|
3787
|
-
}, "All"), /*#__PURE__*/React.createElement("option", {
|
|
3788
|
-
value: "5"
|
|
3789
|
-
}, "5"), /*#__PURE__*/React.createElement("option", {
|
|
3790
|
-
value: "4"
|
|
3791
|
-
}, "4"), /*#__PURE__*/React.createElement("option", {
|
|
3792
|
-
value: "3"
|
|
3793
|
-
}, "3"), /*#__PURE__*/React.createElement("option", {
|
|
3794
|
-
value: "2"
|
|
3795
|
-
}, "2"), /*#__PURE__*/React.createElement("option", {
|
|
3796
|
-
value: "1"
|
|
3797
|
-
}, "1")), GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("p", null, "Loading.."), !GeneralAPIMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
3798
|
-
"class": "row w-100"
|
|
3799
|
-
}, productreviews === null || productreviews === void 0 ? void 0 : productreviews.map(function (reviewitem, reviewindex) {
|
|
3800
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
3801
|
-
"class": "col-lg-12",
|
|
3802
|
-
style: {
|
|
3803
|
-
backgroundColor: 'grey'
|
|
3804
|
-
}
|
|
3805
|
-
}, /*#__PURE__*/React.createElement("p", null, "Title:", reviewitem.reviewtitle), /*#__PURE__*/React.createElement("p", null, "Body:", reviewitem.reviewbody), /*#__PURE__*/React.createElement("p", null, "Name:", reviewitem.review_name), /*#__PURE__*/React.createElement("p", null, "Rating:", reviewitem.review_rating), /*#__PURE__*/React.createElement("p", null, "date:", reviewitem.reviewtimestmap));
|
|
3806
|
-
})))))), /*#__PURE__*/React.createElement("div", {
|
|
4351
|
+
})), tabname == 'reviewstab' && /*#__PURE__*/React.createElement("div", {
|
|
4352
|
+
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
4353
|
+
}, /*#__PURE__*/React.createElement(ProductReviews, {
|
|
4354
|
+
actions: _objectSpread$1Y(_objectSpread$1Y({}, actions), {}, {
|
|
4355
|
+
productinfo_cssstyles: productinfo_cssstyles,
|
|
4356
|
+
sectionproperties: sectionproperties
|
|
4357
|
+
})
|
|
4358
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
3807
4359
|
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 ',
|
|
3808
4360
|
style: {
|
|
3809
4361
|
paddingLeft: props.srcfromprops == 'Productinfomodel' ? langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px' : 0,
|
|
@@ -4043,32 +4595,36 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
4043
4595
|
var _useState = useState(''),
|
|
4044
4596
|
_useState2 = _slicedToArray(_useState, 2);
|
|
4045
4597
|
_useState2[0];
|
|
4046
|
-
|
|
4047
|
-
var _useState3 = useState(
|
|
4598
|
+
_useState2[1];
|
|
4599
|
+
var _useState3 = useState(''),
|
|
4048
4600
|
_useState4 = _slicedToArray(_useState3, 2);
|
|
4049
4601
|
_useState4[0];
|
|
4050
|
-
var
|
|
4051
|
-
var _useState5 = useState(
|
|
4602
|
+
var setCurrentPageId = _useState4[1];
|
|
4603
|
+
var _useState5 = useState(false),
|
|
4604
|
+
_useState6 = _slicedToArray(_useState5, 2);
|
|
4605
|
+
_useState6[0];
|
|
4606
|
+
var setopenorderitemsmodalshow = _useState6[1];
|
|
4607
|
+
var _useState7 = useState({
|
|
4052
4608
|
reviewtitle: '',
|
|
4053
4609
|
reviewbody: '',
|
|
4054
4610
|
reviewrate: 0,
|
|
4055
4611
|
reviewname: ''
|
|
4056
4612
|
}),
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
var
|
|
4061
|
-
|
|
4062
|
-
|
|
4063
|
-
|
|
4064
|
-
var
|
|
4065
|
-
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
var
|
|
4069
|
-
|
|
4070
|
-
orderindex =
|
|
4071
|
-
setorderindex =
|
|
4613
|
+
_useState8 = _slicedToArray(_useState7, 2);
|
|
4614
|
+
_useState8[0];
|
|
4615
|
+
_useState8[1];
|
|
4616
|
+
var _useState9 = useState({}),
|
|
4617
|
+
_useState10 = _slicedToArray(_useState9, 2);
|
|
4618
|
+
_useState10[0];
|
|
4619
|
+
_useState10[1];
|
|
4620
|
+
var _useState11 = useState(false),
|
|
4621
|
+
_useState12 = _slicedToArray(_useState11, 2);
|
|
4622
|
+
_useState12[0];
|
|
4623
|
+
_useState12[1];
|
|
4624
|
+
var _useState13 = useState(''),
|
|
4625
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
4626
|
+
orderindex = _useState14[0],
|
|
4627
|
+
setorderindex = _useState14[1];
|
|
4072
4628
|
useEffect(function () {
|
|
4073
4629
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
4074
4630
|
var tempFetchQueriesEngineContext = _objectSpread$1W({}, FetchQueriesEngineContext);
|
|
@@ -4076,10 +4632,10 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
4076
4632
|
setFetchQueriesEngineContext(_objectSpread$1W({}, tempFetchQueriesEngineContext));
|
|
4077
4633
|
}
|
|
4078
4634
|
}, []);
|
|
4079
|
-
var
|
|
4080
|
-
|
|
4081
|
-
sectionproperties =
|
|
4082
|
-
setsectionproperties =
|
|
4635
|
+
var _useState15 = useState(''),
|
|
4636
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
4637
|
+
sectionproperties = _useState16[0],
|
|
4638
|
+
setsectionproperties = _useState16[1];
|
|
4083
4639
|
useEffect(function () {
|
|
4084
4640
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
4085
4641
|
return x.staticpageid == '6218bccb81d1c';
|
|
@@ -4236,10 +4792,10 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
4236
4792
|
}
|
|
4237
4793
|
})
|
|
4238
4794
|
};
|
|
4239
|
-
var
|
|
4240
|
-
|
|
4241
|
-
bgimagesarray =
|
|
4242
|
-
setbgimagesarray =
|
|
4795
|
+
var _useState17 = useState([]),
|
|
4796
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
4797
|
+
bgimagesarray = _useState18[0],
|
|
4798
|
+
setbgimagesarray = _useState18[1];
|
|
4243
4799
|
useEffect(function () {
|
|
4244
4800
|
if (sectionproperties.length != 0) {
|
|
4245
4801
|
if (sectionproperties.arrayofobjectimagesonly != null) {
|
|
@@ -4645,7 +5201,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
4645
5201
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4646
5202
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
4647
5203
|
}, /*#__PURE__*/React.createElement("div", {
|
|
4648
|
-
className: "col-lg-
|
|
5204
|
+
className: "col-lg-9 col-md-9 col-sm-9 p-0 d-flex align-items-start"
|
|
4649
5205
|
}, /*#__PURE__*/React.createElement("p", {
|
|
4650
5206
|
className: orderhistory_cssstyles.productNameStyles + ' p-0 m-0 wordbreak wordbreak3 ',
|
|
4651
5207
|
style: {
|
|
@@ -4668,26 +5224,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
4668
5224
|
}, /*#__PURE__*/React.createElement("p", {
|
|
4669
5225
|
className: ' m-0 p-0 font-13 fontfamilymedium wordbreak allcentered '
|
|
4670
5226
|
}, variantoptionitem.valuename));
|
|
4671
|
-
})))))),
|
|
4672
|
-
onClick: function onClick() {
|
|
4673
|
-
setopenreviewmodal(true);
|
|
4674
|
-
setopenreviewmodalproductobj(item);
|
|
4675
|
-
}
|
|
4676
|
-
}, "Rate item"), item.hasreview == 1 && /*#__PURE__*/React.createElement("p", {
|
|
4677
|
-
style: {
|
|
4678
|
-
color: 'green'
|
|
4679
|
-
},
|
|
4680
|
-
onClick: function onClick() {
|
|
4681
|
-
setopenreviewmodal(true);
|
|
4682
|
-
setopenreviewmodalproductobj(item);
|
|
4683
|
-
setreviewpayloadobj({
|
|
4684
|
-
reviewtitle: item.reviewtitle,
|
|
4685
|
-
reviewbody: item.reviewbody,
|
|
4686
|
-
reviewrate: item.review_rating,
|
|
4687
|
-
reviewname: item.review_name
|
|
4688
|
-
});
|
|
4689
|
-
}
|
|
4690
|
-
}, "View Rate")), /*#__PURE__*/React.createElement("div", {
|
|
5227
|
+
})))))), /*#__PURE__*/React.createElement("div", {
|
|
4691
5228
|
className: "col-lg-12 p-0"
|
|
4692
5229
|
}, /*#__PURE__*/React.createElement("hr", {
|
|
4693
5230
|
className: "mt- mb-3"
|
|
@@ -4950,77 +5487,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
4950
5487
|
color: sectionproperties.paymenttextcolor,
|
|
4951
5488
|
fontWeight: sectionproperties.paymenttextfontweight
|
|
4952
5489
|
}
|
|
4953
|
-
}, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))))))))
|
|
4954
|
-
show: openreviewmodal,
|
|
4955
|
-
onHide: function onHide() {
|
|
4956
|
-
return setopenreviewmodal(false);
|
|
4957
|
-
},
|
|
4958
|
-
centered: true,
|
|
4959
|
-
size: "lg"
|
|
4960
|
-
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("p", null, "Review modal"), /*#__PURE__*/React.createElement("div", {
|
|
4961
|
-
"class": "col-lg-12"
|
|
4962
|
-
}, /*#__PURE__*/React.createElement("p", null, "Review title"), /*#__PURE__*/React.createElement("input", {
|
|
4963
|
-
disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
|
|
4964
|
-
value: reviewpayloadobj.reviewtitle,
|
|
4965
|
-
onChange: function onChange(event) {
|
|
4966
|
-
var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
|
|
4967
|
-
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
4968
|
-
setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
|
|
4969
|
-
}
|
|
4970
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
4971
|
-
"class": "col-lg-12"
|
|
4972
|
-
}, /*#__PURE__*/React.createElement("p", null, "Review body"), /*#__PURE__*/React.createElement("input", {
|
|
4973
|
-
disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
|
|
4974
|
-
value: reviewpayloadobj.reviewbody,
|
|
4975
|
-
onChange: function onChange(event) {
|
|
4976
|
-
var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
|
|
4977
|
-
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
4978
|
-
setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
|
|
4979
|
-
}
|
|
4980
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
4981
|
-
"class": "col-lg-12"
|
|
4982
|
-
}, /*#__PURE__*/React.createElement("p", null, "Review rate"), /*#__PURE__*/React.createElement("input", {
|
|
4983
|
-
disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
|
|
4984
|
-
value: reviewpayloadobj.reviewrate,
|
|
4985
|
-
type: "number",
|
|
4986
|
-
onChange: function onChange(event) {
|
|
4987
|
-
var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
|
|
4988
|
-
tempreviewpayloadobj.reviewrate = event.target.value;
|
|
4989
|
-
setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
|
|
4990
|
-
}
|
|
4991
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
4992
|
-
"class": "col-lg-12"
|
|
4993
|
-
}, /*#__PURE__*/React.createElement("p", null, "Review name"), /*#__PURE__*/React.createElement("input", {
|
|
4994
|
-
disabled: openreviewmodalproductobj.hasreview == 1 ? true : false,
|
|
4995
|
-
value: reviewpayloadobj.reviewname,
|
|
4996
|
-
onChange: function onChange(event) {
|
|
4997
|
-
var tempreviewpayloadobj = _objectSpread$1W({}, reviewpayloadobj);
|
|
4998
|
-
tempreviewpayloadobj.reviewname = event.target.value;
|
|
4999
|
-
setreviewpayloadobj(_objectSpread$1W({}, tempreviewpayloadobj));
|
|
5000
|
-
}
|
|
5001
|
-
})), openreviewmodalproductobj.hasreview == 0 && /*#__PURE__*/React.createElement("button", {
|
|
5002
|
-
onClick: function onClick() {
|
|
5003
|
-
if (reviewpayloadobj.reviewtitle.length != 0 && reviewpayloadobj.reviewbody.length != 0 && reviewpayloadobj.reviewrate.length != 0 && parseInt(reviewpayloadobj.reviewrate) > 0 && reviewpayloadobj.reviewname.length != 0) {
|
|
5004
|
-
var tempreviewpayloadobj = reviewpayloadobj;
|
|
5005
|
-
tempreviewpayloadobj.endpointurl = '/addproductreview';
|
|
5006
|
-
tempreviewpayloadobj.orderitemid = openreviewmodalproductobj.orderitemid;
|
|
5007
|
-
GeneralAPIMutationContext.mutate({
|
|
5008
|
-
endpointurl: '/addproductreview',
|
|
5009
|
-
orderitemid: openreviewmodalproductobj.orderitemid,
|
|
5010
|
-
reviewpayloadobj: reviewpayloadobj,
|
|
5011
|
-
mutateSuccesscallback: function mutateSuccesscallback(data, variables) {
|
|
5012
|
-
if (data.data.status) {
|
|
5013
|
-
NotificationManager.success('', 'Success');
|
|
5014
|
-
} else {
|
|
5015
|
-
NotificationManager.warning('', data.data.reason);
|
|
5016
|
-
}
|
|
5017
|
-
}
|
|
5018
|
-
});
|
|
5019
|
-
} else {
|
|
5020
|
-
alert('Please fill the missing fields');
|
|
5021
|
-
}
|
|
5022
|
-
}
|
|
5023
|
-
}, "Submit")))))));
|
|
5490
|
+
}, langdetect == 'en' ? sectionproperties.cod_text_en : sectionproperties.cod_text_ar))))))))))));
|
|
5024
5491
|
};
|
|
5025
5492
|
|
|
5026
5493
|
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";
|
|
@@ -7216,7 +7683,7 @@ var Select = /*#__PURE__*/React.lazy(function () {
|
|
|
7216
7683
|
return import('react-select');
|
|
7217
7684
|
});
|
|
7218
7685
|
var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
7219
|
-
var _css;
|
|
7686
|
+
var _fetchAuthorizationQu, _fetchAuthorizationQu2, _fetchAuthorizationQu3, _fetchAuthorizationQu4, _fetchAuthorizationQu5, _fetchAuthorizationQu6, _css;
|
|
7220
7687
|
var lang = props.actions.lang;
|
|
7221
7688
|
var langdetect = props.actions.langdetect;
|
|
7222
7689
|
props.actions.routingcountext;
|
|
@@ -7229,21 +7696,34 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7229
7696
|
var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
|
|
7230
7697
|
var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
|
|
7231
7698
|
var CustomerSignUpMutationContext = props.actions.CustomerSignUpMutationContext;
|
|
7699
|
+
var fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
|
|
7232
7700
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
7233
7701
|
var instapikey = props.actions.instapikey;
|
|
7234
7702
|
var templatepropcontext = props.actions.templatepropcontext;
|
|
7235
7703
|
props.actions.ikimagecredcontext;
|
|
7236
7704
|
var NotificationManager = props.actions.NotificationManager;
|
|
7237
7705
|
var actions = props.actions;
|
|
7238
|
-
var _useState = useState(
|
|
7706
|
+
var _useState = 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),
|
|
7239
7707
|
_useState2 = _slicedToArray(_useState, 2),
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
var _useState3 = useState(
|
|
7243
|
-
_useState4 = _slicedToArray(_useState3, 2)
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
var _useState5 = useState(
|
|
7708
|
+
customeraddressrequierd = _useState2[0],
|
|
7709
|
+
setcustomeraddressrequierd = _useState2[1];
|
|
7710
|
+
var _useState3 = 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),
|
|
7711
|
+
_useState4 = _slicedToArray(_useState3, 2);
|
|
7712
|
+
_useState4[0];
|
|
7713
|
+
var setcustomervalidateemail = _useState4[1];
|
|
7714
|
+
var _useState5 = useState(false),
|
|
7715
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
7716
|
+
validateemailmodal = _useState6[0],
|
|
7717
|
+
setvalidateemailmodal = _useState6[1];
|
|
7718
|
+
var _useState7 = useState(''),
|
|
7719
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
7720
|
+
sectionproperties = _useState8[0],
|
|
7721
|
+
setsectionproperties = _useState8[1];
|
|
7722
|
+
var _useState9 = useState(false),
|
|
7723
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
7724
|
+
dataloaded = _useState10[0],
|
|
7725
|
+
setdataloaded = _useState10[1];
|
|
7726
|
+
var _useState11 = useState({
|
|
7247
7727
|
instapikey: instapikey,
|
|
7248
7728
|
name: '',
|
|
7249
7729
|
email: '',
|
|
@@ -7258,9 +7738,16 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7258
7738
|
cityid: '',
|
|
7259
7739
|
countrydialcode: ''
|
|
7260
7740
|
}),
|
|
7261
|
-
|
|
7262
|
-
payloadobj =
|
|
7263
|
-
setpayloadobj =
|
|
7741
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
7742
|
+
payloadobj = _useState12[0],
|
|
7743
|
+
setpayloadobj = _useState12[1];
|
|
7744
|
+
useEffect(function () {
|
|
7745
|
+
if (fetchAuthorizationQueryContext.isSuccess) {
|
|
7746
|
+
var _fetchAuthorizationQu7, _fetchAuthorizationQu8, _fetchAuthorizationQu9, _fetchAuthorizationQu10, _fetchAuthorizationQu11, _fetchAuthorizationQu12;
|
|
7747
|
+
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);
|
|
7748
|
+
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);
|
|
7749
|
+
}
|
|
7750
|
+
}, [fetchAuthorizationQueryContext.isSuccess]);
|
|
7264
7751
|
useEffect(function () {
|
|
7265
7752
|
var tempFetchQueriesEngineContext = _objectSpread$1R({}, FetchQueriesEngineContext);
|
|
7266
7753
|
tempFetchQueriesEngineContext.institutecustomerinfosignup = true;
|
|
@@ -7454,7 +7941,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7454
7941
|
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'
|
|
7455
7942
|
}, /*#__PURE__*/React.createElement("label", {
|
|
7456
7943
|
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
7457
|
-
}, lang.country
|
|
7944
|
+
}, lang.country, customeraddressrequierd == 1 && /*#__PURE__*/React.createElement("span", {
|
|
7945
|
+
"class": "ml-1 mr-1",
|
|
7946
|
+
style: {
|
|
7947
|
+
color: 'red'
|
|
7948
|
+
}
|
|
7949
|
+
}, "*")), fetchTabexCountriesQueryContext.isFetching && /*#__PURE__*/React.createElement("div", {
|
|
7458
7950
|
className: "col-lg-4 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
|
|
7459
7951
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
7460
7952
|
color: "black",
|
|
@@ -7497,7 +7989,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7497
7989
|
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'
|
|
7498
7990
|
}, /*#__PURE__*/React.createElement("label", {
|
|
7499
7991
|
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
7500
|
-
}, lang.choosestategov
|
|
7992
|
+
}, lang.choosestategov, ' ', customeraddressrequierd == 1 && /*#__PURE__*/React.createElement("span", {
|
|
7993
|
+
"class": "ml-1 mr-1",
|
|
7994
|
+
style: {
|
|
7995
|
+
color: 'red'
|
|
7996
|
+
}
|
|
7997
|
+
}, "*")), fetchTabexStatesQueryContext.isFetching && /*#__PURE__*/React.createElement("div", {
|
|
7501
7998
|
className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
|
|
7502
7999
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
7503
8000
|
color: "black",
|
|
@@ -7544,7 +8041,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7544
8041
|
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'
|
|
7545
8042
|
}, /*#__PURE__*/React.createElement("label", {
|
|
7546
8043
|
className: formstyles.input_label_name + ' d-flex justify-content-start '
|
|
7547
|
-
}, lang.city
|
|
8044
|
+
}, lang.city, customeraddressrequierd == 1 && /*#__PURE__*/React.createElement("span", {
|
|
8045
|
+
"class": "ml-1 mr-1",
|
|
8046
|
+
style: {
|
|
8047
|
+
color: 'red'
|
|
8048
|
+
}
|
|
8049
|
+
}, "*")), fetchTabexCitiesQueryContext.isFetching && /*#__PURE__*/React.createElement("div", {
|
|
7548
8050
|
className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0 d-flex justify-content-center align-items-center"
|
|
7549
8051
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
7550
8052
|
color: "black",
|
|
@@ -7587,7 +8089,12 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7587
8089
|
className: 'col-lg-12 col-md-12 col-sm-12 mb-4 p-sm-0'
|
|
7588
8090
|
}, /*#__PURE__*/React.createElement("label", {
|
|
7589
8091
|
className: "".concat(formstyles.input_label_name) + ' mb-1 text-transform-none d-flex align-items-start '
|
|
7590
|
-
}, lang.address
|
|
8092
|
+
}, lang.address, ' ', customeraddressrequierd == 1 && /*#__PURE__*/React.createElement("span", {
|
|
8093
|
+
"class": "ml-1 mr-1",
|
|
8094
|
+
style: {
|
|
8095
|
+
color: 'red'
|
|
8096
|
+
}
|
|
8097
|
+
}, "*")), /*#__PURE__*/React.createElement("div", {
|
|
7591
8098
|
className: loginstyles.wrap_input100
|
|
7592
8099
|
}, /*#__PURE__*/React.createElement(TextareaAutosize, {
|
|
7593
8100
|
type: "text",
|
|
@@ -7848,6 +8355,7 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7848
8355
|
className: "".concat(formstyles.signupbtn) + ' d-flex align-items-center justify-content-center ',
|
|
7849
8356
|
disabled: CustomerSignUpMutationContext.isLoading ? true : false,
|
|
7850
8357
|
onClick: function onClick() {
|
|
8358
|
+
var isshippingaddresscompleted = false;
|
|
7851
8359
|
var passwordvalidation = false;
|
|
7852
8360
|
if (authdetailsContext.loggedin == false) {
|
|
7853
8361
|
if (payloadobj.password.length != 0) {
|
|
@@ -7867,27 +8375,38 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7867
8375
|
if (passwordvalidation == false) {
|
|
7868
8376
|
NotificationManager.warning('', lang.passwordsdontmatch);
|
|
7869
8377
|
}
|
|
7870
|
-
if (
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
8378
|
+
if (customeraddressrequierd == 1) {
|
|
8379
|
+
if (payloadobj.countryid.length != 0 && payloadobj.stateid.length != 0 && payloadobj.cityid.length != 0 && payloadobj.shippingaddress.length != 0) {
|
|
8380
|
+
isshippingaddresscompleted = true;
|
|
8381
|
+
}
|
|
8382
|
+
} else {
|
|
8383
|
+
isshippingaddresscompleted = true;
|
|
8384
|
+
}
|
|
8385
|
+
if (payloadobj.email.length != 0 && payloadobj.name.length != 0 && payloadobj.mobile.length != 0 && passwordvalidation == true) {
|
|
8386
|
+
if (isshippingaddresscompleted) {
|
|
8387
|
+
var signupformismissing = true;
|
|
8388
|
+
payloadobj.instsignupformvalues.forEach(function (arrayItem) {
|
|
8389
|
+
if (arrayItem.optional == 1) {
|
|
8390
|
+
if (arrayItem.customersignupvalue == undefined || arrayItem.customersignupvalue.length == 0) {
|
|
8391
|
+
signupformismissing = false;
|
|
8392
|
+
}
|
|
7876
8393
|
}
|
|
7877
|
-
}
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
8394
|
+
});
|
|
8395
|
+
if (signupformismissing) {
|
|
8396
|
+
var temppayloadobj = _objectSpread$1R({}, payloadobj);
|
|
8397
|
+
if (authdetailsContext.loggedin == true) {
|
|
8398
|
+
temppayloadobj.functype = 'edit';
|
|
8399
|
+
} else {
|
|
8400
|
+
temppayloadobj.functype = 'add';
|
|
8401
|
+
}
|
|
8402
|
+
temppayloadobj.addedsourcetype = 'Webapp';
|
|
8403
|
+
temppayloadobj.instapikey = instapikey;
|
|
8404
|
+
CustomerSignUpMutationContext.mutate(temppayloadobj);
|
|
7883
8405
|
} else {
|
|
7884
|
-
|
|
8406
|
+
NotificationManager.warning('', lang.completerequiredfields);
|
|
7885
8407
|
}
|
|
7886
|
-
temppayloadobj.addedsourcetype = 'Webapp';
|
|
7887
|
-
temppayloadobj.instapikey = instapikey;
|
|
7888
|
-
CustomerSignUpMutationContext.mutate(temppayloadobj);
|
|
7889
8408
|
} else {
|
|
7890
|
-
NotificationManager.warning('', lang.
|
|
8409
|
+
NotificationManager.warning('', lang.pleasecompleteaddressmissingfields);
|
|
7891
8410
|
}
|
|
7892
8411
|
} else {
|
|
7893
8412
|
NotificationManager.warning('', lang.fillthemissingfields);
|
|
@@ -7930,7 +8449,31 @@ var CustomerInformationForm = function CustomerInformationForm(props) {
|
|
|
7930
8449
|
className: "ml-1 mr-1"
|
|
7931
8450
|
}, /*#__PURE__*/React.createElement(GoogleLoginButton, {
|
|
7932
8451
|
actions: actions
|
|
7933
|
-
}))))
|
|
8452
|
+
})))), /*#__PURE__*/React.createElement(Modal, {
|
|
8453
|
+
show: validateemailmodal,
|
|
8454
|
+
onHide: function onHide() {
|
|
8455
|
+
return setvalidateemailmodal(false);
|
|
8456
|
+
},
|
|
8457
|
+
centered: true,
|
|
8458
|
+
size: 'md'
|
|
8459
|
+
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement("div", {
|
|
8460
|
+
"class": "d-flex align-items-center justify-content-center bgdanger-hover",
|
|
8461
|
+
style: {
|
|
8462
|
+
position: 'absolute',
|
|
8463
|
+
right: -15,
|
|
8464
|
+
top: -15,
|
|
8465
|
+
width: '4vh',
|
|
8466
|
+
height: '4vh',
|
|
8467
|
+
background: '#000',
|
|
8468
|
+
borderRadius: '50%'
|
|
8469
|
+
},
|
|
8470
|
+
onClick: function onClick() {
|
|
8471
|
+
return setvalidateemailmodal(false);
|
|
8472
|
+
}
|
|
8473
|
+
}, /*#__PURE__*/React.createElement(IoMdClose, {
|
|
8474
|
+
size: 15,
|
|
8475
|
+
color: "white"
|
|
8476
|
+
}))), /*#__PURE__*/React.createElement(Modal.Footer, null)));
|
|
7934
8477
|
};
|
|
7935
8478
|
|
|
7936
8479
|
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; }
|
|
@@ -8441,7 +8984,7 @@ var Policies = function Policies(props) {
|
|
|
8441
8984
|
}), /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
8442
8985
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
8443
8986
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
8444
|
-
path: bgimagesarray.length != 0 ? langdetect == 'en' ? (_bgimagesarray$7 = bgimagesarray[0]) === null || _bgimagesarray$7 === void 0 ? void 0 : _bgimagesarray$7.
|
|
8987
|
+
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) : '',
|
|
8445
8988
|
"class": "d-none d-sm-flex",
|
|
8446
8989
|
style: {
|
|
8447
8990
|
height: '100%',
|
|
@@ -9331,7 +9874,14 @@ var Filter$1 = function Filter(props) {
|
|
|
9331
9874
|
_useState10 = _slicedToArray(_useState9, 2);
|
|
9332
9875
|
_useState10[0];
|
|
9333
9876
|
_useState10[1];
|
|
9334
|
-
var _useState11 = useState(
|
|
9877
|
+
var _useState11 = useState({
|
|
9878
|
+
min: 0,
|
|
9879
|
+
max: 5
|
|
9880
|
+
}),
|
|
9881
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
9882
|
+
raterangevalue = _useState12[0],
|
|
9883
|
+
setraterangevalue = _useState12[1];
|
|
9884
|
+
var _useState13 = useState([{
|
|
9335
9885
|
payloadvalue: 'sortprice',
|
|
9336
9886
|
name: lang.price,
|
|
9337
9887
|
filterarray: [{
|
|
@@ -9356,9 +9906,9 @@ var Filter$1 = function Filter(props) {
|
|
|
9356
9906
|
isfilterselected: false
|
|
9357
9907
|
}]
|
|
9358
9908
|
}]),
|
|
9359
|
-
|
|
9360
|
-
otherfilters =
|
|
9361
|
-
|
|
9909
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
9910
|
+
otherfilters = _useState14[0];
|
|
9911
|
+
_useState14[1];
|
|
9362
9912
|
useEffect(function () {
|
|
9363
9913
|
filterupdater();
|
|
9364
9914
|
}, []);
|
|
@@ -9376,6 +9926,22 @@ var Filter$1 = function Filter(props) {
|
|
|
9376
9926
|
useEffect(function () {
|
|
9377
9927
|
filterupdater();
|
|
9378
9928
|
}, [ProductFilterObjContext]);
|
|
9929
|
+
var timeoutRef = React.useRef(null);
|
|
9930
|
+
React.useEffect(function () {
|
|
9931
|
+
if (timeoutRef.current !== null) {
|
|
9932
|
+
clearTimeout(timeoutRef.current);
|
|
9933
|
+
}
|
|
9934
|
+
timeoutRef.current = setTimeout(function () {
|
|
9935
|
+
if (raterangevalue.min != 0 || raterangevalue.max != 5) {
|
|
9936
|
+
var tempfetchproductsfilerobjcontext = _objectSpread$1L({}, ProductFilterObjContext);
|
|
9937
|
+
tempfetchproductsfilerobjcontext.minrate = raterangevalue.min;
|
|
9938
|
+
tempfetchproductsfilerobjcontext.maxrate = raterangevalue.max;
|
|
9939
|
+
tempfetchproductsfilerobjcontext.page = 0;
|
|
9940
|
+
setProductFilterObjContext(_objectSpread$1L({}, tempfetchproductsfilerobjcontext));
|
|
9941
|
+
// routingcountext(StaticPagesLinksContext.GeneralProductsComponent, true, encodeURIComponent(JSON.stringify(tempfetchproductsfilerobjcontext)));
|
|
9942
|
+
}
|
|
9943
|
+
}, 500);
|
|
9944
|
+
}, [raterangevalue]);
|
|
9379
9945
|
var filterupdater = function filterupdater() {
|
|
9380
9946
|
if (instfilters.length != 0) {
|
|
9381
9947
|
var _ProductFilterObjCont;
|
|
@@ -10006,7 +10572,28 @@ var Filter$1 = function Filter(props) {
|
|
|
10006
10572
|
}
|
|
10007
10573
|
}, valueitem.name)));
|
|
10008
10574
|
}))))))));
|
|
10009
|
-
})
|
|
10575
|
+
}), sectionproperties.showfilterbyrating == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
10576
|
+
className: "col-lg-12 pl-4 pr-4"
|
|
10577
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10578
|
+
className: filter_cssstyles.titlecontainer + ' row m-0 p-0 mb-2 pl-md-3 pr-md-3 '
|
|
10579
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
10580
|
+
className: "col-lg-12 col-md-12 col-sm-12 p-0 mb-3"
|
|
10581
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
10582
|
+
className: langdetect == 'en' ? filter_cssstyles.collapsetitle + ' m-0 p-0 collapsetitle ' : filter_cssstyles.collapsetitle + ' collapsetitle m-0 p-0 text-right'
|
|
10583
|
+
}, langdetect == 'en' ? 'Ratings' : 'التقييمات')), /*#__PURE__*/React.createElement("div", {
|
|
10584
|
+
className: "col-lg-12 col-md-12 col-sm-12 mb-4"
|
|
10585
|
+
}, /*#__PURE__*/React.createElement(InputRange, {
|
|
10586
|
+
draggableTrack: true,
|
|
10587
|
+
formatLabel: function formatLabel(value) {
|
|
10588
|
+
return "".concat(value);
|
|
10589
|
+
},
|
|
10590
|
+
maxValue: 5,
|
|
10591
|
+
minValue: 0,
|
|
10592
|
+
value: raterangevalue,
|
|
10593
|
+
onChange: function onChange(value) {
|
|
10594
|
+
setraterangevalue(_objectSpread$1L({}, value));
|
|
10595
|
+
}
|
|
10596
|
+
}))))), /*#__PURE__*/React.createElement("div", {
|
|
10010
10597
|
className: "col-lg-9 col-md-9 col-sm-9 d-flex align-items-center d-md-none"
|
|
10011
10598
|
}, /*#__PURE__*/React.createElement("p", {
|
|
10012
10599
|
className: "m-0 p-0 font-16 font-weight-600",
|
|
@@ -10945,7 +11532,10 @@ var CardsSection = function CardsSection(props) {
|
|
|
10945
11532
|
}, /*#__PURE__*/React.createElement(ScrollMenu, {
|
|
10946
11533
|
transitionBehavior: 'auto',
|
|
10947
11534
|
wrapperClassName: '',
|
|
10948
|
-
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' :
|
|
11535
|
+
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' :
|
|
11536
|
+
// : item.tabexsectioninfo.sectioncompname == 'Productcard_with_slideanimation'
|
|
11537
|
+
// ? 'scrollmenuclassnameitemProductcard_with_slideanimation'
|
|
11538
|
+
item.tabexsectioninfo.sectioncompname == 'Categorycard_withtext' ? 'scrollmenuclassnameitemCategorycard_withtext' :
|
|
10949
11539
|
// : item.tabexsectioninfo.sectioncompname == 'Productcard_animatedbuttons'
|
|
10950
11540
|
// ? 'scrollmenuclassnameitemProductcard_animatedbuttons'
|
|
10951
11541
|
item.tabexsectioninfo.sectioncompname == 'Productcard_with_variants' ? 'scrollmenuclassnameitemProductcard_with_variants' : item.tabexsectioninfo.sectioncompname == 'Productcarddefault' ? 'scrollmenuclassnameitemProductcarddefault' :
|
|
@@ -11695,7 +12285,7 @@ var usflag = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQQAAAEECAYAAADOCEoK
|
|
|
11695
12285
|
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; }
|
|
11696
12286
|
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(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; }
|
|
11697
12287
|
var Headerresponsive = function Headerresponsive(props) {
|
|
11698
|
-
var _logoarrayofobjects$, _logoarrayofobjects$2,
|
|
12288
|
+
var _logoarrayofobjects$, _logoarrayofobjects$2, _logoarrayofobjects$3, _logoarrayofobjects$4, _authdetailsContext$i, _authdetailsContext$i2, _authdetailsContext$i3, _authdetailsContext$i4, _authdetailsContext$i5, _authdetailsContext$i6;
|
|
11699
12289
|
var actions = props.actions;
|
|
11700
12290
|
var LogoutMutationContext = props.actions.LogoutMutationContext;
|
|
11701
12291
|
var setsidecartnavshowcontext = props.actions.setsidecartnavshowcontext;
|
|
@@ -11904,6 +12494,69 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
11904
12494
|
}
|
|
11905
12495
|
})
|
|
11906
12496
|
};
|
|
12497
|
+
var CartButton = function CartButton() {
|
|
12498
|
+
var _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue7, _fetchcustomercartQue8, _fetchcustomercartQue9, _fetchcustomercartQue10;
|
|
12499
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12500
|
+
"class": "d-flex align-items-center",
|
|
12501
|
+
style: {
|
|
12502
|
+
position: 'relative'
|
|
12503
|
+
}
|
|
12504
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
12505
|
+
className: "".concat(header_cssstyles.addtocartbtn_resp) + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
|
|
12506
|
+
onClick: function onClick() {
|
|
12507
|
+
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4;
|
|
12508
|
+
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) {
|
|
12509
|
+
routingcountext(StaticPagesLinksContext.viewcart);
|
|
12510
|
+
} else {
|
|
12511
|
+
setsidecartnavshowcontext(true);
|
|
12512
|
+
}
|
|
12513
|
+
}
|
|
12514
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
12515
|
+
className: ' h-100 d-flex align-items-center justify-content-center '
|
|
12516
|
+
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React.createElement(FiShoppingBag, {
|
|
12517
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12518
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React.createElement(CgShoppingBag, {
|
|
12519
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12520
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React.createElement(BsBag, {
|
|
12521
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12522
|
+
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React.createElement(RiHandbagLine, {
|
|
12523
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12524
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React.createElement(FiShoppingCart, {
|
|
12525
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12526
|
+
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
12527
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12528
|
+
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React.createElement(FiCalendar, {
|
|
12529
|
+
size: sectionproperties.cartBtniconresp_size
|
|
12530
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
12531
|
+
className: "".concat(header_cssstyles.badge_counter_header_notifications),
|
|
12532
|
+
style: {
|
|
12533
|
+
top: sectionproperties.cartbadgefromtop + 'px',
|
|
12534
|
+
right: sectionproperties.cartbadgefromright + 'px'
|
|
12535
|
+
}
|
|
12536
|
+
}, (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));
|
|
12537
|
+
};
|
|
12538
|
+
var FavButton = function FavButton() {
|
|
12539
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
12540
|
+
style: {
|
|
12541
|
+
position: 'relative',
|
|
12542
|
+
marginLeft: langdetect == 'en' ? '12px' : '16px',
|
|
12543
|
+
marginRight: langdetect == 'en' ? '16px' : '16px'
|
|
12544
|
+
}
|
|
12545
|
+
}, /*#__PURE__*/React.createElement("button", {
|
|
12546
|
+
className: header_cssstyles.wishlistbtn + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
|
|
12547
|
+
onClick: function onClick() {
|
|
12548
|
+
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
12549
|
+
}
|
|
12550
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
12551
|
+
className: ' h-100 d-flex align-items-center justify-content-center '
|
|
12552
|
+
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiFillStar, null))), /*#__PURE__*/React.createElement("div", {
|
|
12553
|
+
className: "".concat(header_cssstyles.badge_counter_header_notifications),
|
|
12554
|
+
style: {
|
|
12555
|
+
top: sectionproperties.wishlistresponsivebadgefromtop + 'px',
|
|
12556
|
+
right: sectionproperties.wishlistresponsivebadgefromright + 'px'
|
|
12557
|
+
}
|
|
12558
|
+
}, favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length));
|
|
12559
|
+
};
|
|
11907
12560
|
return /*#__PURE__*/React.createElement("div", {
|
|
11908
12561
|
className: "row m-0 w-100"
|
|
11909
12562
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -11918,7 +12571,7 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
11918
12571
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11919
12572
|
className: "row m-0 w-100 p-0 pl-2 pr-2 "
|
|
11920
12573
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11921
|
-
className:
|
|
12574
|
+
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'
|
|
11922
12575
|
}, /*#__PURE__*/React.createElement("div", {
|
|
11923
12576
|
className: langdetect == 'en' ? 'mr-1' : 'ml-1',
|
|
11924
12577
|
onClick: function onClick() {
|
|
@@ -11940,7 +12593,7 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
11940
12593
|
style: {
|
|
11941
12594
|
color: sectionproperties.resp_sidenav_color
|
|
11942
12595
|
}
|
|
11943
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
12596
|
+
}))), sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
11944
12597
|
className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
|
|
11945
12598
|
style: {
|
|
11946
12599
|
cursor: 'pointer'
|
|
@@ -11956,8 +12609,26 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
11956
12609
|
maxWidth: '100%',
|
|
11957
12610
|
maxHeight: '100%'
|
|
11958
12611
|
}
|
|
12612
|
+
}))), sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React.createElement("div", {
|
|
12613
|
+
className: 'col-md-4 col-sm-4 allcentered p-0'
|
|
12614
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
12615
|
+
className: header_cssstyles.header_logo + ' d-flex align-items-center justify-content-start ',
|
|
12616
|
+
style: {
|
|
12617
|
+
cursor: 'pointer'
|
|
12618
|
+
},
|
|
12619
|
+
onClick: function onClick() {
|
|
12620
|
+
routingcountext('home');
|
|
12621
|
+
}
|
|
12622
|
+
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
12623
|
+
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
12624
|
+
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
12625
|
+
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,
|
|
12626
|
+
style: {
|
|
12627
|
+
maxWidth: '100%',
|
|
12628
|
+
maxHeight: '100%'
|
|
12629
|
+
}
|
|
11959
12630
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
11960
|
-
className:
|
|
12631
|
+
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'
|
|
11961
12632
|
}, sectionproperties.ShowUserBtn == 'Show' && /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement("button", {
|
|
11962
12633
|
"class": "".concat(header_cssstyles.userbtn_respContainer) + ' d-flex align-items-center justify-content-center p-0 m-0 font-weight-600 mt-1 '
|
|
11963
12634
|
}, /*#__PURE__*/React.createElement("p", {
|
|
@@ -12118,69 +12789,13 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
12118
12789
|
className: ' d-flex align-items-center m-0 p-0 '
|
|
12119
12790
|
}, /*#__PURE__*/React.createElement(BiLogOutCircle, null), /*#__PURE__*/React.createElement("span", {
|
|
12120
12791
|
className: langdetect == 'en' ? 'ml-2' : 'mr-2'
|
|
12121
|
-
}, lang.logout)))))), sectionproperties.faviconshape != null && /*#__PURE__*/React.createElement("div", {
|
|
12122
|
-
style: {
|
|
12123
|
-
position: 'relative',
|
|
12124
|
-
marginLeft: langdetect == 'en' ? '12px' : '16px',
|
|
12125
|
-
marginRight: langdetect == 'en' ? '16px' : '16px'
|
|
12126
|
-
}
|
|
12127
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
12128
|
-
className: header_cssstyles.wishlistbtn + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
|
|
12129
|
-
onClick: function onClick() {
|
|
12130
|
-
routingcountext(StaticPagesLinksContext.Wishlist);
|
|
12131
|
-
}
|
|
12132
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
12133
|
-
className: ' h-100 d-flex align-items-center justify-content-center '
|
|
12134
|
-
}, sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, null), sectionproperties.faviconshape == 'Star Shape' && /*#__PURE__*/React.createElement(AiFillStar, null))), /*#__PURE__*/React.createElement("div", {
|
|
12135
|
-
className: "".concat(header_cssstyles.badge_counter_header_notifications),
|
|
12136
|
-
style: {
|
|
12137
|
-
top: sectionproperties.wishlistresponsivebadgefromtop + 'px',
|
|
12138
|
-
right: sectionproperties.wishlistresponsivebadgefromright + 'px'
|
|
12139
|
-
}
|
|
12140
|
-
}, favoriteprojectscountContext.length >= 10 ? '+9' : favoriteprojectscountContext.length)), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
12141
|
-
style: {
|
|
12142
|
-
position: 'relative'
|
|
12143
|
-
},
|
|
12144
|
-
"class": "d-flex align-items-center"
|
|
12145
|
-
}, /*#__PURE__*/React.createElement("button", {
|
|
12146
|
-
className: "".concat(header_cssstyles.addtocartbtn_resp) + ' d-flex align-items-center justify-content-center ml-1 p-0 ',
|
|
12147
|
-
onClick: function onClick() {
|
|
12148
|
-
var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4;
|
|
12149
|
-
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) {
|
|
12150
|
-
routingcountext(StaticPagesLinksContext.viewcart);
|
|
12151
|
-
} else {
|
|
12152
|
-
setsidecartnavshowcontext(true);
|
|
12153
|
-
}
|
|
12154
|
-
}
|
|
12155
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
12156
|
-
className: ' h-100 d-flex align-items-center justify-content-center '
|
|
12157
|
-
}, sectionproperties.carticonstyle == 'Shopping bag 1' && /*#__PURE__*/React.createElement(FiShoppingBag, {
|
|
12158
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12159
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 2' && /*#__PURE__*/React.createElement(CgShoppingBag, {
|
|
12160
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12161
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 3' && /*#__PURE__*/React.createElement(BsBag, {
|
|
12162
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12163
|
-
}), sectionproperties.carticonstyle == 'Shopping bag 4' && /*#__PURE__*/React.createElement(RiHandbagLine, {
|
|
12164
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12165
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 1' && /*#__PURE__*/React.createElement(FiShoppingCart, {
|
|
12166
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12167
|
-
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
12168
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12169
|
-
}), sectionproperties.carticonstyle == 'Calendar 1' && /*#__PURE__*/React.createElement(FiCalendar, {
|
|
12170
|
-
size: sectionproperties.cartBtniconresp_size
|
|
12171
|
-
}))), /*#__PURE__*/React.createElement("div", {
|
|
12172
|
-
className: "".concat(header_cssstyles.badge_counter_header_notifications),
|
|
12173
|
-
style: {
|
|
12174
|
-
top: sectionproperties.cartbadgefromtop + 'px',
|
|
12175
|
-
right: sectionproperties.cartbadgefromright + 'px'
|
|
12176
|
-
}
|
|
12177
|
-
}, (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.createElement("div", {
|
|
12792
|
+
}, lang.logout)))))), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Show' && FavButton(), sectionproperties.cartBtnShow == 'Show' && sectionproperties.searchbar_show == 'Show' && CartButton())), /*#__PURE__*/React.createElement("div", {
|
|
12178
12793
|
className: "row m-0 w-100 p-0",
|
|
12179
12794
|
style: {
|
|
12180
12795
|
borderTop: '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
|
|
12181
12796
|
borderBottom: '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
|
|
12182
12797
|
}
|
|
12183
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
12798
|
+
}, sectionproperties.searchbar_show == 'Show' && /*#__PURE__*/React.createElement("div", {
|
|
12184
12799
|
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',
|
|
12185
12800
|
style: {
|
|
12186
12801
|
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
@@ -12207,12 +12822,27 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
12207
12822
|
sectionpropertiesprops: sectionproperties,
|
|
12208
12823
|
actions: actions,
|
|
12209
12824
|
srcfromprops: 'respheader'
|
|
12210
|
-
}))),
|
|
12211
|
-
"class":
|
|
12825
|
+
}))), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React.createElement("div", {
|
|
12826
|
+
"class": "allcentered pt-2 pb-2",
|
|
12212
12827
|
style: {
|
|
12828
|
+
flex: 1,
|
|
12829
|
+
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
12830
|
+
borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
|
|
12831
|
+
}
|
|
12832
|
+
}, FavButton()), sectionproperties.faviconshape != null && sectionproperties.searchbar_show == 'Hide' && /*#__PURE__*/React.createElement("div", {
|
|
12833
|
+
"class": "allcentered pt-2 pb-2",
|
|
12834
|
+
style: {
|
|
12835
|
+
flex: 1,
|
|
12213
12836
|
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
12214
12837
|
borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive
|
|
12215
12838
|
}
|
|
12839
|
+
}, 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.createElement("div", {
|
|
12840
|
+
"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',
|
|
12841
|
+
style: {
|
|
12842
|
+
borderRight: langdetect == 'en' ? '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive : 0,
|
|
12843
|
+
borderLeft: langdetect == 'en' ? 0 : '1px solid ' + sectionproperties.searchbarcont_bordercolorresponsive,
|
|
12844
|
+
flex: sectionproperties.searchbar_show == 'Show' ? '' : 1
|
|
12845
|
+
}
|
|
12216
12846
|
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
|
|
12217
12847
|
"class": ' d-flex align-items-center justify-content-center '
|
|
12218
12848
|
}, langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
|
|
@@ -12251,7 +12881,10 @@ var Headerresponsive = function Headerresponsive(props) {
|
|
|
12251
12881
|
"class": "m-0"
|
|
12252
12882
|
}))));
|
|
12253
12883
|
})))), /*#__PURE__*/React.createElement("div", {
|
|
12254
|
-
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'
|
|
12884
|
+
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',
|
|
12885
|
+
style: {
|
|
12886
|
+
flex: sectionproperties.searchbar_show == 'Show' ? '' : 1
|
|
12887
|
+
}
|
|
12255
12888
|
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("div", {
|
|
12256
12889
|
className: 'allcentered m-0 cursor-pointer'
|
|
12257
12890
|
}, langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
|
|
@@ -24549,7 +25182,7 @@ styleInject(css_248z$m);
|
|
|
24549
25182
|
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; }
|
|
24550
25183
|
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(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; }
|
|
24551
25184
|
var HeaderWithAdSlider = function HeaderWithAdSlider(props) {
|
|
24552
|
-
var _css, _authdetailsContext$i3, _authdetailsContext$i4, _logoarrayofobjects$, _logoarrayofobjects$2, _authdetailsContext$c, _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6;
|
|
25185
|
+
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;
|
|
24553
25186
|
var _useState = useState(''),
|
|
24554
25187
|
_useState2 = _slicedToArray(_useState, 2),
|
|
24555
25188
|
sectionproperties = _useState2[0],
|
|
@@ -24570,6 +25203,7 @@ var HeaderWithAdSlider = function HeaderWithAdSlider(props) {
|
|
|
24570
25203
|
var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
|
|
24571
25204
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
24572
25205
|
var actions = props.actions;
|
|
25206
|
+
var setcurrencyfunccontext = props.actions.setcurrencyfunccontext;
|
|
24573
25207
|
useEffect(function () {
|
|
24574
25208
|
var secpropobj = {};
|
|
24575
25209
|
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
@@ -25004,7 +25638,50 @@ var HeaderWithAdSlider = function HeaderWithAdSlider(props) {
|
|
|
25004
25638
|
"class": "ml-2 mr-2"
|
|
25005
25639
|
}), /*#__PURE__*/React.createElement("p", {
|
|
25006
25640
|
"class": "m-0 p-0"
|
|
25007
|
-
}, "En"))))))
|
|
25641
|
+
}, "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.createElement("div", {
|
|
25642
|
+
"class": 'd-flex align-items-center justify-content-center pl-3 pr-3'
|
|
25643
|
+
}, /*#__PURE__*/React.createElement(Dropdown, null, /*#__PURE__*/React.createElement(Dropdown.Toggle, null, /*#__PURE__*/React.createElement("li", {
|
|
25644
|
+
"class": ' d-flex align-items-center justify-content-center '
|
|
25645
|
+
}, langdetect == 'en' && /*#__PURE__*/React.createElement("div", {
|
|
25646
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
25647
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
25648
|
+
"class": "m-0 p-0 mr-2 ml-2",
|
|
25649
|
+
style: {
|
|
25650
|
+
fontSize: '16px'
|
|
25651
|
+
}
|
|
25652
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en), /*#__PURE__*/React.createElement(MdKeyboardArrowDown, {
|
|
25653
|
+
size: 16
|
|
25654
|
+
})), langdetect == 'ar' && /*#__PURE__*/React.createElement("div", {
|
|
25655
|
+
"class": "".concat(header_cssstyles.languagecontainer) + ' row m-0 w-100 d-flex align-items-center '
|
|
25656
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
25657
|
+
"class": "m-0 p-0 ml-2 mr-2",
|
|
25658
|
+
style: {
|
|
25659
|
+
fontSize: '16px'
|
|
25660
|
+
}
|
|
25661
|
+
}, authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar), /*#__PURE__*/React.createElement(MdKeyboardArrowDown, {
|
|
25662
|
+
size: 16
|
|
25663
|
+
})))), /*#__PURE__*/React.createElement(Dropdown.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) {
|
|
25664
|
+
var _authdetailsContext$i9, _authdetailsContext$i10;
|
|
25665
|
+
return /*#__PURE__*/React.createElement(Dropdown.Item, {
|
|
25666
|
+
onClick: function onClick() {
|
|
25667
|
+
setcurrencyfunccontext(item);
|
|
25668
|
+
}
|
|
25669
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25670
|
+
"class": "row m-0 w-100"
|
|
25671
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25672
|
+
"class": "col-lg-12 p-0 d-flex justify-content-start"
|
|
25673
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
25674
|
+
"class": "".concat(header_cssstyles.dropdownitemcontainer) + ' allcenetered m-0 p-0 '
|
|
25675
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
25676
|
+
"class": "".concat(header_cssstyles.dropdownitem) + ' dropdownitem allcenetered m-0 p-0 '
|
|
25677
|
+
}, /*#__PURE__*/React.createElement(FaMoneyBillWave, null), /*#__PURE__*/React.createElement("span", {
|
|
25678
|
+
"class": 'ml-2 mr-2'
|
|
25679
|
+
}, 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.createElement("div", {
|
|
25680
|
+
"class": "col-lg-12 p-0"
|
|
25681
|
+
}, /*#__PURE__*/React.createElement("hr", {
|
|
25682
|
+
"class": "m-0"
|
|
25683
|
+
}))));
|
|
25684
|
+
}))))))))), /*#__PURE__*/React.createElement("div", {
|
|
25008
25685
|
"class": ' col-lg-12 p-0 allcentered '
|
|
25009
25686
|
}, /*#__PURE__*/React.createElement("div", {
|
|
25010
25687
|
"class": header_cssstyles.divider
|
|
@@ -39233,7 +39910,7 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
39233
39910
|
};
|
|
39234
39911
|
var Content = function Content() {
|
|
39235
39912
|
return /*#__PURE__*/React.createElement("div", {
|
|
39236
|
-
"class":
|
|
39913
|
+
"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',
|
|
39237
39914
|
style: {
|
|
39238
39915
|
background: sectionproperties.reservation_bgcolor,
|
|
39239
39916
|
alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
|
|
@@ -39401,7 +40078,7 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
39401
40078
|
width: sectionproperties.width + 'vw'
|
|
39402
40079
|
}
|
|
39403
40080
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39404
|
-
"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',
|
|
40081
|
+
"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',
|
|
39405
40082
|
style: {
|
|
39406
40083
|
paddingLeft: langdetect == 'en' ? sectionproperties.paddingLeft + 'px' : sectionproperties.paddingRight + 'px',
|
|
39407
40084
|
paddingRight: langdetect == 'en' ? sectionproperties.paddingRight + 'px' : sectionproperties.paddingLeft + 'px',
|
|
@@ -39422,7 +40099,7 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
39422
40099
|
alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
|
|
39423
40100
|
justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
|
|
39424
40101
|
}
|
|
39425
|
-
}, Content(), Image())), sectionproperties.sectionstyle == 'Image on left' && /*#__PURE__*/React.createElement("div", {
|
|
40102
|
+
}, Content(), sectionproperties.image_show == 'show' && Image())), sectionproperties.sectionstyle == 'Image on left' && /*#__PURE__*/React.createElement("div", {
|
|
39426
40103
|
"class": "col-lg-12 p-0 d-flex justify-content-between"
|
|
39427
40104
|
}, /*#__PURE__*/React.createElement("div", {
|
|
39428
40105
|
"class": "row m-0 w-100 d-flex justify-content-between",
|
|
@@ -39430,7 +40107,7 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
39430
40107
|
alignItems: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : '',
|
|
39431
40108
|
justifyContent: sectionproperties.justifyContentCenter == 'Centered' ? 'center' : 'start'
|
|
39432
40109
|
}
|
|
39433
|
-
}, Image(), Content())))));
|
|
40110
|
+
}, sectionproperties.image_show == 'show' && Image(), Content())))));
|
|
39434
40111
|
};
|
|
39435
40112
|
|
|
39436
40113
|
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; }
|
|
@@ -44300,8 +44977,8 @@ var NewProductcard = function NewProductcard(props) {
|
|
|
44300
44977
|
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
44301
44978
|
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.width + 'px',
|
|
44302
44979
|
'@media (max-width: 800px)': {
|
|
44303
|
-
minWidth: sectionproperties.widthresponsive + 'px',
|
|
44304
|
-
maxWidth: sectionproperties.widthresponsive + 'px'
|
|
44980
|
+
minWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px',
|
|
44981
|
+
maxWidth: props.sectiontypeprops2 == 'vertical' ? '100%' : sectionproperties.widthresponsive + 'px'
|
|
44305
44982
|
}
|
|
44306
44983
|
}),
|
|
44307
44984
|
innerproductcard: css((_css = {
|
|
@@ -47090,7 +47767,7 @@ var Categorycard_with_twolinestransition = function Categorycard_with_twolinestr
|
|
|
47090
47767
|
}, langdetect == 'en' ? sectionproperties.slideshow_btn_text : sectionproperties.slideshow_btn_text_ar)))))));
|
|
47091
47768
|
};
|
|
47092
47769
|
|
|
47093
|
-
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}";
|
|
47770
|
+
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}";
|
|
47094
47771
|
var cardstyles$5 = {"categorycardtext":"Categorcycard_fullimage-module_categorycardtext__WLY3-"};
|
|
47095
47772
|
styleInject(css_248z$a);
|
|
47096
47773
|
|
|
@@ -47250,11 +47927,11 @@ var Categorycard_fullimage = function Categorycard_fullimage(props) {
|
|
|
47250
47927
|
}, /*#__PURE__*/React.createElement(Imagekitimagecomp, {
|
|
47251
47928
|
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
47252
47929
|
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
47253
|
-
path: item.image,
|
|
47930
|
+
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
47254
47931
|
style: {
|
|
47255
47932
|
width: '100%',
|
|
47256
47933
|
height: '100%',
|
|
47257
|
-
objectFit: 'cover'
|
|
47934
|
+
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
47258
47935
|
},
|
|
47259
47936
|
loading: "lazy"
|
|
47260
47937
|
}), /*#__PURE__*/React.createElement("div", {
|
|
@@ -48462,7 +49139,7 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
48462
49139
|
paddingBottom: sectionproperties.paddingBottom + 'px'
|
|
48463
49140
|
}
|
|
48464
49141
|
}, sectionproperties.image_show == 'show' && /*#__PURE__*/React.createElement("div", {
|
|
48465
|
-
"class": props.numberOfColsvertical == '1' ? 'col-lg-2 col-md-
|
|
49142
|
+
"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'
|
|
48466
49143
|
}, /*#__PURE__*/React.createElement("div", {
|
|
48467
49144
|
"class": "d-flex d-md-none",
|
|
48468
49145
|
onClick: function onClick() {
|
|
@@ -48539,7 +49216,7 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
48539
49216
|
fontSize: sectionproperties.badge_fontsize + 'px'
|
|
48540
49217
|
}
|
|
48541
49218
|
}, langdetect == 'en' ? sectionproperties.badgeContentEn : sectionproperties.badgeContentAr))), /*#__PURE__*/React.createElement("div", {
|
|
48542
|
-
"class": sectionproperties.image_show == 'show' ? props.numberOfColsvertical == '1' ? 'col-lg-10 col-md-
|
|
49219
|
+
"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',
|
|
48543
49220
|
style: {
|
|
48544
49221
|
paddingRight: langdetect == 'en' ? 0 : '',
|
|
48545
49222
|
paddingLeft: langdetect == 'ar' ? 0 : '',
|
|
@@ -48602,7 +49279,7 @@ var Horizontalcard = function Horizontalcard(props) {
|
|
|
48602
49279
|
textAlign: langdetect == 'en' ? 'left' : 'right'
|
|
48603
49280
|
}
|
|
48604
49281
|
}, plainString(langdetect == 'en' ? item.description_en : item.description_ar))), sectionproperties.cartBtnShow == 'Show' && props.numberOfColsvertical == '1' && /*#__PURE__*/React.createElement("div", {
|
|
48605
|
-
"class": "col-lg-3 col-md-
|
|
49282
|
+
"class": "col-lg-3 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end justify-content-md-start"
|
|
48606
49283
|
}, /*#__PURE__*/React.createElement("button", {
|
|
48607
49284
|
"class": card_cssstyles.cart_btn,
|
|
48608
49285
|
onClick: function onClick() {
|
|
@@ -50898,28 +51575,23 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
50898
51575
|
var cardonclickfunctionContext = props.actions.cardonclickfunctionContext;
|
|
50899
51576
|
var ikimagecredcontext = props.actions.ikimagecredcontext;
|
|
50900
51577
|
useEffect(function () {
|
|
50901
|
-
|
|
50902
|
-
|
|
50903
|
-
|
|
50904
|
-
|
|
50905
|
-
|
|
50906
|
-
|
|
50907
|
-
|
|
50908
|
-
|
|
50909
|
-
|
|
50910
|
-
if (sectionitem.sectionid == props.sectionidprops) {
|
|
50911
|
-
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
50912
|
-
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
50913
|
-
});
|
|
50914
|
-
}
|
|
50915
|
-
});
|
|
50916
|
-
setsectionproperties(_objectSpread$b({}, secpropobj));
|
|
50917
|
-
}
|
|
51578
|
+
var secpropobj = {};
|
|
51579
|
+
StatePagePropertiesContext.pageobj.sections.forEach(function (sectionitem, sectionindex) {
|
|
51580
|
+
if (sectionitem.sectionid == props.sectionidprops) {
|
|
51581
|
+
sectionitem.sectionproperties.forEach(function (sectionpropertiesobj, sectionpropertiesindex) {
|
|
51582
|
+
secpropobj[sectionpropertiesobj.property_css_name] = sectionpropertiesobj.property_value;
|
|
51583
|
+
});
|
|
51584
|
+
}
|
|
51585
|
+
});
|
|
51586
|
+
setsectionproperties(_objectSpread$b({}, secpropobj));
|
|
50918
51587
|
}, [StatePagePropertiesContext]);
|
|
50919
51588
|
useEffect(function () {
|
|
50920
51589
|
setitem(props.cardinfoitemprops);
|
|
50921
51590
|
}, [props.cardinfoitemprops]);
|
|
50922
51591
|
var card_cssstyles = {
|
|
51592
|
+
cardcont: css({
|
|
51593
|
+
width: sectionproperties.width + 'px'
|
|
51594
|
+
}),
|
|
50923
51595
|
productcard: css({
|
|
50924
51596
|
position: 'relative',
|
|
50925
51597
|
background: sectionproperties.backgroundColortransparent == 'Transparent' ? 'transparent' : sectionproperties.backgroundColor,
|
|
@@ -50999,8 +51671,8 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
50999
51671
|
}
|
|
51000
51672
|
}),
|
|
51001
51673
|
cart_btn: css({
|
|
51002
|
-
width: sectionproperties.cartBtnWidth + 'px',
|
|
51003
|
-
height: sectionproperties.cartBtnHeight + 'px',
|
|
51674
|
+
width: sectionproperties.cartBtnWidth == 0 ? 'auto' : sectionproperties.cartBtnWidth + 'px',
|
|
51675
|
+
height: sectionproperties.cartBtnHeight == 0 ? 'auto' : sectionproperties.cartBtnHeight + 'px',
|
|
51004
51676
|
background: sectionproperties.cartbtn_bgtransparent == 'Transparent' ? 'transparent' : sectionproperties.cartBtnbgColor,
|
|
51005
51677
|
borderRadius: sectionproperties.cart_btn_borderBottomLeftRadius + 'px',
|
|
51006
51678
|
color: sectionproperties.cartBtnTextcolor,
|
|
@@ -51016,7 +51688,9 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
51016
51688
|
})
|
|
51017
51689
|
};
|
|
51018
51690
|
return /*#__PURE__*/React.createElement("div", {
|
|
51019
|
-
"class":
|
|
51691
|
+
"class": props.sectiontypeprops2 == 'vertical' ? 'w-100' : "".concat(card_cssstyles.cardcont)
|
|
51692
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
51693
|
+
"class": "row m-0 w-100 pl-sm-2 pr-sm-2",
|
|
51020
51694
|
style: {
|
|
51021
51695
|
paddingLeft: langdetect == 'en' ? sectionproperties.card_marginLeft + 'px' : sectionproperties.card_marginRight + 'px',
|
|
51022
51696
|
paddingRight: langdetect == 'en' ? sectionproperties.card_marginRight + 'px' : sectionproperties.card_marginLeft + 'px'
|
|
@@ -51143,7 +51817,7 @@ var Productcard_with_slideanimation = function Productcard_with_slideanimation(p
|
|
|
51143
51817
|
size: sectionproperties.favBtnIconfontsize
|
|
51144
51818
|
}), sectionproperties.faviconshape == 'Heart Shape' && /*#__PURE__*/React.createElement(FaRegHeart, {
|
|
51145
51819
|
size: sectionproperties.favBtnIconfontsize
|
|
51146
|
-
}))))))));
|
|
51820
|
+
})))))))));
|
|
51147
51821
|
};
|
|
51148
51822
|
|
|
51149
51823
|
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; }
|
|
@@ -54081,6 +54755,7 @@ var returnLibrary = function returnLibrary() {
|
|
|
54081
54755
|
AwesomeButton: AwesomeButton,
|
|
54082
54756
|
Checkout: Checkout,
|
|
54083
54757
|
Signup: Signup,
|
|
54758
|
+
AddReview: AddReview,
|
|
54084
54759
|
Productinfo: Productinfo,
|
|
54085
54760
|
Ordershistory: Ordershistory,
|
|
54086
54761
|
Wishlist: Wishlist,
|