tabexseriescomponents 0.0.288 → 0.0.291
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 +448 -258
- package/dist/index.esm.js +449 -259
- package/dist/index.umd.js +450 -260
- package/package.json +1 -1
- package/src.zip +0 -0
package/dist/index.cjs.js
CHANGED
|
@@ -35,13 +35,13 @@ var reactShare = require('react-share');
|
|
|
35
35
|
var imagekitioReact = require('imagekitio-react');
|
|
36
36
|
var ReactStars = require('react-rating-stars-component');
|
|
37
37
|
var FiLayers = require('@react-icons/all-files/fi/FiLayers');
|
|
38
|
-
var material = require('@mui/material');
|
|
39
38
|
var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
|
|
40
39
|
var TextareaAutosize = require('react-textarea-autosize');
|
|
41
40
|
var AiOutlineClockCircle = require('@react-icons/all-files/ai/AiOutlineClockCircle');
|
|
42
41
|
var AiOutlinePlus = require('@react-icons/all-files/ai/AiOutlinePlus');
|
|
43
42
|
var AiOutlineCheck = require('@react-icons/all-files/ai/AiOutlineCheck');
|
|
44
43
|
var reactHorizontalScrollingMenu = require('react-horizontal-scrolling-menu');
|
|
44
|
+
var material = require('@mui/material');
|
|
45
45
|
var HiOutlinePhone = require('@react-icons/all-files/hi/HiOutlinePhone');
|
|
46
46
|
var AiOutlineMail = require('@react-icons/all-files/ai/AiOutlineMail');
|
|
47
47
|
var FaShippingFast = require('@react-icons/all-files/fa/FaShippingFast');
|
|
@@ -125,7 +125,7 @@ var AiOutlinePhone = require('@react-icons/all-files/ai/AiOutlinePhone');
|
|
|
125
125
|
var GoLocation = require('@react-icons/all-files/go/GoLocation');
|
|
126
126
|
var RiRoadMapLine = require('@react-icons/all-files/ri/RiRoadMapLine');
|
|
127
127
|
var HiOutlineClock = require('@react-icons/all-files/hi/HiOutlineClock');
|
|
128
|
-
var Select$
|
|
128
|
+
var Select$4 = require('react-select');
|
|
129
129
|
var ReactPlayer = require('react-player');
|
|
130
130
|
var BackgroundSlideshow = require('react-background-slideshow');
|
|
131
131
|
var _extends = require('@babel/runtime/helpers/extends');
|
|
@@ -181,7 +181,7 @@ var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
|
|
|
181
181
|
var PhoneInput__default = /*#__PURE__*/_interopDefaultLegacy(PhoneInput);
|
|
182
182
|
var InputRange__default = /*#__PURE__*/_interopDefaultLegacy(InputRange);
|
|
183
183
|
var ReactPaginate__default = /*#__PURE__*/_interopDefaultLegacy(ReactPaginate);
|
|
184
|
-
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$
|
|
184
|
+
var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select$4);
|
|
185
185
|
var ReactPlayer__default = /*#__PURE__*/_interopDefaultLegacy(ReactPlayer);
|
|
186
186
|
var BackgroundSlideshow__default = /*#__PURE__*/_interopDefaultLegacy(BackgroundSlideshow);
|
|
187
187
|
var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
|
|
@@ -524,8 +524,8 @@ function styleInject(css, ref) {
|
|
|
524
524
|
}
|
|
525
525
|
}
|
|
526
526
|
|
|
527
|
-
var css_248z$L = ".login-module_login_input_icon__hETpJ {\n font-size: 15px;\n color: #999999;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n align-items: center;\n position: absolute;\n border-radius: 25px;\n bottom: 10px;\n left: 0;\n padding-left: 15px;\n pointer-events: none;\n -webkit-transition: all 0.4s;\n -o-transition: all 0.4s;\n -moz-transition: all 0.4s;\n transition: all 0.4s;\n}\n.login-module_login_input_icontrans__8whFD{\n font-size: 15px;\n color: #999999;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n align-items: center;\n position: absolute;\n border-radius: 25px;\n bottom: 10px;\n right: 5;\n pointer-events: none;\n -webkit-transition: all 0.4s;\n -o-transition: all 0.4s;\n -moz-transition: all 0.4s;\n transition: all 0.4s;\n\n}\n.login-module_form_control__-41tV:focus + .login-module_login_input_icontrans__8whFD {\n /* padding-right: 10px; */\n}\n@media screen and (max-width: 500px) {\n .login-module_login_input_icon__hETpJ {\n padding-left: 0 !important;\n }\n .login-module_rightContainer__Nt9tD {\n border-radius: 0 0 15px 15px !important;\n }\n .login-module_leftcontainer__Rlat- {\n border-radius: 15px 15px 0 0 !important;\n }\n}\n.login-module_form_control__-41tV:focus {\n -webkit-animation: login-module_anim-shadow__4SiKH 0.5s ease-in-out forwards;\n animation: login-module_anim-shadow__4SiKH 0.5s ease-in-out forwards;\n}\n.login-module_form_control__-41tV:focus + .login-module_login_input_icon__hETpJ {\n /* padding-left: 20px; */\n}\n\n/* Forms */\n@media screen and (prefers-reduced-motion: reduce) {\n .login-module_form_control__-41tV {\n transition: none;\n }\n}\n.login-module_form_control__-41tV::-ms-expand {\n background-color: transparent;\n border: 0;\n}\n.login-module_form_control__-41tV:focus {\n outline: 0;\n}\n.login-module_form_control__-41tV::placeholder {\n opacity: 1;\n}\n.login-module_form_control__-41tV:disabled,\n.login-module_form_control__-41tV[readonly] {\n opacity: 1;\n cursor: not-allowed;\n}\ntextarea.login-module_form_control__-41tV {\n height: auto;\n}\n.login-module_form_control__-41tV:focus {\n transition-duration: 0.3s;\n box-shadow: none;\n}\n.login-module_form_control__-41tV::-moz-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.login-module_form_control__-41tV:-ms-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.login-module_form_control__-41tV::-webkit-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.login-module_form_control_border_none__dkr-m {\n background-image: none;\n}\n.login-module_form_control__-41tV.login-module_disabled__fUlAg,\n.login-module_form_control__-41tV:disabled,\n.login-module_form_control__-41tV[disabled] {\n cursor: not-allowed;\n}\n";
|
|
528
|
-
var loginstyles$1 = {"login_input_icon":"login-module_login_input_icon__hETpJ","login_input_icontrans":"login-module_login_input_icontrans__8whFD","form_control":"login-module_form_control__-41tV","rightContainer":"login-module_rightContainer__Nt9tD","leftcontainer":"login-module_leftcontainer__Rlat-","anim-shadow":"login-module_anim-shadow__4SiKH","form_control_border_none":"login-module_form_control_border_none__dkr-m","disabled":"login-module_disabled__fUlAg"};
|
|
527
|
+
var css_248z$L = ".login-module_login_input_icon__hETpJ {\n font-size: 15px;\n color: #999999;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n align-items: center;\n position: absolute;\n border-radius: 25px;\n bottom: 10px;\n left: 0;\n padding-left: 15px;\n pointer-events: none;\n -webkit-transition: all 0.4s;\n -o-transition: all 0.4s;\n -moz-transition: all 0.4s;\n transition: all 0.4s;\n}\n.login-module_showpassword_input_icon__5lPiH {\n font-size: 15px;\n color: #999999;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n align-items: center;\n position: absolute;\n border-radius: 25px;\n bottom: 15px;\n right: 25px;\n padding-left: 15px;\n\n -webkit-transition: all 0.4s;\n -o-transition: all 0.4s;\n -moz-transition: all 0.4s;\n transition: all 0.4s;\n cursor: pointer !important;\n z-index: 10000000000000000000000 !important;\n}\n.login-module_login_input_icontrans__8whFD {\n font-size: 15px;\n color: #999999;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n align-items: center;\n position: absolute;\n border-radius: 25px;\n bottom: 10px;\n right: 5;\n pointer-events: none;\n -webkit-transition: all 0.4s;\n -o-transition: all 0.4s;\n -moz-transition: all 0.4s;\n transition: all 0.4s;\n}\n.login-module_showpassword_input_icontrans__hKlPg {\n font-size: 15px;\n color: #999999;\n display: -webkit-box;\n display: -webkit-flex;\n display: -moz-box;\n display: -ms-flexbox;\n display: flex;\n align-items: center;\n position: absolute;\n border-radius: 25px;\n bottom: 15px;\n left: 25px;\n\n -webkit-transition: all 0.4s;\n -o-transition: all 0.4s;\n -moz-transition: all 0.4s;\n transition: all 0.4s;\n cursor: pointer !important;\n z-index: 10000000000000000000000 !important;\n}\n.login-module_form_control__-41tV:focus + .login-module_login_input_icontrans__8whFD {\n /* padding-right: 10px; */\n}\n@media screen and (max-width: 500px) {\n .login-module_login_input_icon__hETpJ {\n padding-left: 0 !important;\n }\n .login-module_rightContainer__Nt9tD {\n border-radius: 0 0 15px 15px !important;\n }\n .login-module_leftcontainer__Rlat- {\n border-radius: 15px 15px 0 0 !important;\n }\n}\n.login-module_form_control__-41tV:focus {\n -webkit-animation: login-module_anim-shadow__4SiKH 0.5s ease-in-out forwards;\n animation: login-module_anim-shadow__4SiKH 0.5s ease-in-out forwards;\n}\n.login-module_form_control__-41tV:focus + .login-module_login_input_icon__hETpJ {\n /* padding-left: 20px; */\n}\n\n/* Forms */\n@media screen and (prefers-reduced-motion: reduce) {\n .login-module_form_control__-41tV {\n transition: none;\n }\n}\n.login-module_form_control__-41tV::-ms-expand {\n background-color: transparent;\n border: 0;\n}\n.login-module_form_control__-41tV:focus {\n outline: 0;\n}\n.login-module_form_control__-41tV::placeholder {\n opacity: 1;\n}\n.login-module_form_control__-41tV:disabled,\n.login-module_form_control__-41tV[readonly] {\n opacity: 1;\n cursor: not-allowed;\n}\ntextarea.login-module_form_control__-41tV {\n height: auto;\n}\n.login-module_form_control__-41tV:focus {\n transition-duration: 0.3s;\n box-shadow: none;\n}\n.login-module_form_control__-41tV::-moz-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.login-module_form_control__-41tV:-ms-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.login-module_form_control__-41tV::-webkit-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.login-module_form_control_border_none__dkr-m {\n background-image: none;\n}\n.login-module_form_control__-41tV.login-module_disabled__fUlAg,\n.login-module_form_control__-41tV:disabled,\n.login-module_form_control__-41tV[disabled] {\n cursor: not-allowed;\n}\n";
|
|
528
|
+
var loginstyles$1 = {"login_input_icon":"login-module_login_input_icon__hETpJ","showpassword_input_icon":"login-module_showpassword_input_icon__5lPiH","login_input_icontrans":"login-module_login_input_icontrans__8whFD","showpassword_input_icontrans":"login-module_showpassword_input_icontrans__hKlPg","form_control":"login-module_form_control__-41tV","rightContainer":"login-module_rightContainer__Nt9tD","leftcontainer":"login-module_leftcontainer__Rlat-","anim-shadow":"login-module_anim-shadow__4SiKH","form_control_border_none":"login-module_form_control_border_none__dkr-m","disabled":"login-module_disabled__fUlAg"};
|
|
529
529
|
styleInject(css_248z$L);
|
|
530
530
|
|
|
531
531
|
var GoogleLoginButton = function GoogleLoginButton(props) {
|
|
@@ -626,40 +626,44 @@ var Login = function Login(props) {
|
|
|
626
626
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
627
627
|
statusreason = _useState2[0];
|
|
628
628
|
_useState2[1];
|
|
629
|
-
var _useState3 = React.useState(
|
|
629
|
+
var _useState3 = React.useState(false),
|
|
630
|
+
_useState4 = _slicedToArray__default["default"](_useState3, 2),
|
|
631
|
+
showpassword = _useState4[0],
|
|
632
|
+
setshowpassword = _useState4[1];
|
|
633
|
+
var _useState5 = React.useState({
|
|
630
634
|
instapikey: instapikey,
|
|
631
635
|
email: '',
|
|
632
636
|
code: '',
|
|
633
637
|
newpassword: '',
|
|
634
638
|
confirmnewpassword: ''
|
|
635
639
|
}),
|
|
636
|
-
|
|
637
|
-
forgotpasswordpayload =
|
|
638
|
-
setforgotpasswordpayload =
|
|
639
|
-
var
|
|
640
|
+
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
641
|
+
forgotpasswordpayload = _useState6[0],
|
|
642
|
+
setforgotpasswordpayload = _useState6[1];
|
|
643
|
+
var _useState7 = React.useState({
|
|
640
644
|
instapikey: instapikey,
|
|
641
645
|
email: '',
|
|
642
646
|
password: ''
|
|
643
647
|
}),
|
|
644
|
-
_useState6 = _slicedToArray__default["default"](_useState5, 2),
|
|
645
|
-
payloadobj = _useState6[0],
|
|
646
|
-
setpayloadobj = _useState6[1];
|
|
647
|
-
var _useState7 = React.useState('send'),
|
|
648
648
|
_useState8 = _slicedToArray__default["default"](_useState7, 2),
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
var _useState9 = React.useState(
|
|
649
|
+
payloadobj = _useState8[0],
|
|
650
|
+
setpayloadobj = _useState8[1];
|
|
651
|
+
var _useState9 = React.useState('send'),
|
|
652
652
|
_useState10 = _slicedToArray__default["default"](_useState9, 2),
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
var _useState11 = React.useState(
|
|
656
|
-
_useState12 = _slicedToArray__default["default"](_useState11, 2)
|
|
657
|
-
_useState12[0]
|
|
658
|
-
|
|
653
|
+
forgetpasswordstage = _useState10[0],
|
|
654
|
+
setforgetpasswordstage = _useState10[1];
|
|
655
|
+
var _useState11 = React.useState(false),
|
|
656
|
+
_useState12 = _slicedToArray__default["default"](_useState11, 2),
|
|
657
|
+
forgetpasswordmodal = _useState12[0],
|
|
658
|
+
setforgetpasswordmodal = _useState12[1];
|
|
659
659
|
var _useState13 = React.useState(''),
|
|
660
|
-
_useState14 = _slicedToArray__default["default"](_useState13, 2)
|
|
661
|
-
|
|
662
|
-
|
|
660
|
+
_useState14 = _slicedToArray__default["default"](_useState13, 2);
|
|
661
|
+
_useState14[0];
|
|
662
|
+
var setCurrentPageId = _useState14[1];
|
|
663
|
+
var _useState15 = React.useState(''),
|
|
664
|
+
_useState16 = _slicedToArray__default["default"](_useState15, 2),
|
|
665
|
+
sectionproperties = _useState16[0],
|
|
666
|
+
setsectionproperties = _useState16[1];
|
|
663
667
|
React.useEffect(function () {
|
|
664
668
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
665
669
|
return x.staticpageid == '6218bccb77283';
|
|
@@ -845,9 +849,16 @@ var Login = function Login(props) {
|
|
|
845
849
|
className: "col-lg-12 col-md-12 col-sm-12 p-sm-0"
|
|
846
850
|
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
847
851
|
className: "".concat(loginstyles2.logininputLabel) + ' text-transform-none d-flex justify-content-start '
|
|
848
|
-
}, langdetect == 'en' ? 'Password' : 'كلمة السر'), /*#__PURE__*/React__default["default"].createElement("
|
|
852
|
+
}, langdetect == 'en' ? 'Password' : 'كلمة السر'), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
853
|
+
onClick: function onClick() {
|
|
854
|
+
setshowpassword(!showpassword);
|
|
855
|
+
},
|
|
856
|
+
className: langdetect == 'en' ? loginstyles$1.showpassword_input_icon : loginstyles$1.showpassword_input_icontrans
|
|
857
|
+
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
858
|
+
className: "fa fa-eye h-100 d-flex align-items-center justify-content-center"
|
|
859
|
+
})), /*#__PURE__*/React__default["default"].createElement("input", {
|
|
849
860
|
className: "".concat(loginstyles$1.form_control, " ").concat(loginstyles2.form_control),
|
|
850
|
-
type:
|
|
861
|
+
type: showpassword ? 'text' : 'password',
|
|
851
862
|
textplaceholder: "",
|
|
852
863
|
value: payloadobj.password,
|
|
853
864
|
onChange: function onChange(event) {
|
|
@@ -1115,8 +1126,133 @@ var css_248z$H = "@media screen and (max-width: 800px) {\n .signup-module_rig
|
|
|
1115
1126
|
var loginstyles = {"rightContainer":"signup-module_rightContainer__yEcoL","rightContainerTrans":"signup-module_rightContainerTrans__fkdBH","rightContainerText":"signup-module_rightContainerText__-pvN-","form_control":"signup-module_form_control__7s76W","anim-shadow":"signup-module_anim-shadow__CsxhG","login_input_icon":"signup-module_login_input_icon__RDTS0","form_control_border_none":"signup-module_form_control_border_none__HjUMS","disabled":"signup-module_disabled__h55ao","leftcontainer":"signup-module_leftcontainer__bqfnN","form_controltextarea":"signup-module_form_controltextarea__-LGz6","checkbox":"signup-module_checkbox__8ejBx","checkbox_label":"signup-module_checkbox_label__d84Q2","checkbox_sub":"signup-module_checkbox_sub__WQLUX","checkboxtranslated":"signup-module_checkboxtranslated__4xHR-"};
|
|
1116
1127
|
styleInject(css_248z$H);
|
|
1117
1128
|
|
|
1129
|
+
function ownKeys$29(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; }
|
|
1130
|
+
function _objectSpread$29(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$29(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$29(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1131
|
+
var defaultstyles = {
|
|
1132
|
+
option: function option(provided, state) {
|
|
1133
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1134
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1135
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1136
|
+
padding: 5,
|
|
1137
|
+
textTransform: 'capitalize',
|
|
1138
|
+
color: state.isSelected ? '#eac435' : 'black',
|
|
1139
|
+
transition: '.3s',
|
|
1140
|
+
'&:hover': {
|
|
1141
|
+
// color: '#eac435',
|
|
1142
|
+
cursor: 'pointer'
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
1145
|
+
},
|
|
1146
|
+
control: function control() {
|
|
1147
|
+
return {
|
|
1148
|
+
borderBottom: '1px solid #ccc',
|
|
1149
|
+
backgroundColor: 'white',
|
|
1150
|
+
display: 'flex',
|
|
1151
|
+
cursor: 'pointer',
|
|
1152
|
+
padding: 0,
|
|
1153
|
+
transition: '.3s',
|
|
1154
|
+
'&:hover': {
|
|
1155
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1156
|
+
// borderRadius: '10px',
|
|
1157
|
+
}
|
|
1158
|
+
};
|
|
1159
|
+
},
|
|
1160
|
+
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1161
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1162
|
+
'&:hover': {
|
|
1163
|
+
// color: '#eac435',
|
|
1164
|
+
}
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
};
|
|
1168
|
+
var defaultstylestranslated = {
|
|
1169
|
+
option: function option(provided, state) {
|
|
1170
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1171
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1172
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1173
|
+
padding: 5,
|
|
1174
|
+
textTransform: 'capitalize',
|
|
1175
|
+
// color: state.isSelected ? '#eac435' : '#022648',
|
|
1176
|
+
color: state.isSelected ? '#eac435' : 'black',
|
|
1177
|
+
transition: '.3s',
|
|
1178
|
+
textAlign: 'right',
|
|
1179
|
+
'&:hover': {
|
|
1180
|
+
// color: '#eac435',
|
|
1181
|
+
cursor: 'pointer'
|
|
1182
|
+
}
|
|
1183
|
+
});
|
|
1184
|
+
},
|
|
1185
|
+
control: function control() {
|
|
1186
|
+
return {
|
|
1187
|
+
borderBottom: '1px solid #ccc',
|
|
1188
|
+
backgroundColor: 'white',
|
|
1189
|
+
display: 'flex',
|
|
1190
|
+
cursor: 'pointer',
|
|
1191
|
+
padding: 0,
|
|
1192
|
+
transition: '.3s',
|
|
1193
|
+
textAlign: 'right',
|
|
1194
|
+
'&:hover': {
|
|
1195
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1196
|
+
// borderRadius: '10px',
|
|
1197
|
+
}
|
|
1198
|
+
};
|
|
1199
|
+
},
|
|
1200
|
+
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1201
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1202
|
+
'&:hover': {
|
|
1203
|
+
// color: '#eac435',
|
|
1204
|
+
}
|
|
1205
|
+
});
|
|
1206
|
+
},
|
|
1207
|
+
placeholder: function placeholder(provided, state) {
|
|
1208
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1209
|
+
textAlign: 'right'
|
|
1210
|
+
});
|
|
1211
|
+
}
|
|
1212
|
+
};
|
|
1213
|
+
var defaultstylesnone = {
|
|
1214
|
+
option: function option(provided, state) {
|
|
1215
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1216
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1217
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1218
|
+
padding: 5,
|
|
1219
|
+
textTransform: 'capitalize',
|
|
1220
|
+
color: state.isSelected ? '#eac435' : 'black',
|
|
1221
|
+
transition: '.3s',
|
|
1222
|
+
'&:hover': {
|
|
1223
|
+
// color: '#eac435',
|
|
1224
|
+
cursor: 'pointer'
|
|
1225
|
+
}
|
|
1226
|
+
});
|
|
1227
|
+
},
|
|
1228
|
+
control: function control() {
|
|
1229
|
+
return {
|
|
1230
|
+
borderBottom: 'none',
|
|
1231
|
+
backgroundColor: 'transparent',
|
|
1232
|
+
display: 'flex',
|
|
1233
|
+
cursor: 'pointer',
|
|
1234
|
+
padding: 0,
|
|
1235
|
+
transition: '.3s',
|
|
1236
|
+
'&:hover': {
|
|
1237
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1238
|
+
// borderRadius: '10px',
|
|
1239
|
+
}
|
|
1240
|
+
};
|
|
1241
|
+
},
|
|
1242
|
+
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1243
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1244
|
+
'&:hover': {
|
|
1245
|
+
// color: '#eac435',
|
|
1246
|
+
}
|
|
1247
|
+
});
|
|
1248
|
+
}
|
|
1249
|
+
};
|
|
1250
|
+
|
|
1251
|
+
var Select$3 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
1252
|
+
return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('react-select')); });
|
|
1253
|
+
});
|
|
1118
1254
|
var Variantoptions = function Variantoptions(props) {
|
|
1119
|
-
var _css, _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
|
|
1255
|
+
var _css, _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _ProductInfoObj$data2, _ProductInfoObj$data3, _ProductInfoObj$data4;
|
|
1120
1256
|
var lang = props.actions.lang;
|
|
1121
1257
|
var langdetect = props.actions.langdetect;
|
|
1122
1258
|
var selectproductoptionvalue = props.actions.selectproductoptionvalue;
|
|
@@ -1272,23 +1408,74 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1272
1408
|
}, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
|
|
1273
1409
|
}
|
|
1274
1410
|
}))));
|
|
1275
|
-
})), sectionproperties.variantstyle == 'Select Box' &&
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1411
|
+
})), sectionproperties.variantstyle == 'Select Box' && (ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data2 = ProductInfoObj.data) === null || _ProductInfoObj$data2 === void 0 ? void 0 : (_ProductInfoObj$data3 = _ProductInfoObj$data2.productinfo) === null || _ProductInfoObj$data3 === void 0 ? void 0 : (_ProductInfoObj$data4 = _ProductInfoObj$data3.productoptions) === null || _ProductInfoObj$data4 === void 0 ? void 0 : _ProductInfoObj$data4.map(function (item, index) {
|
|
1412
|
+
var orgselectoptions = [];
|
|
1413
|
+
var selecteditemid = null;
|
|
1414
|
+
var placeholdervalue = '';
|
|
1415
|
+
placeholdervalue = 'Choose' + ' ' + (langdetect == 'en' ? item.optionname : item.optionname_ar);
|
|
1416
|
+
if (item.optionvalues != undefined && Array.isArray(item.optionvalues)) {
|
|
1417
|
+
orgselectoptions = item.optionvalues;
|
|
1418
|
+
// optionvaluesitem.isselected
|
|
1419
|
+
}
|
|
1420
|
+
|
|
1421
|
+
orgselectoptions.forEach(function (getselcitem, getselindex) {
|
|
1422
|
+
if (getselcitem.isselected == 1) {
|
|
1423
|
+
selecteditemid = getselcitem.valueid;
|
|
1424
|
+
}
|
|
1425
|
+
});
|
|
1426
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1427
|
+
"class": sectionproperties.numberofcolsperrow == '2' ? 'col-lg-2 col-md-3 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '3' ? ' col-lg-3 col-md-3 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '4' ? 'col-lg-4 col-md-4 col-sm-12 mb-3 p-sm-0' : sectionproperties.numberofcolsperrow == '6' ? 'col-lg-6 col-md-6 col-sm-12 mb-3 p-sm-0' : 'col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0'
|
|
1428
|
+
}, /*#__PURE__*/React__default["default"].createElement("label", {
|
|
1429
|
+
className: ' d-flex align-items-start mb-2 ',
|
|
1430
|
+
style: {
|
|
1431
|
+
color: sectionproperties.varianttitle_color,
|
|
1432
|
+
fontWeight: sectionproperties.varianttitle_fontweight,
|
|
1433
|
+
textTransform: sectionproperties.varianttitle_texttransform,
|
|
1434
|
+
fontSize: sectionproperties.varianttitle_fontSize + 'px'
|
|
1435
|
+
}
|
|
1436
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1437
|
+
style: {
|
|
1438
|
+
width: '100%'
|
|
1439
|
+
},
|
|
1440
|
+
className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control) + ' variantselectbox '
|
|
1441
|
+
}, /*#__PURE__*/React__default["default"].createElement(Select$3, {
|
|
1442
|
+
options: orgselectoptions,
|
|
1443
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
1444
|
+
var crname = '';
|
|
1445
|
+
if (langdetect == 'en') {
|
|
1446
|
+
crname = option.valuename;
|
|
1447
|
+
} else if (langdetect == 'ar') {
|
|
1448
|
+
crname = option.valuename_ar;
|
|
1449
|
+
}
|
|
1450
|
+
return crname;
|
|
1451
|
+
},
|
|
1452
|
+
getOptionValue: function getOptionValue(option) {
|
|
1453
|
+
return option.valueid;
|
|
1454
|
+
},
|
|
1455
|
+
value: orgselectoptions.filter(function (option) {
|
|
1456
|
+
return option.valueid == selecteditemid;
|
|
1457
|
+
}),
|
|
1458
|
+
onChange: function onChange(optionvaluesitem) {
|
|
1459
|
+
var _orgselectoptions;
|
|
1460
|
+
var optionvaluesindex = null;
|
|
1461
|
+
(_orgselectoptions = orgselectoptions) === null || _orgselectoptions === void 0 ? void 0 : _orgselectoptions.forEach(function (tempitm, tempind) {
|
|
1462
|
+
if (tempitm.valueid == optionvaluesitem.valueid) {
|
|
1463
|
+
optionvaluesindex = tempind;
|
|
1464
|
+
}
|
|
1465
|
+
});
|
|
1466
|
+
if (optionvaluesindex != null) {
|
|
1467
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
1468
|
+
selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
1469
|
+
} else {
|
|
1470
|
+
clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
},
|
|
1474
|
+
styles: defaultstylesnone,
|
|
1475
|
+
placeholder: placeholdervalue,
|
|
1476
|
+
isSearchable: true
|
|
1477
|
+
})));
|
|
1478
|
+
}))));
|
|
1292
1479
|
};
|
|
1293
1480
|
|
|
1294
1481
|
//productidprops
|
|
@@ -1299,10 +1486,26 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1299
1486
|
var sectionproperties = props.actions.sectionproperties;
|
|
1300
1487
|
var authdetailsContext = props.actions.authdetailsContext;
|
|
1301
1488
|
var variantindexcompleted = props.actions.variantindexcompleted;
|
|
1302
|
-
props.actions.ikimagecredcontext;
|
|
1303
1489
|
var getprice_discountpriceprops = props.actions.getprice_discountpriceprops;
|
|
1304
1490
|
var quantityconditionfoundobjprops = props.actions.quantityconditionfoundobjprops;
|
|
1305
|
-
|
|
1491
|
+
var productinfo_cssstyles = {
|
|
1492
|
+
profitcontainer: glamor.css({
|
|
1493
|
+
width: sectionproperties.profitcontainerwidth + '%',
|
|
1494
|
+
height: sectionproperties.profitcontainerheight + 'px',
|
|
1495
|
+
background: sectionproperties.profitcontainerbgcolor,
|
|
1496
|
+
border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
1497
|
+
borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
1498
|
+
color: sectionproperties.profitcontainercolor,
|
|
1499
|
+
'@media (max-width: 800px)': {
|
|
1500
|
+
width: '90%'
|
|
1501
|
+
}
|
|
1502
|
+
})
|
|
1503
|
+
};
|
|
1504
|
+
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1505
|
+
"class": "col-lg-12 p-0"
|
|
1506
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1507
|
+
"class": "row m-0 w-100"
|
|
1508
|
+
}, sectionproperties.showDefaultPricingSection == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1306
1509
|
"class": "col-lg-12 p-0 mb-3 d-flex justift-content-start",
|
|
1307
1510
|
style: {
|
|
1308
1511
|
background: sectionproperties.reservation_bgcolor,
|
|
@@ -1379,11 +1582,26 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1379
1582
|
fontSize: '13px',
|
|
1380
1583
|
lineHeight: '25px'
|
|
1381
1584
|
}
|
|
1382
|
-
}, '-' + parseFloat(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).toFixed(0) + '%')))))
|
|
1585
|
+
}, '-' + parseFloat(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).toFixed(0) + '%'))))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1586
|
+
"class": "col-lg-12 p-0 mb-2"
|
|
1587
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1588
|
+
"class": productinfo_cssstyles.profitcontainer + ' allcentered '
|
|
1589
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
1590
|
+
"class": ' m-0 p-0 d-flex align-items-center justify-content-center '
|
|
1591
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1592
|
+
style: {
|
|
1593
|
+
fontWeight: sectionproperties.profitcontainerfontweight
|
|
1594
|
+
}
|
|
1595
|
+
}, langdetect == 'en' ? sectionproperties.profitcontainercontenten : sectionproperties.profitcontainercontentar, ":", ' '), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1596
|
+
"class": "mx-1",
|
|
1597
|
+
style: {
|
|
1598
|
+
fontWeight: sectionproperties.profitcontainersecondaryfontweight
|
|
1599
|
+
}
|
|
1600
|
+
}, langdetect == 'en' ? authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_en : '', ' ', parseFloat(Math.round(parseInt(fetchProductInfoQueryContext.data.data.productinfo.hassale == 0 ? parseFloat(getprice_discountpriceprops('defaultprice', 1, variantindexcompleted)).toFixed(2) : parseFloat(getprice_discountpriceprops('defaultsaleprice', 1, variantindexcompleted)).toFixed(2)) * (fetchProductInfoQueryContext.data.data.productinfo.prodaffpercentprofit / 100))).toFixed(0), ' ', langdetect == 'en' ? '' : authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.currencyname_ar))))));
|
|
1383
1601
|
};
|
|
1384
1602
|
|
|
1385
|
-
function ownKeys$
|
|
1386
|
-
function _objectSpread$
|
|
1603
|
+
function ownKeys$28(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; }
|
|
1604
|
+
function _objectSpread$28(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$28(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$28(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1387
1605
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
1388
1606
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _css, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
1389
1607
|
props.actions.lang;
|
|
@@ -1437,9 +1655,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1437
1655
|
});
|
|
1438
1656
|
}
|
|
1439
1657
|
setproductextravaluesarray(_toConsumableArray__default["default"](tempproductextravaluesarray));
|
|
1440
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1658
|
+
var tempaddtocardpayloadobj = _objectSpread$28({}, addtocardpayloadobj);
|
|
1441
1659
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
1442
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1660
|
+
setaddtocardpayloadobj(_objectSpread$28({}, tempaddtocardpayloadobj));
|
|
1443
1661
|
};
|
|
1444
1662
|
var formstyles = {
|
|
1445
1663
|
loginbtn: glamor.css({
|
|
@@ -1622,8 +1840,8 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1622
1840
|
}))));
|
|
1623
1841
|
};
|
|
1624
1842
|
|
|
1625
|
-
function ownKeys$
|
|
1626
|
-
function _objectSpread$
|
|
1843
|
+
function ownKeys$27(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; }
|
|
1844
|
+
function _objectSpread$27(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$27(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$27(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1627
1845
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1628
1846
|
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, _fetchProductInfoQuer25, _fetchProductInfoQuer26, _fetchProductInfoQuer27, _fetchProductInfoQuer28, _fetchProductInfoQuer29, _fetchProductInfoQuer30, _fetchProductInfoQuer31, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _fetchProductInfoQuer32, _fetchProductInfoQuer33, _fetchProductInfoQuer34, _fetchProductInfoQuer35, _fetchProductInfoQuer36, _fetchProductInfoQuer37, _fetchProductInfoQuer38, _fetchProductInfoQuer39, _fetchProductInfoQuer40, _fetchProductInfoQuer41, _fetchProductInfoQuer42, _fetchProductInfoQuer43, _fetchProductInfoQuer44, _fetchProductInfoQuer45, _fetchProductInfoQuer46, _fetchProductInfoQuer47, _fetchProductInfoQuer48, _fetchProductInfoQuer49, _fetchProductInfoQuer50, _fetchProductInfoQuer51, _fetchProductInfoQuer52;
|
|
1629
1847
|
var lang = props.actions.lang;
|
|
@@ -1929,11 +2147,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1929
2147
|
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1930
2148
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
1931
2149
|
onClick: function onClick() {
|
|
1932
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2150
|
+
var tempaddtocardpayloadobj = _objectSpread$27({}, addtocardpayloadobj);
|
|
1933
2151
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
1934
2152
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
1935
2153
|
}
|
|
1936
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2154
|
+
setaddtocardpayloadobj(_objectSpread$27({}, tempaddtocardpayloadobj));
|
|
1937
2155
|
}
|
|
1938
2156
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1939
2157
|
className: "fa fa-chevron-down",
|
|
@@ -1945,9 +2163,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1945
2163
|
}, addtocardpayloadobj.quantity), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1946
2164
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
1947
2165
|
onClick: function onClick() {
|
|
1948
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2166
|
+
var tempaddtocardpayloadobj = _objectSpread$27({}, addtocardpayloadobj);
|
|
1949
2167
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
1950
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2168
|
+
setaddtocardpayloadobj(_objectSpread$27({}, tempaddtocardpayloadobj));
|
|
1951
2169
|
}
|
|
1952
2170
|
}, /*#__PURE__*/React__default["default"].createElement("i", {
|
|
1953
2171
|
className: "fa fa-chevron-up",
|
|
@@ -1985,7 +2203,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1985
2203
|
size: sectionproperties.cartBtn_iconFontSize
|
|
1986
2204
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React__default["default"].createElement(MdAddShoppingCart.MdAddShoppingCart, {
|
|
1987
2205
|
size: sectionproperties.cartBtn_iconFontSize
|
|
1988
|
-
})),
|
|
2206
|
+
})), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), AddtoCartMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1989
2207
|
className: ' d-flex align-items-center justify-content-center '
|
|
1990
2208
|
}, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
|
|
1991
2209
|
color: "white",
|
|
@@ -2149,8 +2367,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2149
2367
|
}, StoreInfoprops())))));
|
|
2150
2368
|
};
|
|
2151
2369
|
|
|
2152
|
-
function ownKeys$
|
|
2153
|
-
function _objectSpread$
|
|
2370
|
+
function ownKeys$26(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; }
|
|
2371
|
+
function _objectSpread$26(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$26(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$26(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
2154
2372
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
2155
2373
|
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;
|
|
2156
2374
|
var langdetect = props.actions.langdetect;
|
|
@@ -2191,7 +2409,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2191
2409
|
slots = _useState6[0],
|
|
2192
2410
|
setslots = _useState6[1];
|
|
2193
2411
|
React.useEffect(function () {
|
|
2194
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2412
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2195
2413
|
item_type: 'service'
|
|
2196
2414
|
}));
|
|
2197
2415
|
}, [tabsarray]);
|
|
@@ -2203,16 +2421,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2203
2421
|
if (diffDays.toString() != 'NaN') {
|
|
2204
2422
|
if (date2 <= date1) {
|
|
2205
2423
|
NotificationManager.warning('', 'Please choose another date.');
|
|
2206
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2424
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2207
2425
|
quantity: 0
|
|
2208
2426
|
}));
|
|
2209
2427
|
} else {
|
|
2210
2428
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
2211
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2429
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2212
2430
|
quantity: diffDays
|
|
2213
2431
|
}));
|
|
2214
2432
|
} else {
|
|
2215
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2433
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2216
2434
|
quantity: 0
|
|
2217
2435
|
}));
|
|
2218
2436
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -2348,7 +2566,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2348
2566
|
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,
|
|
2349
2567
|
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,
|
|
2350
2568
|
onChange: function onChange(event) {
|
|
2351
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2569
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2352
2570
|
from: event.target.value
|
|
2353
2571
|
}));
|
|
2354
2572
|
}
|
|
@@ -2368,7 +2586,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2368
2586
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2369
2587
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2370
2588
|
onChange: function onChange(event) {
|
|
2371
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2589
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2372
2590
|
to: event.target.value
|
|
2373
2591
|
}));
|
|
2374
2592
|
}
|
|
@@ -2388,7 +2606,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2388
2606
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2389
2607
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2390
2608
|
onChange: function onChange(event) {
|
|
2391
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2609
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2392
2610
|
date: event.target.value
|
|
2393
2611
|
}));
|
|
2394
2612
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -2439,7 +2657,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2439
2657
|
color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
|
|
2440
2658
|
},
|
|
2441
2659
|
onClick: function onClick() {
|
|
2442
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2660
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2443
2661
|
time: item.slot
|
|
2444
2662
|
}));
|
|
2445
2663
|
}
|
|
@@ -2448,7 +2666,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2448
2666
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
2449
2667
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
2450
2668
|
onClick: function onClick() {
|
|
2451
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2669
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2452
2670
|
time: item.slot
|
|
2453
2671
|
}));
|
|
2454
2672
|
}
|
|
@@ -2490,7 +2708,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2490
2708
|
"class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
|
|
2491
2709
|
style: {},
|
|
2492
2710
|
onClick: function onClick() {
|
|
2493
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2711
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2494
2712
|
time: item.slot
|
|
2495
2713
|
}));
|
|
2496
2714
|
}
|
|
@@ -3075,8 +3293,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
3075
3293
|
}, StoreInfoprops()))));
|
|
3076
3294
|
};
|
|
3077
3295
|
|
|
3078
|
-
function ownKeys$
|
|
3079
|
-
function _objectSpread$
|
|
3296
|
+
function ownKeys$25(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; }
|
|
3297
|
+
function _objectSpread$25(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$25(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$25(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3080
3298
|
var AddReview = function AddReview(props) {
|
|
3081
3299
|
var _css;
|
|
3082
3300
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -3130,7 +3348,7 @@ var AddReview = function AddReview(props) {
|
|
|
3130
3348
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
3131
3349
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3132
3350
|
});
|
|
3133
|
-
setsectionproperties(_objectSpread$
|
|
3351
|
+
setsectionproperties(_objectSpread$25({}, secpropobj));
|
|
3134
3352
|
}
|
|
3135
3353
|
}, [StatePagePropertiesContext]);
|
|
3136
3354
|
React.useEffect(function () {
|
|
@@ -3139,7 +3357,7 @@ var AddReview = function AddReview(props) {
|
|
|
3139
3357
|
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) {
|
|
3140
3358
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3141
3359
|
});
|
|
3142
|
-
setsectionproperties(_objectSpread$
|
|
3360
|
+
setsectionproperties(_objectSpread$25({}, secpropobj));
|
|
3143
3361
|
}, [pageindexcontext]);
|
|
3144
3362
|
var reviewstyles = {
|
|
3145
3363
|
submitreviewbtn: glamor.css({
|
|
@@ -3265,9 +3483,9 @@ var AddReview = function AddReview(props) {
|
|
|
3265
3483
|
}),
|
|
3266
3484
|
activeColor: "#ffd700",
|
|
3267
3485
|
onChange: function onChange(event) {
|
|
3268
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3486
|
+
var tempreviewpayloadobj = _objectSpread$25({}, reviewpayloadobj);
|
|
3269
3487
|
tempreviewpayloadobj.reviewrate = event;
|
|
3270
|
-
setreviewpayloadobj(_objectSpread$
|
|
3488
|
+
setreviewpayloadobj(_objectSpread$25({}, tempreviewpayloadobj));
|
|
3271
3489
|
}
|
|
3272
3490
|
})))))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3273
3491
|
"class": "col-lg-12"
|
|
@@ -3281,9 +3499,9 @@ var AddReview = function AddReview(props) {
|
|
|
3281
3499
|
"class": reviewstyles.form_control,
|
|
3282
3500
|
value: reviewpayloadobj.reviewname,
|
|
3283
3501
|
onChange: function onChange(event) {
|
|
3284
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3502
|
+
var tempreviewpayloadobj = _objectSpread$25({}, reviewpayloadobj);
|
|
3285
3503
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
3286
|
-
setreviewpayloadobj(_objectSpread$
|
|
3504
|
+
setreviewpayloadobj(_objectSpread$25({}, tempreviewpayloadobj));
|
|
3287
3505
|
}
|
|
3288
3506
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3289
3507
|
"class": "col-lg-12 mb-4"
|
|
@@ -3293,9 +3511,9 @@ var AddReview = function AddReview(props) {
|
|
|
3293
3511
|
"class": reviewstyles.form_control,
|
|
3294
3512
|
value: reviewpayloadobj.reviewtitle,
|
|
3295
3513
|
onChange: function onChange(event) {
|
|
3296
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3514
|
+
var tempreviewpayloadobj = _objectSpread$25({}, reviewpayloadobj);
|
|
3297
3515
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
3298
|
-
setreviewpayloadobj(_objectSpread$
|
|
3516
|
+
setreviewpayloadobj(_objectSpread$25({}, tempreviewpayloadobj));
|
|
3299
3517
|
}
|
|
3300
3518
|
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
3301
3519
|
"class": "col-lg-12 mb-4"
|
|
@@ -3306,9 +3524,9 @@ var AddReview = function AddReview(props) {
|
|
|
3306
3524
|
"class": reviewstyles.form_control + ' form_control ',
|
|
3307
3525
|
value: reviewpayloadobj.reviewbody,
|
|
3308
3526
|
onChange: function onChange(event) {
|
|
3309
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3527
|
+
var tempreviewpayloadobj = _objectSpread$25({}, reviewpayloadobj);
|
|
3310
3528
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
3311
|
-
setreviewpayloadobj(_objectSpread$
|
|
3529
|
+
setreviewpayloadobj(_objectSpread$25({}, tempreviewpayloadobj));
|
|
3312
3530
|
},
|
|
3313
3531
|
style: {
|
|
3314
3532
|
resize: 'none',
|
|
@@ -3343,8 +3561,8 @@ var AddReview = function AddReview(props) {
|
|
|
3343
3561
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
3344
3562
|
};
|
|
3345
3563
|
|
|
3346
|
-
function ownKeys$
|
|
3347
|
-
function _objectSpread$
|
|
3564
|
+
function ownKeys$24(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; }
|
|
3565
|
+
function _objectSpread$24(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$24(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$24(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3348
3566
|
var ProductReviews = function ProductReviews(props) {
|
|
3349
3567
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
3350
3568
|
props.actions.lang;
|
|
@@ -3578,7 +3796,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3578
3796
|
size: "md",
|
|
3579
3797
|
"class": "reviewmodal"
|
|
3580
3798
|
}, /*#__PURE__*/React__default["default"].createElement(reactBootstrap.Modal.Body, null, /*#__PURE__*/React__default["default"].createElement(AddReview, {
|
|
3581
|
-
actions: _objectSpread$
|
|
3799
|
+
actions: _objectSpread$24(_objectSpread$24({}, actions), {}, {
|
|
3582
3800
|
productid: productid,
|
|
3583
3801
|
canuserreview: canuserreview,
|
|
3584
3802
|
addreviewcallback: addreviewcallback
|
|
@@ -3586,8 +3804,8 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3586
3804
|
}))));
|
|
3587
3805
|
};
|
|
3588
3806
|
|
|
3589
|
-
function ownKeys$
|
|
3590
|
-
function _objectSpread$
|
|
3807
|
+
function ownKeys$23(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; }
|
|
3808
|
+
function _objectSpread$23(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$23(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$23(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
3591
3809
|
var Productinfo = function Productinfo(props) {
|
|
3592
3810
|
var _css, _ref, _ref2, _returnpolicyobj, _returnpolicyobj2, _returnpolicyobj3, _returnpolicyobj4, _fetchProductInfoQuer58, _fetchProductInfoQuer59, _fetchProductInfoQuer60, _returnpolicyobj5, _returnpolicyobj6, _returnpolicyobj7, _returnpolicyobj8, _fetchProductInfoQuer61, _fetchProductInfoQuer62, _fetchProductInfoQuer63, _fetchProductInfoQuer64, _fetchProductInfoQuer65, _fetchProductInfoQuer66, _fetchProductInfoQuer67, _fetchProductInfoQuer68, _fetchProductInfoQuer69, _fetchProductInfoQuer70, _fetchProductInfoQuer71, _fetchProductInfoQuer72, _fetchProductInfoQuer73, _fetchProductInfoQuer74, _fetchProductInfoQuer75, _fetchProductInfoQuer76, _fetchProductInfoQuer77, _fetchProductInfoQuer78, _fetchProductInfoQuer79, _fetchProductInfoQuer80, _fetchProductInfoQuer81, _fetchProductInfoQuer82, _fetchProductInfoQuer83, _fetchProductInfoQuer84, _fetchProductInfoQuer85, _fetchProductInfoQuer86, _fetchProductInfoQuer87, _fetchProductInfoQuer88, _fetchProductInfoQuer89, _fetchProductInfoQuer90, _fetchProductInfoQuer91, _fetchProductInfoQuer92, _fetchProductInfoQuer93, _fetchProductInfoQuer94, _fetchProductInfoQuer95, _fetchProductInfoQuer96, _fetchProductInfoQuer97, _fetchProductInfoQuer98, _fetchProductInfoQuer99, _fetchProductInfoQuer100, _fetchProductInfoQuer101, _returnpolicyobj9, _returnpolicyobj10, _returnpolicyobj11, _returnpolicyobj12;
|
|
3593
3811
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -3700,7 +3918,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3700
3918
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
3701
3919
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3702
3920
|
});
|
|
3703
|
-
setsectionproperties(_objectSpread$
|
|
3921
|
+
setsectionproperties(_objectSpread$23({}, secpropobj));
|
|
3704
3922
|
}
|
|
3705
3923
|
}, [StatePagePropertiesContext]);
|
|
3706
3924
|
React.useEffect(function () {
|
|
@@ -3721,7 +3939,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3721
3939
|
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) {
|
|
3722
3940
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3723
3941
|
});
|
|
3724
|
-
setsectionproperties(_objectSpread$
|
|
3942
|
+
setsectionproperties(_objectSpread$23({}, secpropobj));
|
|
3725
3943
|
}, [pageindexcontext]);
|
|
3726
3944
|
React.useEffect(function () {
|
|
3727
3945
|
if (productidparam == undefined) {
|
|
@@ -3741,12 +3959,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
3741
3959
|
}
|
|
3742
3960
|
}, [ProductInfoObj, isloaded]);
|
|
3743
3961
|
var productidassigner = function productidassigner(productid) {
|
|
3744
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
3962
|
+
var tempFetchQueriesEngineContext = _objectSpread$23({}, FetchQueriesEngineContext);
|
|
3745
3963
|
tempFetchQueriesEngineContext.fetchproductinfo = true;
|
|
3746
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
3747
|
-
var tempfetchproductinfoObjContext = _objectSpread$
|
|
3964
|
+
setFetchQueriesEngineContext(_objectSpread$23({}, tempFetchQueriesEngineContext));
|
|
3965
|
+
var tempfetchproductinfoObjContext = _objectSpread$23({}, fetchproductinfoObjContext);
|
|
3748
3966
|
tempfetchproductinfoObjContext.productid = productid;
|
|
3749
|
-
setfetchproductinfoObjContext(_objectSpread$
|
|
3967
|
+
setfetchproductinfoObjContext(_objectSpread$23({}, tempfetchproductinfoObjContext));
|
|
3750
3968
|
};
|
|
3751
3969
|
React.useEffect(function () {
|
|
3752
3970
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
@@ -3772,9 +3990,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
3772
3990
|
}
|
|
3773
3991
|
setproductimagesarray([].concat(tempproductimagesarray));
|
|
3774
3992
|
variantchecker();
|
|
3775
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
3993
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3776
3994
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
3777
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3995
|
+
setaddtocardpayloadobj(_objectSpread$23({}, tempaddtocardpayloadobj));
|
|
3778
3996
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
3779
3997
|
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) {
|
|
3780
3998
|
GeneralAPIMutationContext.mutate({
|
|
@@ -3821,7 +4039,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3821
4039
|
});
|
|
3822
4040
|
variantchecker();
|
|
3823
4041
|
variantcompleting();
|
|
3824
|
-
setProductInfoObj(_objectSpread$
|
|
4042
|
+
setProductInfoObj(_objectSpread$23({}, productarr));
|
|
3825
4043
|
};
|
|
3826
4044
|
var variantchecker = function variantchecker() {
|
|
3827
4045
|
var productarr = ProductInfoObj;
|
|
@@ -3895,16 +4113,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
3895
4113
|
});
|
|
3896
4114
|
}
|
|
3897
4115
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
3898
|
-
setProductInfoObj(_objectSpread$
|
|
4116
|
+
setProductInfoObj(_objectSpread$23({}, productarr));
|
|
3899
4117
|
setisloaded(true);
|
|
3900
4118
|
}
|
|
3901
4119
|
}
|
|
3902
4120
|
};
|
|
3903
4121
|
var variantcompleting = function variantcompleting() {
|
|
3904
4122
|
setvariantindexcompleted('');
|
|
3905
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
4123
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3906
4124
|
tempaddtocardpayloadobj.variantid = '';
|
|
3907
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
4125
|
+
setaddtocardpayloadobj(_objectSpread$23({}, tempaddtocardpayloadobj));
|
|
3908
4126
|
var productarr = ProductInfoObj;
|
|
3909
4127
|
var selectedoptionsvalues = [];
|
|
3910
4128
|
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
@@ -3936,7 +4154,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3936
4154
|
NotificationManager.warning('', 'Variant Not Found');
|
|
3937
4155
|
} else {
|
|
3938
4156
|
variantid = variantobj.variantid;
|
|
3939
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
4157
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3940
4158
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
3941
4159
|
var variantimageindex = 0;
|
|
3942
4160
|
productimagesarray === null || productimagesarray === void 0 ? void 0 : productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
@@ -3945,13 +4163,13 @@ var Productinfo = function Productinfo(props) {
|
|
|
3945
4163
|
}
|
|
3946
4164
|
});
|
|
3947
4165
|
setcurrentshowingimageindex(variantimageindex);
|
|
3948
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
4166
|
+
setaddtocardpayloadobj(_objectSpread$23({}, tempaddtocardpayloadobj));
|
|
3949
4167
|
setvariantindexcompleted(ProductVariantIndex);
|
|
3950
4168
|
}
|
|
3951
4169
|
}
|
|
3952
4170
|
});
|
|
3953
4171
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
3954
|
-
setProductInfoObj(_objectSpread$
|
|
4172
|
+
setProductInfoObj(_objectSpread$23({}, productarr));
|
|
3955
4173
|
};
|
|
3956
4174
|
var addtocartfunc = function addtocartfunc() {
|
|
3957
4175
|
var runfunc = false;
|
|
@@ -3971,7 +4189,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3971
4189
|
}
|
|
3972
4190
|
if (runfunc == true) {
|
|
3973
4191
|
var _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13;
|
|
3974
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
4192
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3975
4193
|
tempaddtocardpayloadobj.isproductforcedtocheckout = 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.isproductforcedtocheckout;
|
|
3976
4194
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
3977
4195
|
if (Extrafieldvalidationresponse.status) {
|
|
@@ -3981,7 +4199,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3981
4199
|
};
|
|
3982
4200
|
var validateextrafields = function validateextrafields() {
|
|
3983
4201
|
var _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16;
|
|
3984
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
4202
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3985
4203
|
var status = false;
|
|
3986
4204
|
var reason = '';
|
|
3987
4205
|
var missingitemsfound = [];
|
|
@@ -4874,7 +5092,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4874
5092
|
})), tabname == 'reviewstab' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
4875
5093
|
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
4876
5094
|
}, /*#__PURE__*/React__default["default"].createElement(ProductReviews, {
|
|
4877
|
-
actions: _objectSpread$
|
|
5095
|
+
actions: _objectSpread$23(_objectSpread$23({}, actions), {}, {
|
|
4878
5096
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
4879
5097
|
sectionproperties: sectionproperties
|
|
4880
5098
|
})
|
|
@@ -4891,8 +5109,8 @@ var css_248z$G = "/* Side Nav */\n.staticroutersidenav-module_vertical_nav_menu_
|
|
|
4891
5109
|
var staticroutersidenav = {"vertical_nav_menu":"staticroutersidenav-module_vertical_nav_menu__p0mIj","sidebar_item":"staticroutersidenav-module_sidebar_item__3F9Q1","sidenav_page_name":"staticroutersidenav-module_sidenav_page_name__46AJV","sidenav_icon_cont":"staticroutersidenav-module_sidenav_icon_cont__O8YSe","metismenu_icon":"staticroutersidenav-module_metismenu_icon__EcRZ1","sidenav_active":"staticroutersidenav-module_sidenav_active__IjRo0","horizontal_nav_menu":"staticroutersidenav-module_horizontal_nav_menu__6V32S","sidebar_itemlastchild":"staticroutersidenav-module_sidebar_itemlastchild__9O187"};
|
|
4892
5110
|
styleInject(css_248z$G);
|
|
4893
5111
|
|
|
4894
|
-
function ownKeys$
|
|
4895
|
-
function _objectSpread$
|
|
5112
|
+
function ownKeys$22(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; }
|
|
5113
|
+
function _objectSpread$22(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$22(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$22(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4896
5114
|
var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
4897
5115
|
var _useState = React.useState(props.currentpageprops),
|
|
4898
5116
|
_useState2 = _slicedToArray__default["default"](_useState, 2),
|
|
@@ -4928,7 +5146,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
4928
5146
|
templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$ === void 0 ? void 0 : (_templatepropcontext$2 = _templatepropcontext$.pageproperties) === null || _templatepropcontext$2 === void 0 ? void 0 : _templatepropcontext$2.forEach(function (arrayItem, arrayindex) {
|
|
4929
5147
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4930
5148
|
});
|
|
4931
|
-
setsectionproperties(_objectSpread$
|
|
5149
|
+
setsectionproperties(_objectSpread$22({}, secpropobj));
|
|
4932
5150
|
}
|
|
4933
5151
|
}, [CurrentPageId]);
|
|
4934
5152
|
var styles = {
|
|
@@ -5090,8 +5308,8 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
5090
5308
|
}))))));
|
|
5091
5309
|
};
|
|
5092
5310
|
|
|
5093
|
-
function ownKeys$
|
|
5094
|
-
function _objectSpread$
|
|
5311
|
+
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; }
|
|
5312
|
+
function _objectSpread$21(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$21(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$21(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5095
5313
|
var Ordershistory = function Ordershistory(props) {
|
|
5096
5314
|
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _fetchorderhistoryQue6, _fetchorderhistoryQue7, _fetchorderhistoryQue8, _fetchorderhistoryQue9, _fetchorderhistoryQue10, _fetchorderhistoryQue11, _fetchorderhistoryQue12, _fetchorderhistoryQue13, _fetchorderhistoryQue14;
|
|
5097
5315
|
var lang = props.actions.lang;
|
|
@@ -5144,9 +5362,9 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
5144
5362
|
setorderindex = _useState14[1];
|
|
5145
5363
|
React.useEffect(function () {
|
|
5146
5364
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
5147
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
5365
|
+
var tempFetchQueriesEngineContext = _objectSpread$21({}, FetchQueriesEngineContext);
|
|
5148
5366
|
tempFetchQueriesEngineContext.orderhistory = true;
|
|
5149
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
5367
|
+
setFetchQueriesEngineContext(_objectSpread$21({}, tempFetchQueriesEngineContext));
|
|
5150
5368
|
}
|
|
5151
5369
|
}, []);
|
|
5152
5370
|
var _useState15 = React.useState(''),
|
|
@@ -5167,7 +5385,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
5167
5385
|
props === null || props === void 0 ? void 0 : (_props$actions = props.actions) === null || _props$actions === void 0 ? void 0 : (_props$actions$StateP = _props$actions.StatePagePropertiesContext) === null || _props$actions$StateP === void 0 ? void 0 : (_props$actions$StateP2 = _props$actions$StateP.pageobj) === null || _props$actions$StateP2 === void 0 ? void 0 : (_props$actions$StateP3 = _props$actions$StateP2.pageproperties) === null || _props$actions$StateP3 === void 0 ? void 0 : _props$actions$StateP3.forEach(function (arrayItem, arrayindex) {
|
|
5168
5386
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5169
5387
|
});
|
|
5170
|
-
setsectionproperties(_objectSpread$
|
|
5388
|
+
setsectionproperties(_objectSpread$21({}, secpropobj));
|
|
5171
5389
|
}, [props === null || props === void 0 ? void 0 : (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
5172
5390
|
var orderhistory_cssstyles = {
|
|
5173
5391
|
variantcontainer: glamor.css({
|
|
@@ -6024,8 +6242,8 @@ var css_248z$F = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_c
|
|
|
6024
6242
|
var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
|
|
6025
6243
|
styleInject(css_248z$F);
|
|
6026
6244
|
|
|
6027
|
-
function ownKeys$
|
|
6028
|
-
function _objectSpread$
|
|
6245
|
+
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; }
|
|
6246
|
+
function _objectSpread$20(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$20(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$20(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6029
6247
|
var Wishlist = function Wishlist(props) {
|
|
6030
6248
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
6031
6249
|
var lang = props.actions.lang;
|
|
@@ -6053,13 +6271,13 @@ var Wishlist = function Wishlist(props) {
|
|
|
6053
6271
|
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
6054
6272
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6055
6273
|
});
|
|
6056
|
-
setsectionproperties(_objectSpread$
|
|
6274
|
+
setsectionproperties(_objectSpread$20({}, secpropobj));
|
|
6057
6275
|
}
|
|
6058
6276
|
}, [StatePagePropertiesContext]);
|
|
6059
6277
|
React.useEffect(function () {
|
|
6060
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
6278
|
+
var tempFetchQueriesEngineContext = _objectSpread$20({}, FetchQueriesEngineContext);
|
|
6061
6279
|
tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
|
|
6062
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
6280
|
+
setFetchQueriesEngineContext(_objectSpread$20({}, tempFetchQueriesEngineContext));
|
|
6063
6281
|
}, []);
|
|
6064
6282
|
React.useEffect(function () {
|
|
6065
6283
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
@@ -6068,7 +6286,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
6068
6286
|
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) {
|
|
6069
6287
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6070
6288
|
});
|
|
6071
|
-
setsectionproperties(_objectSpread$
|
|
6289
|
+
setsectionproperties(_objectSpread$20({}, secpropobj));
|
|
6072
6290
|
}
|
|
6073
6291
|
}, [StatePagePropertiesContext]);
|
|
6074
6292
|
var wishlist_cssstyles = {
|
|
@@ -6473,8 +6691,8 @@ var Wishlist = function Wishlist(props) {
|
|
|
6473
6691
|
})));
|
|
6474
6692
|
};
|
|
6475
6693
|
|
|
6476
|
-
function ownKeys$
|
|
6477
|
-
function _objectSpread$
|
|
6694
|
+
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; }
|
|
6695
|
+
function _objectSpread$1$(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1$(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1$(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6478
6696
|
var Viewcart = function Viewcart(props) {
|
|
6479
6697
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25;
|
|
6480
6698
|
var lang = props.actions.lang;
|
|
@@ -6506,7 +6724,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
6506
6724
|
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) {
|
|
6507
6725
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6508
6726
|
});
|
|
6509
|
-
setsectionproperties(_objectSpread$
|
|
6727
|
+
setsectionproperties(_objectSpread$1$({}, secpropobj));
|
|
6510
6728
|
}
|
|
6511
6729
|
}, [StatePagePropertiesContext]);
|
|
6512
6730
|
React.useEffect(function () {
|
|
@@ -7090,91 +7308,6 @@ var css_248z$E = "/* Forms */\n.form-module_form_control__4-RGw {\n display:
|
|
|
7090
7308
|
var formstyles = {"form_control":"form-module_form_control__4-RGw","textarea":"form-module_textarea__zG0ed","form_control_border_none":"form-module_form_control_border_none__TJvdZ","disabled":"form-module_disabled__AtvSI","input_label_name":"form-module_input_label_name__416wN","input_label_name-bolder":"form-module_input_label_name-bolder__UQn0a","input_icon":"form-module_input_icon__X-CzC","radiobtn_label":"form-module_radiobtn_label__-4Hoi","text-grey":"form-module_text-grey__JdZMY","radiobtn_label_translated":"form-module_radiobtn_label_translated__WN5Jj","checkbox":"form-module_checkbox__XPkWy","checkbox_label":"form-module_checkbox_label__VvcKs","checkbox_sub":"form-module_checkbox_sub__QWYil","checkboxtranslated":"form-module_checkboxtranslated__zvEV-"};
|
|
7091
7309
|
styleInject(css_248z$E);
|
|
7092
7310
|
|
|
7093
|
-
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; }
|
|
7094
|
-
function _objectSpread$1$(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1$(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1$(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7095
|
-
var defaultstyles = {
|
|
7096
|
-
option: function option(provided, state) {
|
|
7097
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7098
|
-
borderBottom: '1px solid #e6e6e6',
|
|
7099
|
-
backgroundColor: state.isSelected ? '' : '',
|
|
7100
|
-
padding: 5,
|
|
7101
|
-
textTransform: 'capitalize',
|
|
7102
|
-
color: state.isSelected ? '#eac435' : 'black',
|
|
7103
|
-
transition: '.3s',
|
|
7104
|
-
'&:hover': {
|
|
7105
|
-
// color: '#eac435',
|
|
7106
|
-
cursor: 'pointer'
|
|
7107
|
-
}
|
|
7108
|
-
});
|
|
7109
|
-
},
|
|
7110
|
-
control: function control() {
|
|
7111
|
-
return {
|
|
7112
|
-
borderBottom: '1px solid #ccc',
|
|
7113
|
-
backgroundColor: 'white',
|
|
7114
|
-
display: 'flex',
|
|
7115
|
-
cursor: 'pointer',
|
|
7116
|
-
padding: 0,
|
|
7117
|
-
transition: '.3s',
|
|
7118
|
-
'&:hover': {
|
|
7119
|
-
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
7120
|
-
// borderRadius: '10px',
|
|
7121
|
-
}
|
|
7122
|
-
};
|
|
7123
|
-
},
|
|
7124
|
-
dropdownIndicator: function dropdownIndicator(provided) {
|
|
7125
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7126
|
-
'&:hover': {
|
|
7127
|
-
// color: '#eac435',
|
|
7128
|
-
}
|
|
7129
|
-
});
|
|
7130
|
-
}
|
|
7131
|
-
};
|
|
7132
|
-
var defaultstylestranslated = {
|
|
7133
|
-
option: function option(provided, state) {
|
|
7134
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7135
|
-
borderBottom: '1px solid #e6e6e6',
|
|
7136
|
-
backgroundColor: state.isSelected ? '' : '',
|
|
7137
|
-
padding: 5,
|
|
7138
|
-
textTransform: 'capitalize',
|
|
7139
|
-
// color: state.isSelected ? '#eac435' : '#022648',
|
|
7140
|
-
color: state.isSelected ? '#eac435' : 'black',
|
|
7141
|
-
transition: '.3s',
|
|
7142
|
-
textAlign: 'right',
|
|
7143
|
-
'&:hover': {
|
|
7144
|
-
// color: '#eac435',
|
|
7145
|
-
cursor: 'pointer'
|
|
7146
|
-
}
|
|
7147
|
-
});
|
|
7148
|
-
},
|
|
7149
|
-
control: function control() {
|
|
7150
|
-
return {
|
|
7151
|
-
borderBottom: '1px solid #ccc',
|
|
7152
|
-
backgroundColor: 'white',
|
|
7153
|
-
display: 'flex',
|
|
7154
|
-
cursor: 'pointer',
|
|
7155
|
-
padding: 0,
|
|
7156
|
-
transition: '.3s',
|
|
7157
|
-
textAlign: 'right',
|
|
7158
|
-
'&:hover': {
|
|
7159
|
-
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
7160
|
-
// borderRadius: '10px',
|
|
7161
|
-
}
|
|
7162
|
-
};
|
|
7163
|
-
},
|
|
7164
|
-
dropdownIndicator: function dropdownIndicator(provided) {
|
|
7165
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7166
|
-
'&:hover': {
|
|
7167
|
-
// color: '#eac435',
|
|
7168
|
-
}
|
|
7169
|
-
});
|
|
7170
|
-
},
|
|
7171
|
-
placeholder: function placeholder(provided, state) {
|
|
7172
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7173
|
-
textAlign: 'right'
|
|
7174
|
-
});
|
|
7175
|
-
}
|
|
7176
|
-
};
|
|
7177
|
-
|
|
7178
7311
|
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; }
|
|
7179
7312
|
function _objectSpread$1_(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1_(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1_(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7180
7313
|
var Select$2 = /*#__PURE__*/React__default["default"].lazy(function () {
|
|
@@ -12570,6 +12703,7 @@ var CardsSection = function CardsSection(props) {
|
|
|
12570
12703
|
cardobj.quantavailtype = arrayItem.productinfo.quantavailtype;
|
|
12571
12704
|
cardobj.isproducttobesold = arrayItem.productinfo.isproducttobesold;
|
|
12572
12705
|
cardobj.measurmentunit = arrayItem.productinfo.measurmentunit;
|
|
12706
|
+
cardobj.prodaffpercentprofit = arrayItem.productinfo.prodaffpercentprofit;
|
|
12573
12707
|
if (langdetect == 'en') {
|
|
12574
12708
|
cardobj.currencyname = fetchAuthorizationQueryContext === null || fetchAuthorizationQueryContext === void 0 ? void 0 : fetchAuthorizationQueryContext.data.data.currencyname_en;
|
|
12575
12709
|
} else {
|
|
@@ -43335,7 +43469,18 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
43335
43469
|
})), sectionproperties.generalbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43336
43470
|
"class": "col-lg-12 p-0"
|
|
43337
43471
|
}, /*#__PURE__*/React__default["default"].createElement("button", {
|
|
43338
|
-
"class": "".concat(section_styles.btn)
|
|
43472
|
+
"class": "".concat(section_styles.btn),
|
|
43473
|
+
onClick: function onClick() {
|
|
43474
|
+
if (sectionproperties.btntype == 'WhatsApp') {
|
|
43475
|
+
var _authdetailsContext$i;
|
|
43476
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i = authdetailsContext.instinfo) === null || _authdetailsContext$i === void 0 ? void 0 : _authdetailsContext$i.whatsappnumber) != null) {
|
|
43477
|
+
var _authdetailsContext$i2;
|
|
43478
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i2 = authdetailsContext.instinfo) === null || _authdetailsContext$i2 === void 0 ? void 0 : _authdetailsContext$i2.whatsappnumber), '_blank');
|
|
43479
|
+
}
|
|
43480
|
+
} else {
|
|
43481
|
+
window.open(sectionproperties.btnlink, '_blank');
|
|
43482
|
+
}
|
|
43483
|
+
}
|
|
43339
43484
|
}, langdetect == 'en' ? sectionproperties.generalbtn_content : sectionproperties.slideshow_btn_text_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43340
43485
|
"class": "col-lg-12 p-0 d-flex justify-content-sm-center mb-sm-4 align-items-center",
|
|
43341
43486
|
style: {
|
|
@@ -43345,10 +43490,10 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
43345
43490
|
}, sectionproperties.fbbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43346
43491
|
"class": "".concat(section_styles.facebook_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
|
|
43347
43492
|
onClick: function onClick() {
|
|
43348
|
-
var _authdetailsContext$
|
|
43349
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
43350
|
-
var _authdetailsContext$
|
|
43351
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
43493
|
+
var _authdetailsContext$i3;
|
|
43494
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i3 = authdetailsContext.instinfo) === null || _authdetailsContext$i3 === void 0 ? void 0 : _authdetailsContext$i3.facebooklink) != null) {
|
|
43495
|
+
var _authdetailsContext$i4;
|
|
43496
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i4 = authdetailsContext.instinfo) === null || _authdetailsContext$i4 === void 0 ? void 0 : _authdetailsContext$i4.facebooklink, '_blank');
|
|
43352
43497
|
}
|
|
43353
43498
|
}
|
|
43354
43499
|
}, /*#__PURE__*/React__default["default"].createElement(FaFacebookF.FaFacebookF, {
|
|
@@ -43356,10 +43501,10 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
43356
43501
|
})), sectionproperties.instbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43357
43502
|
"class": "".concat(section_styles.instgram_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
|
|
43358
43503
|
onClick: function onClick() {
|
|
43359
|
-
var _authdetailsContext$
|
|
43360
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
43361
|
-
var _authdetailsContext$
|
|
43362
|
-
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
43504
|
+
var _authdetailsContext$i5;
|
|
43505
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i5 = authdetailsContext.instinfo) === null || _authdetailsContext$i5 === void 0 ? void 0 : _authdetailsContext$i5.instagramlink) != null) {
|
|
43506
|
+
var _authdetailsContext$i6;
|
|
43507
|
+
window.open(authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i6 = authdetailsContext.instinfo) === null || _authdetailsContext$i6 === void 0 ? void 0 : _authdetailsContext$i6.instagramlink, '_blank');
|
|
43363
43508
|
}
|
|
43364
43509
|
}
|
|
43365
43510
|
}, /*#__PURE__*/React__default["default"].createElement(AiFillInstagram.AiFillInstagram, {
|
|
@@ -43367,10 +43512,10 @@ var Image_with_leftwords = function Image_with_leftwords(props) {
|
|
|
43367
43512
|
})), sectionproperties.youtbtn_show == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
43368
43513
|
"class": "".concat(section_styles.youtube_btn) + ' d-flex align-items-center justify-content-center ml-3 mr-3 ',
|
|
43369
43514
|
onClick: function onClick() {
|
|
43370
|
-
var _authdetailsContext$
|
|
43371
|
-
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
43372
|
-
var _authdetailsContext$
|
|
43373
|
-
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$
|
|
43515
|
+
var _authdetailsContext$i7;
|
|
43516
|
+
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i7 = authdetailsContext.instinfo) === null || _authdetailsContext$i7 === void 0 ? void 0 : _authdetailsContext$i7.whatsappnumber) != null) {
|
|
43517
|
+
var _authdetailsContext$i8;
|
|
43518
|
+
window.open('https://api.whatsapp.com/send?phone=' + (authdetailsContext === null || authdetailsContext === void 0 ? void 0 : (_authdetailsContext$i8 = authdetailsContext.instinfo) === null || _authdetailsContext$i8 === void 0 ? void 0 : _authdetailsContext$i8.whatsappnumber), '_blank');
|
|
43374
43519
|
}
|
|
43375
43520
|
}
|
|
43376
43521
|
}, /*#__PURE__*/React__default["default"].createElement(FaWhatsapp.FaWhatsapp, {
|
|
@@ -48187,6 +48332,21 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
48187
48332
|
transition: '.3s',
|
|
48188
48333
|
color: sectionproperties.remove_quantitybtn_textcoloronhover
|
|
48189
48334
|
}
|
|
48335
|
+
}),
|
|
48336
|
+
outstockbadge: glamor.css({
|
|
48337
|
+
width: sectionproperties.outstock_width + 'px',
|
|
48338
|
+
height: sectionproperties.outstock_height + 'px',
|
|
48339
|
+
background: sectionproperties.outstock_bg,
|
|
48340
|
+
color: sectionproperties.outstock_color,
|
|
48341
|
+
fontSize: sectionproperties.outstock_fontSize + 'px',
|
|
48342
|
+
borderRadius: sectionproperties.outstock_borderradius + 'px',
|
|
48343
|
+
position: 'absolute',
|
|
48344
|
+
zIndex: 2,
|
|
48345
|
+
top: 0,
|
|
48346
|
+
bottom: 0,
|
|
48347
|
+
left: 0,
|
|
48348
|
+
right: 0,
|
|
48349
|
+
margin: 'auto'
|
|
48190
48350
|
})
|
|
48191
48351
|
};
|
|
48192
48352
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -48241,7 +48401,9 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
48241
48401
|
borderBottomLeftRadius: langdetect == 'en' ? sectionproperties.image_borderBottomLeftRadius + 'px' : sectionproperties.image_borderBottomRightRadius + 'px',
|
|
48242
48402
|
borderBottomRightRadius: langdetect == 'en' ? sectionproperties.image_borderBottomRightRadius + 'px' : sectionproperties.image_borderBottomLeftRadius + 'px',
|
|
48243
48403
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
48244
|
-
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px'
|
|
48404
|
+
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
48405
|
+
opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
|
|
48406
|
+
|
|
48245
48407
|
// border: sectionproperties.image_borderwidth + 'px solid ' + sectionproperties.image_bordercolor,
|
|
48246
48408
|
},
|
|
48247
48409
|
|
|
@@ -48273,7 +48435,11 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
48273
48435
|
fontSize: sectionproperties.pillfontSize + 'px',
|
|
48274
48436
|
direction: 'ltr'
|
|
48275
48437
|
}
|
|
48276
|
-
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%'))
|
|
48438
|
+
}, '-' + Math.round(10.0 * ((parseInt(item.defaultprice) - parseInt(item.defaultsaleprice)) / parseInt(item.defaultprice)) * 100) / 10.0 + '%')), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48439
|
+
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
48440
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
48441
|
+
"class": "m-0 p-0"
|
|
48442
|
+
}, langdetect == 'en' ? sectionproperties.outstock_contenten : sectionproperties.outstock_contentar)))), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48277
48443
|
"class": "col-lg-12 p-0"
|
|
48278
48444
|
}, sectionproperties.prodNameShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
48279
48445
|
"class": "row m-0 w-100 align-items-center justify-content-center text-center mb-2"
|
|
@@ -48320,7 +48486,9 @@ var CircleCardWithVariants = function CircleCardWithVariants(props) {
|
|
|
48320
48486
|
}))), sectionproperties.cartBtnShow == 'Show' && showquantity == false && /*#__PURE__*/React__default["default"].createElement("button", {
|
|
48321
48487
|
"class": "".concat(card_cssstyles.cart_btn) + ' ml-2 mr-2 ml-sm-1 mr-sm-1 w-md-130px w-sm-100px font-sm-12 ',
|
|
48322
48488
|
onClick: function onClick() {
|
|
48323
|
-
if (sectionproperties.
|
|
48489
|
+
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|
|
48490
|
+
NotificationManager.warning('', langdetect == 'en' ? 'Sold Out' : 'نفذت الكمية');
|
|
48491
|
+
} else if (sectionproperties.quantitybtn_show == 'Show') {
|
|
48324
48492
|
setshowquantity(true);
|
|
48325
48493
|
} else {
|
|
48326
48494
|
setShowProductInfoModalContext(true);
|
|
@@ -57573,7 +57741,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
57573
57741
|
borderTopLeftRadius: langdetect == 'en' ? sectionproperties.image_bordertopleftradius + 'px' : sectionproperties.image_bordertoprightradius + 'px',
|
|
57574
57742
|
borderTopRightRadius: langdetect == 'en' ? sectionproperties.image_bordertoprightradius + 'px' : sectionproperties.image_bordertopleftradius + 'px',
|
|
57575
57743
|
transition: '.3s',
|
|
57576
|
-
opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1
|
|
57744
|
+
opacity: item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 ? 0.4 : 1,
|
|
57745
|
+
'@media (max-width: 800px)': {
|
|
57746
|
+
height: sectionproperties.height_responsive != null ? sectionproperties.height_responsive + 'px' : sectionproperties.image_height + 'px'
|
|
57747
|
+
}
|
|
57577
57748
|
}),
|
|
57578
57749
|
productNameStyles: glamor.css({
|
|
57579
57750
|
color: sectionproperties.prodNameColor,
|
|
@@ -57643,6 +57814,17 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
57643
57814
|
left: 0,
|
|
57644
57815
|
right: 0,
|
|
57645
57816
|
margin: 'auto'
|
|
57817
|
+
}),
|
|
57818
|
+
profitcontainer: glamor.css({
|
|
57819
|
+
width: sectionproperties.profitcontainerwidth + '%',
|
|
57820
|
+
height: sectionproperties.profitcontainerheight + 'px',
|
|
57821
|
+
background: sectionproperties.profitcontainerbgcolor,
|
|
57822
|
+
border: sectionproperties.profitcontainerborderwidth + 'px solid' + sectionproperties.profitcontainerbordercolor,
|
|
57823
|
+
borderRadius: sectionproperties.profitcontainerborderradius + 'px',
|
|
57824
|
+
color: sectionproperties.profitcontainercolor,
|
|
57825
|
+
'@media (max-width: 800px)': {
|
|
57826
|
+
width: '100%'
|
|
57827
|
+
}
|
|
57646
57828
|
})
|
|
57647
57829
|
};
|
|
57648
57830
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
@@ -57755,7 +57937,7 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
57755
57937
|
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
57756
57938
|
}
|
|
57757
57939
|
},
|
|
57758
|
-
"class": "".concat(card_cssstyles.productcardimagecont) + ' w-100 p-0 d-flex align-items-center justify-content-center
|
|
57940
|
+
"class": "".concat(card_cssstyles.productcardimagecont) + ' w-100 p-0 d-flex align-items-center justify-content-center ',
|
|
57759
57941
|
style: {
|
|
57760
57942
|
zIndex: 1,
|
|
57761
57943
|
marginBottom: sectionproperties.image_mb + 'px'
|
|
@@ -57770,31 +57952,6 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
57770
57952
|
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
57771
57953
|
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
57772
57954
|
}
|
|
57773
|
-
})), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57774
|
-
onClick: function onClick() {
|
|
57775
|
-
if ((sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute) == 'Product Information') {
|
|
57776
|
-
setShowProductInfoModalContext(true);
|
|
57777
|
-
setProductIdProdutInfoModalContext(item.productid);
|
|
57778
|
-
} else {
|
|
57779
|
-
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
57780
|
-
}
|
|
57781
|
-
},
|
|
57782
|
-
"class": "".concat(card_cssstyles.productcardimagecont) + ' w-100 p-0 d-none d-md-flex align-items-center justify-content-center ',
|
|
57783
|
-
style: {
|
|
57784
|
-
zIndex: 1,
|
|
57785
|
-
marginBottom: sectionproperties.image_mb + 'px',
|
|
57786
|
-
height: sectionproperties.height_responsive == 0 ? 'auto' : sectionproperties.height_responsive
|
|
57787
|
-
}
|
|
57788
|
-
}, item.image != '' && /*#__PURE__*/React__default["default"].createElement(Imagekitimagecomp, {
|
|
57789
|
-
urlEndpoint: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimageendpoint,
|
|
57790
|
-
publicKey: ikimagecredcontext === null || ikimagecredcontext === void 0 ? void 0 : ikimagecredcontext.ikimagepublickey,
|
|
57791
|
-
path: '/tr:w-' + sectionproperties.imagetr_w + ',h-' + sectionproperties.imagetr_h + '/' + item.image,
|
|
57792
|
-
loading: "lazy",
|
|
57793
|
-
style: {
|
|
57794
|
-
width: sectionproperties.imageInnerWidth_Height + '%',
|
|
57795
|
-
height: sectionproperties.imageInnerWidth_Height + '%',
|
|
57796
|
-
objectFit: sectionproperties.bgcovercontain == 'Cover' ? 'cover' : 'contain'
|
|
57797
|
-
}
|
|
57798
57955
|
})), item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57799
57956
|
"class": "".concat(card_cssstyles.outstockbadge) + ' allcentered '
|
|
57800
57957
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
@@ -57807,7 +57964,10 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
57807
57964
|
onClick: function onClick() {
|
|
57808
57965
|
cardonclickfunctionContext(sectionproperties === null || sectionproperties === void 0 ? void 0 : sectionproperties.onClickRoute, item.productid, props.fetchingtypeprops, item.collectionid);
|
|
57809
57966
|
},
|
|
57810
|
-
"class": "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1
|
|
57967
|
+
"class": "".concat(card_cssstyles.productNameStyles) + ' wordbreak wordbreak1 m-0 ',
|
|
57968
|
+
style: {
|
|
57969
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
57970
|
+
}
|
|
57811
57971
|
}, item.name)), /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57812
57972
|
style: {
|
|
57813
57973
|
flexDirection: 'column'
|
|
@@ -57816,16 +57976,46 @@ var Simpleproductcard = function Simpleproductcard(props) {
|
|
|
57816
57976
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57817
57977
|
"class": "row m-0 w-100 "
|
|
57818
57978
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57819
|
-
"class": "d-flex flex-row col-lg-12 m-0 p-0 align-items-center
|
|
57979
|
+
"class": "d-flex flex-row col-lg-12 m-0 p-0 align-items-center mb-1 ",
|
|
57980
|
+
style: {
|
|
57981
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
57982
|
+
}
|
|
57820
57983
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57821
|
-
"class": props.sectiontypeprops2 == 'vertical' ? ' d-flex align-items-center
|
|
57984
|
+
"class": props.sectiontypeprops2 == 'vertical' ? ' d-flex align-items-center p-0 mb-0 flex-sm-column ' : ' d-flex align-items-center p-0 mb-0 ',
|
|
57985
|
+
style: {
|
|
57986
|
+
textAlign: sectionproperties.productnamecentered == 'Centered' ? 'center' : langdetect == 'en' ? 'left' : 'right'
|
|
57987
|
+
}
|
|
57822
57988
|
}, sectionproperties.prodPriceShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
57823
57989
|
"class": "".concat(card_cssstyles.productPricestyles) + ' m-0 '
|
|
57824
|
-
}, langdetect == 'en' ?
|
|
57825
|
-
"class": " d-flex align-items-center
|
|
57990
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.hassale == 1 ? item.defaultsaleprice : item.defaultprice, ' ', langdetect == 'en' ? '' : item.currencyname), sectionproperties.prodsalePriceshow == 'Show' && item.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57991
|
+
"class": " d-flex align-items-center p-0 mb-0"
|
|
57826
57992
|
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
57827
57993
|
"class": "".concat(card_cssstyles.productSalePricestyles) + ' linethrough m-0 mr-2 ml-2 '
|
|
57828
|
-
}, langdetect == 'en' ?
|
|
57994
|
+
}, langdetect == 'en' ? item.currencyname : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : item.currencyname)))), sectionproperties.showprofitcontainer == 'Show' && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
57995
|
+
"class": "col-lg-12 p-0",
|
|
57996
|
+
style: {
|
|
57997
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
57998
|
+
}
|
|
57999
|
+
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
58000
|
+
"class": card_cssstyles.profitcontainer + ' d-flex align-items-center flex-sm-column px-2',
|
|
58001
|
+
style: {
|
|
58002
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
58003
|
+
}
|
|
58004
|
+
}, /*#__PURE__*/React__default["default"].createElement("p", {
|
|
58005
|
+
"class": ' m-0 p-0 d-flex align-items-center ',
|
|
58006
|
+
style: {
|
|
58007
|
+
justifyContent: sectionproperties.productnamecentered == 'Centered' ? 'center' : 'start'
|
|
58008
|
+
}
|
|
58009
|
+
}, /*#__PURE__*/React__default["default"].createElement("span", {
|
|
58010
|
+
style: {
|
|
58011
|
+
fontWeight: sectionproperties.profitcontainerfontweight
|
|
58012
|
+
}
|
|
58013
|
+
}, langdetect == 'en' ? sectionproperties.profitcontainercontenten : sectionproperties.profitcontainercontentar, ":", ' '), /*#__PURE__*/React__default["default"].createElement("span", {
|
|
58014
|
+
"class": "mx-1",
|
|
58015
|
+
style: {
|
|
58016
|
+
fontWeight: sectionproperties.profitcontainersecondaryfontweight
|
|
58017
|
+
}
|
|
58018
|
+
}, langdetect == 'en' ? item.currencyname : '', ' ', parseFloat(Math.round(parseInt(item.hassale == 1 ? item.defaultsaleprice : item.defaultprice) * (item.prodaffpercentprofit / 100))).toFixed(0), ' ', langdetect == 'en' ? '' : item.currencyname))))), sectionproperties.cartBtnShow == 'Show' && /*#__PURE__*/React__default["default"].createElement("p", {
|
|
57829
58019
|
"class": "".concat(card_cssstyles.cart_btn) + ' m-0 p-0 d-flex align-items-center justify-content-center mt-1 ',
|
|
57830
58020
|
onClick: function onClick() {
|
|
57831
58021
|
if (item.productquantity < 1 && sectionproperties.showoutofstock == 'Show' && item.quantavailtype == 'limit' && item.hasvariants == 0) {
|