tabexseriescomponents 0.0.287 → 0.0.289
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 +340 -221
- package/dist/index.esm.js +341 -222
- package/dist/index.umd.js +341 -222
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -123,7 +123,7 @@ import { AiOutlinePhone } from '@react-icons/all-files/ai/AiOutlinePhone';
|
|
|
123
123
|
import { GoLocation } from '@react-icons/all-files/go/GoLocation';
|
|
124
124
|
import { RiRoadMapLine } from '@react-icons/all-files/ri/RiRoadMapLine';
|
|
125
125
|
import { HiOutlineClock } from '@react-icons/all-files/hi/HiOutlineClock';
|
|
126
|
-
import Select$
|
|
126
|
+
import Select$4 from 'react-select';
|
|
127
127
|
import ReactPlayer from 'react-player';
|
|
128
128
|
import BackgroundSlideshow from 'react-background-slideshow';
|
|
129
129
|
import _extends from '@babel/runtime/helpers/extends';
|
|
@@ -477,8 +477,8 @@ function styleInject(css, ref) {
|
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
|
|
480
|
-
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";
|
|
481
|
-
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"};
|
|
480
|
+
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";
|
|
481
|
+
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"};
|
|
482
482
|
styleInject(css_248z$L);
|
|
483
483
|
|
|
484
484
|
var GoogleLoginButton = function GoogleLoginButton(props) {
|
|
@@ -579,40 +579,44 @@ var Login = function Login(props) {
|
|
|
579
579
|
_useState2 = _slicedToArray(_useState, 2),
|
|
580
580
|
statusreason = _useState2[0];
|
|
581
581
|
_useState2[1];
|
|
582
|
-
var _useState3 = useState(
|
|
582
|
+
var _useState3 = useState(false),
|
|
583
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
584
|
+
showpassword = _useState4[0],
|
|
585
|
+
setshowpassword = _useState4[1];
|
|
586
|
+
var _useState5 = useState({
|
|
583
587
|
instapikey: instapikey,
|
|
584
588
|
email: '',
|
|
585
589
|
code: '',
|
|
586
590
|
newpassword: '',
|
|
587
591
|
confirmnewpassword: ''
|
|
588
592
|
}),
|
|
589
|
-
|
|
590
|
-
forgotpasswordpayload =
|
|
591
|
-
setforgotpasswordpayload =
|
|
592
|
-
var
|
|
593
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
594
|
+
forgotpasswordpayload = _useState6[0],
|
|
595
|
+
setforgotpasswordpayload = _useState6[1];
|
|
596
|
+
var _useState7 = useState({
|
|
593
597
|
instapikey: instapikey,
|
|
594
598
|
email: '',
|
|
595
599
|
password: ''
|
|
596
600
|
}),
|
|
597
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
598
|
-
payloadobj = _useState6[0],
|
|
599
|
-
setpayloadobj = _useState6[1];
|
|
600
|
-
var _useState7 = useState('send'),
|
|
601
601
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
var _useState9 = useState(
|
|
602
|
+
payloadobj = _useState8[0],
|
|
603
|
+
setpayloadobj = _useState8[1];
|
|
604
|
+
var _useState9 = useState('send'),
|
|
605
605
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
var _useState11 = useState(
|
|
609
|
-
_useState12 = _slicedToArray(_useState11, 2)
|
|
610
|
-
_useState12[0]
|
|
611
|
-
|
|
606
|
+
forgetpasswordstage = _useState10[0],
|
|
607
|
+
setforgetpasswordstage = _useState10[1];
|
|
608
|
+
var _useState11 = useState(false),
|
|
609
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
610
|
+
forgetpasswordmodal = _useState12[0],
|
|
611
|
+
setforgetpasswordmodal = _useState12[1];
|
|
612
612
|
var _useState13 = useState(''),
|
|
613
|
-
_useState14 = _slicedToArray(_useState13, 2)
|
|
614
|
-
|
|
615
|
-
|
|
613
|
+
_useState14 = _slicedToArray(_useState13, 2);
|
|
614
|
+
_useState14[0];
|
|
615
|
+
var setCurrentPageId = _useState14[1];
|
|
616
|
+
var _useState15 = useState(''),
|
|
617
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
618
|
+
sectionproperties = _useState16[0],
|
|
619
|
+
setsectionproperties = _useState16[1];
|
|
616
620
|
useEffect(function () {
|
|
617
621
|
var cartindex = templatepropcontext.pagesnprop.findIndex(function (x) {
|
|
618
622
|
return x.staticpageid == '6218bccb77283';
|
|
@@ -798,9 +802,16 @@ var Login = function Login(props) {
|
|
|
798
802
|
className: "col-lg-12 col-md-12 col-sm-12 p-sm-0"
|
|
799
803
|
}, /*#__PURE__*/React.createElement("label", {
|
|
800
804
|
className: "".concat(loginstyles2.logininputLabel) + ' text-transform-none d-flex justify-content-start '
|
|
801
|
-
}, langdetect == 'en' ? 'Password' : 'كلمة السر'), /*#__PURE__*/React.createElement("
|
|
805
|
+
}, langdetect == 'en' ? 'Password' : 'كلمة السر'), /*#__PURE__*/React.createElement("div", {
|
|
806
|
+
onClick: function onClick() {
|
|
807
|
+
setshowpassword(!showpassword);
|
|
808
|
+
},
|
|
809
|
+
className: langdetect == 'en' ? loginstyles$1.showpassword_input_icon : loginstyles$1.showpassword_input_icontrans
|
|
810
|
+
}, /*#__PURE__*/React.createElement("i", {
|
|
811
|
+
className: "fa fa-eye h-100 d-flex align-items-center justify-content-center"
|
|
812
|
+
})), /*#__PURE__*/React.createElement("input", {
|
|
802
813
|
className: "".concat(loginstyles$1.form_control, " ").concat(loginstyles2.form_control),
|
|
803
|
-
type:
|
|
814
|
+
type: showpassword ? 'text' : 'password',
|
|
804
815
|
textplaceholder: "",
|
|
805
816
|
value: payloadobj.password,
|
|
806
817
|
onChange: function onChange(event) {
|
|
@@ -1064,9 +1075,137 @@ var Imagekitimagecomp = function Imagekitimagecomp(props) {
|
|
|
1064
1075
|
}));
|
|
1065
1076
|
};
|
|
1066
1077
|
|
|
1067
|
-
|
|
1078
|
+
var css_248z$H = "@media screen and (max-width: 800px) {\n .signup-module_rightContainer__yEcoL,\n .signup-module_rightContainerTrans__fkdBH {\n border-top-right-radius: 0 !important;\n border-bottom-right-radius: 15px !important;\n border-bottom-left-radius: 15px !important;\n }\n .signup-module_rightContainerText__-pvN- {\n font-size: 23px !important;\n }\n}\n.signup-module_form_control__7s76W:focus {\n -webkit-animation: signup-module_anim-shadow__CsxhG 0.5s ease-in-out forwards;\n animation: signup-module_anim-shadow__CsxhG 0.5s ease-in-out forwards;\n}\n.signup-module_form_control__7s76W:focus + .signup-module_login_input_icon__RDTS0 {\n padding-left: 20px;\n}\n/* Forms */\n.signup-module_form_control__7s76W {\n display: block;\n width: 100%;\n /* height: 35px; */\n /* font-size: 1rem; */\n /* color: var(--cardtitle); */\n /* background: no-repeat center bottom, center calc(100% - 1px); */\n /* background-size: 0 100%, 100% 100%; */\n background-clip: padding-box;\n /* font-size: 14px; */\n /* transition: background 0s ease-out; */\n /* border: 0; */\n padding: 0 15px;\n font-weight: 500;\n display: flex;\n align-items: center;\n position: relative;\n}\n@media screen and (prefers-reduced-motion: reduce) {\n .signup-module_form_control__7s76W {\n transition: none;\n }\n}\n.signup-module_form_control__7s76W::-ms-expand {\n background-color: transparent;\n border: 0;\n}\n.signup-module_form_control__7s76W:focus {\n outline: 0;\n}\n.signup-module_form_control__7s76W::placeholder {\n opacity: 1;\n}\n.signup-module_form_control__7s76W:disabled,\n.signup-module_form_control__7s76W[readonly] {\n background-color: #e9ecef;\n opacity: 1;\n cursor: not-allowed;\n}\ntextarea.signup-module_form_control__7s76W {\n height: auto;\n}\n.signup-module_form_control__7s76W:focus {\n /* background-size: 100% 100%, 100% 100%; */\n transition-duration: 0.3s;\n box-shadow: none;\n}\n.signup-module_form_control__7s76W::-moz-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.signup-module_form_control__7s76W:-ms-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.signup-module_form_control__7s76W::-webkit-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.signup-module_form_control__7s76W {\n /* background-image: linear-gradient(to top, #000 2px, rgba(156, 39, 176, 0) 2px), linear-gradient(to top, #d2d2d2 1px, rgba(210, 210, 210, 0) 1px); */\n}\n.signup-module_form_control_border_none__HjUMS {\n background-image: none;\n}\n.signup-module_form_control__7s76W.signup-module_disabled__h55ao,\n.signup-module_form_control__7s76W:disabled,\n.signup-module_form_control__7s76W[disabled] {\n /* background-image: linear-gradient(to right, #d2d2d2 0%, #d2d2d2 30%, transparent 30%, transparent 100%); */\n /* background-repeat: repeat-x;\n background-size: 3px 1px; */\n cursor: not-allowed;\n}\n@media screen and (max-width: 500px) {\n .signup-module_form_control__7s76W {\n /* padding: 0 5px !important; */\n }\n .signup-module_login_input_icon__RDTS0 {\n padding-left: 0 !important;\n }\n .signup-module_rightContainer__yEcoL {\n border-radius: 15px 15px 0 0 !important;\n }\n .signup-module_leftcontainer__bqfnN {\n border-radius: 15px 15px 0 0 !important;\n }\n}\n.signup-module_form_controltextarea__-LGz6{\n min-height: 10vh !important;\n}\n.signup-module_checkbox__8ejBx {\n --border: #022648;\n --border-hover: #959ed0;\n --tick: #fff;\n position: relative;\n /* color: var(--cardheader); */\n}\n.signup-module_checkbox_label__d84Q2 {\n font-size: 16px;\n text-transform: capitalize;\n font-weight: 500;\n cursor: pointer;\n}\n.signup-module_checkbox__8ejBx:hover {\n /* color: var(--border-hover); */\n}\n.signup-module_checkbox__8ejBx input,\n.signup-module_checkbox__8ejBx svg {\n width: 16px;\n height: 16px;\n display: block;\n}\n.signup-module_checkbox_sub__WQLUX input {\n width: 15px;\n height: 15px;\n}\n.signup-module_checkbox__8ejBx input {\n -webkit-appearance: none;\n -moz-appearance: none;\n position: relative;\n outline: none;\n background: white;\n border: none;\n margin: 0;\n padding: 0;\n cursor: pointer;\n border-radius: 4px;\n transition: box-shadow 0.3s;\n box-shadow: inset 0 0 0 var(--s, 1px) var(--b, var(--border));\n}\n.signup-module_checkbox__8ejBx input:disabled {\n cursor: not-allowed;\n}\n.signup-module_checkbox__8ejBx input:hover {\n /* --s: 2px; */\n /* --b: var(--border-hover); */\n}\n.signup-module_checkbox__8ejBx input:checked {\n /* --b: var(--secondary); */\n}\n.signup-module_checkbox__8ejBx svg {\n pointer-events: none;\n fill: none;\n stroke-width: 2px;\n stroke-linecap: round;\n stroke-linejoin: round;\n /* stroke: var(--stroke, var(--secondary)); */\n position: absolute;\n top: 0;\n left: 0;\n width: 16px;\n height: 21px;\n transform: scale(var(--scale, 1)) translateZ(0);\n}\n.signup-module_checkbox_sub__WQLUX svg {\n pointer-events: none;\n fill: none;\n stroke-width: 2px;\n stroke-linecap: round;\n stroke-linejoin: round;\n stroke: var(--stroke, var(--secondary));\n position: absolute;\n top: 0;\n left: 0;\n width: 16px;\n height: 21px;\n transform: scale(var(--scale, 1)) translateZ(0);\n}\n.signup-module_checkboxtranslated__4xHR- svg {\n right: 0;\n}\n.signup-module_checkbox__8ejBx input:checked {\n --s: 2px;\n transition-delay: 0.4s;\n}\n.signup-module_checkbox__8ejBx input:checked + svg {\n --a: 16.1 86.12;\n --o: 102.22;\n}\n.signup-module_checkbox__8ejBx svg {\n stroke-dasharray: var(--a, 86.12);\n stroke-dashoffset: var(--o, 86.12);\n transition: stroke-dasharray 0.6s, stroke-dashoffset 0.6s;\n}\n";
|
|
1079
|
+
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-"};
|
|
1080
|
+
styleInject(css_248z$H);
|
|
1081
|
+
|
|
1082
|
+
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; }
|
|
1083
|
+
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(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; }
|
|
1084
|
+
var defaultstyles = {
|
|
1085
|
+
option: function option(provided, state) {
|
|
1086
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1087
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1088
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1089
|
+
padding: 5,
|
|
1090
|
+
textTransform: 'capitalize',
|
|
1091
|
+
color: state.isSelected ? '#eac435' : 'black',
|
|
1092
|
+
transition: '.3s',
|
|
1093
|
+
'&:hover': {
|
|
1094
|
+
// color: '#eac435',
|
|
1095
|
+
cursor: 'pointer'
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
},
|
|
1099
|
+
control: function control() {
|
|
1100
|
+
return {
|
|
1101
|
+
borderBottom: '1px solid #ccc',
|
|
1102
|
+
backgroundColor: 'white',
|
|
1103
|
+
display: 'flex',
|
|
1104
|
+
cursor: 'pointer',
|
|
1105
|
+
padding: 0,
|
|
1106
|
+
transition: '.3s',
|
|
1107
|
+
'&:hover': {
|
|
1108
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1109
|
+
// borderRadius: '10px',
|
|
1110
|
+
}
|
|
1111
|
+
};
|
|
1112
|
+
},
|
|
1113
|
+
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1114
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1115
|
+
'&:hover': {
|
|
1116
|
+
// color: '#eac435',
|
|
1117
|
+
}
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
1121
|
+
var defaultstylestranslated = {
|
|
1122
|
+
option: function option(provided, state) {
|
|
1123
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1124
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1125
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1126
|
+
padding: 5,
|
|
1127
|
+
textTransform: 'capitalize',
|
|
1128
|
+
// color: state.isSelected ? '#eac435' : '#022648',
|
|
1129
|
+
color: state.isSelected ? '#eac435' : 'black',
|
|
1130
|
+
transition: '.3s',
|
|
1131
|
+
textAlign: 'right',
|
|
1132
|
+
'&:hover': {
|
|
1133
|
+
// color: '#eac435',
|
|
1134
|
+
cursor: 'pointer'
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
},
|
|
1138
|
+
control: function control() {
|
|
1139
|
+
return {
|
|
1140
|
+
borderBottom: '1px solid #ccc',
|
|
1141
|
+
backgroundColor: 'white',
|
|
1142
|
+
display: 'flex',
|
|
1143
|
+
cursor: 'pointer',
|
|
1144
|
+
padding: 0,
|
|
1145
|
+
transition: '.3s',
|
|
1146
|
+
textAlign: 'right',
|
|
1147
|
+
'&:hover': {
|
|
1148
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1149
|
+
// borderRadius: '10px',
|
|
1150
|
+
}
|
|
1151
|
+
};
|
|
1152
|
+
},
|
|
1153
|
+
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1154
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1155
|
+
'&:hover': {
|
|
1156
|
+
// color: '#eac435',
|
|
1157
|
+
}
|
|
1158
|
+
});
|
|
1159
|
+
},
|
|
1160
|
+
placeholder: function placeholder(provided, state) {
|
|
1161
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1162
|
+
textAlign: 'right'
|
|
1163
|
+
});
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
var defaultstylesnone = {
|
|
1167
|
+
option: function option(provided, state) {
|
|
1168
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1169
|
+
borderBottom: '1px solid #e6e6e6',
|
|
1170
|
+
backgroundColor: state.isSelected ? '' : '',
|
|
1171
|
+
padding: 5,
|
|
1172
|
+
textTransform: 'capitalize',
|
|
1173
|
+
color: state.isSelected ? '#eac435' : 'black',
|
|
1174
|
+
transition: '.3s',
|
|
1175
|
+
'&:hover': {
|
|
1176
|
+
// color: '#eac435',
|
|
1177
|
+
cursor: 'pointer'
|
|
1178
|
+
}
|
|
1179
|
+
});
|
|
1180
|
+
},
|
|
1181
|
+
control: function control() {
|
|
1182
|
+
return {
|
|
1183
|
+
borderBottom: 'none',
|
|
1184
|
+
backgroundColor: 'transparent',
|
|
1185
|
+
display: 'flex',
|
|
1186
|
+
cursor: 'pointer',
|
|
1187
|
+
padding: 0,
|
|
1188
|
+
transition: '.3s',
|
|
1189
|
+
'&:hover': {
|
|
1190
|
+
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
1191
|
+
// borderRadius: '10px',
|
|
1192
|
+
}
|
|
1193
|
+
};
|
|
1194
|
+
},
|
|
1195
|
+
dropdownIndicator: function dropdownIndicator(provided) {
|
|
1196
|
+
return _objectSpread$29(_objectSpread$29({}, provided), {}, {
|
|
1197
|
+
'&:hover': {
|
|
1198
|
+
// color: '#eac435',
|
|
1199
|
+
}
|
|
1200
|
+
});
|
|
1201
|
+
}
|
|
1202
|
+
};
|
|
1203
|
+
|
|
1204
|
+
var Select$3 = /*#__PURE__*/React.lazy(function () {
|
|
1205
|
+
return import('react-select');
|
|
1206
|
+
});
|
|
1068
1207
|
var Variantoptions = function Variantoptions(props) {
|
|
1069
|
-
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2;
|
|
1208
|
+
var _css, _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _ProductInfoObj$data, _ProductInfoObj$data$, _ProductInfoObj$data$2, _ProductInfoObj$data2, _ProductInfoObj$data3, _ProductInfoObj$data4;
|
|
1070
1209
|
var lang = props.actions.lang;
|
|
1071
1210
|
var langdetect = props.actions.langdetect;
|
|
1072
1211
|
var selectproductoptionvalue = props.actions.selectproductoptionvalue;
|
|
@@ -1075,9 +1214,30 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1075
1214
|
var sectionproperties = props.actions.sectionproperties;
|
|
1076
1215
|
props.actions.ikimagecredcontext;
|
|
1077
1216
|
var ProductInfoObj = props.actions.ProductInfoObj;
|
|
1217
|
+
var formstyles = {
|
|
1218
|
+
input_label_name: css({
|
|
1219
|
+
color: sectionproperties.form_labelcolor,
|
|
1220
|
+
textTransform: sectionproperties.form_labeltexttransform,
|
|
1221
|
+
fontWeight: sectionproperties.form_labelfontweight,
|
|
1222
|
+
fontSize: sectionproperties.form_labelfontsize + 'px',
|
|
1223
|
+
marginBottom: sectionproperties.inputfieldbordertype == 'All' ? 10 : 0
|
|
1224
|
+
}),
|
|
1225
|
+
form_control: css((_css = {
|
|
1226
|
+
background: 'transparent',
|
|
1227
|
+
color: sectionproperties.inputfieldcolor,
|
|
1228
|
+
fontSize: sectionproperties.inputfieldfontsize + 'px',
|
|
1229
|
+
position: 'relative',
|
|
1230
|
+
display: 'flex',
|
|
1231
|
+
alignItems: 'center'
|
|
1232
|
+
}, _defineProperty(_css, "display", 'block'), _defineProperty(_css, "width", '100%'), _defineProperty(_css, "padding", '0 10px'), _defineProperty(_css, "transition", '.3s'), _defineProperty(_css, "border", sectionproperties.inputfieldbordertype == 'All' ? sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor : 0), _defineProperty(_css, "borderBottom", sectionproperties.inputfieldborderWidth + 'px solid ' + sectionproperties.inputfieldborderColor), _defineProperty(_css, "borderRadius", sectionproperties.inputfieldborderradius + 'px'), _defineProperty(_css, "height", sectionproperties.inputfieldheight + 'px'), _defineProperty(_css, "background", sectionproperties.input_bgcolor), _defineProperty(_css, "color", sectionproperties.inputfieldcolor), _defineProperty(_css, ':focus', {
|
|
1233
|
+
borderColor: sectionproperties.inputfeildbordercoloronfocus
|
|
1234
|
+
}), _defineProperty(_css, ':focus .login_input_icon', {
|
|
1235
|
+
color: sectionproperties.inputfeildbordercoloronfocus
|
|
1236
|
+
}), _css))
|
|
1237
|
+
};
|
|
1078
1238
|
return /*#__PURE__*/React.createElement(React.Fragment, null, (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.hasvariants) == 1 && sectionproperties.productInformationType == 'Product/Service Information' && /*#__PURE__*/React.createElement("div", {
|
|
1079
1239
|
className: "row m-0 w-100 d-flex align-items-start"
|
|
1080
|
-
}, ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
|
|
1240
|
+
}, sectionproperties.variantstyle == 'Slider' && (ProductInfoObj === null || ProductInfoObj === void 0 ? void 0 : (_ProductInfoObj$data = ProductInfoObj.data) === null || _ProductInfoObj$data === void 0 ? void 0 : (_ProductInfoObj$data$ = _ProductInfoObj$data.productinfo) === null || _ProductInfoObj$data$ === void 0 ? void 0 : (_ProductInfoObj$data$2 = _ProductInfoObj$data$.productoptions) === null || _ProductInfoObj$data$2 === void 0 ? void 0 : _ProductInfoObj$data$2.map(function (item, index) {
|
|
1081
1241
|
return /*#__PURE__*/React.createElement("div", {
|
|
1082
1242
|
className: "col-lg-12 p-0 mb-3 d-flex justify-content-start"
|
|
1083
1243
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1201,7 +1361,74 @@ var Variantoptions = function Variantoptions(props) {
|
|
|
1201
1361
|
}, langdetect == 'en' ? optionvaluesitem.valuename : optionvaluesitem.valuename_ar));
|
|
1202
1362
|
}
|
|
1203
1363
|
}))));
|
|
1204
|
-
})))
|
|
1364
|
+
})), 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) {
|
|
1365
|
+
var orgselectoptions = [];
|
|
1366
|
+
var selecteditemid = null;
|
|
1367
|
+
var placeholdervalue = '';
|
|
1368
|
+
placeholdervalue = 'Choose' + ' ' + (langdetect == 'en' ? item.optionname : item.optionname_ar);
|
|
1369
|
+
if (item.optionvalues != undefined && Array.isArray(item.optionvalues)) {
|
|
1370
|
+
orgselectoptions = item.optionvalues;
|
|
1371
|
+
// optionvaluesitem.isselected
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
orgselectoptions.forEach(function (getselcitem, getselindex) {
|
|
1375
|
+
if (getselcitem.isselected == 1) {
|
|
1376
|
+
selecteditemid = getselcitem.valueid;
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
1379
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1380
|
+
"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'
|
|
1381
|
+
}, /*#__PURE__*/React.createElement("label", {
|
|
1382
|
+
className: ' d-flex align-items-start mb-2 ',
|
|
1383
|
+
style: {
|
|
1384
|
+
color: sectionproperties.varianttitle_color,
|
|
1385
|
+
fontWeight: sectionproperties.varianttitle_fontweight,
|
|
1386
|
+
textTransform: sectionproperties.varianttitle_texttransform,
|
|
1387
|
+
fontSize: sectionproperties.varianttitle_fontSize + 'px'
|
|
1388
|
+
}
|
|
1389
|
+
}, langdetect == 'en' ? item.optionname : item.optionname_ar), /*#__PURE__*/React.createElement("div", {
|
|
1390
|
+
style: {
|
|
1391
|
+
width: '100%'
|
|
1392
|
+
},
|
|
1393
|
+
className: "".concat(loginstyles.form_control, " ").concat(formstyles.form_control) + ' variantselectbox '
|
|
1394
|
+
}, /*#__PURE__*/React.createElement(Select$3, {
|
|
1395
|
+
options: orgselectoptions,
|
|
1396
|
+
getOptionLabel: function getOptionLabel(option) {
|
|
1397
|
+
var crname = '';
|
|
1398
|
+
if (langdetect == 'en') {
|
|
1399
|
+
crname = option.valuename;
|
|
1400
|
+
} else if (langdetect == 'ar') {
|
|
1401
|
+
crname = option.valuename_ar;
|
|
1402
|
+
}
|
|
1403
|
+
return crname;
|
|
1404
|
+
},
|
|
1405
|
+
getOptionValue: function getOptionValue(option) {
|
|
1406
|
+
return option.valueid;
|
|
1407
|
+
},
|
|
1408
|
+
value: orgselectoptions.filter(function (option) {
|
|
1409
|
+
return option.valueid == selecteditemid;
|
|
1410
|
+
}),
|
|
1411
|
+
onChange: function onChange(optionvaluesitem) {
|
|
1412
|
+
var _orgselectoptions;
|
|
1413
|
+
var optionvaluesindex = null;
|
|
1414
|
+
(_orgselectoptions = orgselectoptions) === null || _orgselectoptions === void 0 ? void 0 : _orgselectoptions.forEach(function (tempitm, tempind) {
|
|
1415
|
+
if (tempitm.valueid == optionvaluesitem.valueid) {
|
|
1416
|
+
optionvaluesindex = tempind;
|
|
1417
|
+
}
|
|
1418
|
+
});
|
|
1419
|
+
if (optionvaluesindex != null) {
|
|
1420
|
+
if (optionvaluesitem.isenabled == 1) {
|
|
1421
|
+
selectproductoptionvalue(index, optionvaluesitem, optionvaluesindex);
|
|
1422
|
+
} else {
|
|
1423
|
+
clearchoosenvaluesbutkeepcurrentvalue(index, optionvaluesitem, optionvaluesindex);
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
styles: defaultstylesnone,
|
|
1428
|
+
placeholder: placeholdervalue,
|
|
1429
|
+
isSearchable: true
|
|
1430
|
+
})));
|
|
1431
|
+
}))));
|
|
1205
1432
|
};
|
|
1206
1433
|
|
|
1207
1434
|
//productidprops
|
|
@@ -1295,12 +1522,8 @@ var ProductHeaderPricing = function ProductHeaderPricing(props) {
|
|
|
1295
1522
|
}, '-' + 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) + '%'))))));
|
|
1296
1523
|
};
|
|
1297
1524
|
|
|
1298
|
-
|
|
1299
|
-
var
|
|
1300
|
-
styleInject(css_248z$H);
|
|
1301
|
-
|
|
1302
|
-
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; }
|
|
1303
|
-
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(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; }
|
|
1525
|
+
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; }
|
|
1526
|
+
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(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; }
|
|
1304
1527
|
var ProductExtraFields = function ProductExtraFields(props) {
|
|
1305
1528
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _css, _fetchProductInfoQuer4, _fetchProductInfoQuer5, _fetchProductInfoQuer6, _fetchProductInfoQuer7;
|
|
1306
1529
|
props.actions.lang;
|
|
@@ -1354,9 +1577,9 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1354
1577
|
});
|
|
1355
1578
|
}
|
|
1356
1579
|
setproductextravaluesarray(_toConsumableArray(tempproductextravaluesarray));
|
|
1357
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
1580
|
+
var tempaddtocardpayloadobj = _objectSpread$28({}, addtocardpayloadobj);
|
|
1358
1581
|
tempaddtocardpayloadobj.extrafields = tempproductextravaluesarray;
|
|
1359
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
1582
|
+
setaddtocardpayloadobj(_objectSpread$28({}, tempaddtocardpayloadobj));
|
|
1360
1583
|
};
|
|
1361
1584
|
var formstyles = {
|
|
1362
1585
|
loginbtn: css({
|
|
@@ -1539,8 +1762,8 @@ var ProductExtraFields = function ProductExtraFields(props) {
|
|
|
1539
1762
|
}))));
|
|
1540
1763
|
};
|
|
1541
1764
|
|
|
1542
|
-
function ownKeys$
|
|
1543
|
-
function _objectSpread$
|
|
1765
|
+
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; }
|
|
1766
|
+
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(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; }
|
|
1544
1767
|
var Product_itemtype = function Product_itemtype(props) {
|
|
1545
1768
|
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;
|
|
1546
1769
|
var lang = props.actions.lang;
|
|
@@ -1846,11 +2069,11 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1846
2069
|
}, /*#__PURE__*/React.createElement("span", {
|
|
1847
2070
|
className: "".concat(productinfo_cssstyles.minus_quantitybtn_icon_container) + ' m-1 ',
|
|
1848
2071
|
onClick: function onClick() {
|
|
1849
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2072
|
+
var tempaddtocardpayloadobj = _objectSpread$27({}, addtocardpayloadobj);
|
|
1850
2073
|
if (tempaddtocardpayloadobj.quantity > 0) {
|
|
1851
2074
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity - 1;
|
|
1852
2075
|
}
|
|
1853
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2076
|
+
setaddtocardpayloadobj(_objectSpread$27({}, tempaddtocardpayloadobj));
|
|
1854
2077
|
}
|
|
1855
2078
|
}, /*#__PURE__*/React.createElement("i", {
|
|
1856
2079
|
className: "fa fa-chevron-down",
|
|
@@ -1862,9 +2085,9 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1862
2085
|
}, addtocardpayloadobj.quantity), /*#__PURE__*/React.createElement("span", {
|
|
1863
2086
|
className: "".concat(productinfo_cssstyles.add_quantitybtn_icon_container) + ' m-1 ',
|
|
1864
2087
|
onClick: function onClick() {
|
|
1865
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
2088
|
+
var tempaddtocardpayloadobj = _objectSpread$27({}, addtocardpayloadobj);
|
|
1866
2089
|
tempaddtocardpayloadobj.quantity = tempaddtocardpayloadobj.quantity + 1;
|
|
1867
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2090
|
+
setaddtocardpayloadobj(_objectSpread$27({}, tempaddtocardpayloadobj));
|
|
1868
2091
|
}
|
|
1869
2092
|
}, /*#__PURE__*/React.createElement("i", {
|
|
1870
2093
|
className: "fa fa-chevron-up",
|
|
@@ -1902,7 +2125,7 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
1902
2125
|
size: sectionproperties.cartBtn_iconFontSize
|
|
1903
2126
|
}), sectionproperties.carticonstyle == 'Shopping cart 2' && /*#__PURE__*/React.createElement(MdAddShoppingCart, {
|
|
1904
2127
|
size: sectionproperties.cartBtn_iconFontSize
|
|
1905
|
-
})),
|
|
2128
|
+
})), langdetect == 'en' ? sectionproperties.cartBtnContentenglish : sectionproperties.cartBtnContentarabic), AddtoCartMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
|
|
1906
2129
|
className: ' d-flex align-items-center justify-content-center '
|
|
1907
2130
|
}, /*#__PURE__*/React.createElement(CircularProgress, {
|
|
1908
2131
|
color: "white",
|
|
@@ -2066,8 +2289,8 @@ var Product_itemtype = function Product_itemtype(props) {
|
|
|
2066
2289
|
}, StoreInfoprops())))));
|
|
2067
2290
|
};
|
|
2068
2291
|
|
|
2069
|
-
function ownKeys$
|
|
2070
|
-
function _objectSpread$
|
|
2292
|
+
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; }
|
|
2293
|
+
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(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; }
|
|
2071
2294
|
var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
2072
2295
|
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;
|
|
2073
2296
|
var langdetect = props.actions.langdetect;
|
|
@@ -2108,7 +2331,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2108
2331
|
slots = _useState6[0],
|
|
2109
2332
|
setslots = _useState6[1];
|
|
2110
2333
|
useEffect(function () {
|
|
2111
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2334
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2112
2335
|
item_type: 'service'
|
|
2113
2336
|
}));
|
|
2114
2337
|
}, [tabsarray]);
|
|
@@ -2120,16 +2343,16 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2120
2343
|
if (diffDays.toString() != 'NaN') {
|
|
2121
2344
|
if (date2 <= date1) {
|
|
2122
2345
|
NotificationManager.warning('', 'Please choose another date.');
|
|
2123
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2346
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2124
2347
|
quantity: 0
|
|
2125
2348
|
}));
|
|
2126
2349
|
} else {
|
|
2127
2350
|
if (fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant >= diffDays && fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant <= diffDays) {
|
|
2128
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2351
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2129
2352
|
quantity: diffDays
|
|
2130
2353
|
}));
|
|
2131
2354
|
} else {
|
|
2132
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2355
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2133
2356
|
quantity: 0
|
|
2134
2357
|
}));
|
|
2135
2358
|
NotificationManager.warning('', 'Max: ' + fetchProductInfoQueryContext.data.data.productinfo.maximumproductquant + ', Min: ' + fetchProductInfoQueryContext.data.data.productinfo.minimumproductquant);
|
|
@@ -2265,7 +2488,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2265
2488
|
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,
|
|
2266
2489
|
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,
|
|
2267
2490
|
onChange: function onChange(event) {
|
|
2268
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2491
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2269
2492
|
from: event.target.value
|
|
2270
2493
|
}));
|
|
2271
2494
|
}
|
|
@@ -2285,7 +2508,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2285
2508
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2286
2509
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2287
2510
|
onChange: function onChange(event) {
|
|
2288
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2511
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2289
2512
|
to: event.target.value
|
|
2290
2513
|
}));
|
|
2291
2514
|
}
|
|
@@ -2305,7 +2528,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2305
2528
|
min: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationstarts,
|
|
2306
2529
|
max: fetchProductInfoQueryContext.data.data.productinfo.serviceinfo.reservationends,
|
|
2307
2530
|
onChange: function onChange(event) {
|
|
2308
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2531
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2309
2532
|
date: event.target.value
|
|
2310
2533
|
}));
|
|
2311
2534
|
setcurrentmutatestate('/fetchserviceslots');
|
|
@@ -2356,7 +2579,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2356
2579
|
color: ischoosed ? sectionproperties.generalbtn_bgColortransparent == 'Transparent' ? sectionproperties.generalbtn_textColoronhover : sectionproperties.generalbtn_textColor : ''
|
|
2357
2580
|
},
|
|
2358
2581
|
onClick: function onClick() {
|
|
2359
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2582
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2360
2583
|
time: item.slot
|
|
2361
2584
|
}));
|
|
2362
2585
|
}
|
|
@@ -2365,7 +2588,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2365
2588
|
}, /*#__PURE__*/React.createElement("button", {
|
|
2366
2589
|
"class": TabsStyles.booknow_btn_resp + ' allcentered ',
|
|
2367
2590
|
onClick: function onClick() {
|
|
2368
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2591
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2369
2592
|
time: item.slot
|
|
2370
2593
|
}));
|
|
2371
2594
|
}
|
|
@@ -2407,7 +2630,7 @@ var Serviceinfotabs = function Serviceinfotabs(props) {
|
|
|
2407
2630
|
"class": ischoosed == true ? TabsStyles.timeSlotContainer_active + ' allcentered cursor-pointer px-1 ' : TabsStyles.timeSlotContainer + ' allcentered cursor-pointer px-1 ',
|
|
2408
2631
|
style: {},
|
|
2409
2632
|
onClick: function onClick() {
|
|
2410
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
2633
|
+
setaddtocardpayloadobj(_objectSpread$26(_objectSpread$26({}, addtocardpayloadobj), {}, {
|
|
2411
2634
|
time: item.slot
|
|
2412
2635
|
}));
|
|
2413
2636
|
}
|
|
@@ -2992,8 +3215,8 @@ var Service_itemtype = function Service_itemtype(props) {
|
|
|
2992
3215
|
}, StoreInfoprops()))));
|
|
2993
3216
|
};
|
|
2994
3217
|
|
|
2995
|
-
function ownKeys$
|
|
2996
|
-
function _objectSpread$
|
|
3218
|
+
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; }
|
|
3219
|
+
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(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; }
|
|
2997
3220
|
var AddReview = function AddReview(props) {
|
|
2998
3221
|
var _css;
|
|
2999
3222
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -3047,7 +3270,7 @@ var AddReview = function AddReview(props) {
|
|
|
3047
3270
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
3048
3271
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3049
3272
|
});
|
|
3050
|
-
setsectionproperties(_objectSpread$
|
|
3273
|
+
setsectionproperties(_objectSpread$25({}, secpropobj));
|
|
3051
3274
|
}
|
|
3052
3275
|
}, [StatePagePropertiesContext]);
|
|
3053
3276
|
useEffect(function () {
|
|
@@ -3056,7 +3279,7 @@ var AddReview = function AddReview(props) {
|
|
|
3056
3279
|
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) {
|
|
3057
3280
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3058
3281
|
});
|
|
3059
|
-
setsectionproperties(_objectSpread$
|
|
3282
|
+
setsectionproperties(_objectSpread$25({}, secpropobj));
|
|
3060
3283
|
}, [pageindexcontext]);
|
|
3061
3284
|
var reviewstyles = {
|
|
3062
3285
|
submitreviewbtn: css({
|
|
@@ -3182,9 +3405,9 @@ var AddReview = function AddReview(props) {
|
|
|
3182
3405
|
}),
|
|
3183
3406
|
activeColor: "#ffd700",
|
|
3184
3407
|
onChange: function onChange(event) {
|
|
3185
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3408
|
+
var tempreviewpayloadobj = _objectSpread$25({}, reviewpayloadobj);
|
|
3186
3409
|
tempreviewpayloadobj.reviewrate = event;
|
|
3187
|
-
setreviewpayloadobj(_objectSpread$
|
|
3410
|
+
setreviewpayloadobj(_objectSpread$25({}, tempreviewpayloadobj));
|
|
3188
3411
|
}
|
|
3189
3412
|
})))))), /*#__PURE__*/React.createElement("div", {
|
|
3190
3413
|
"class": "col-lg-12"
|
|
@@ -3198,9 +3421,9 @@ var AddReview = function AddReview(props) {
|
|
|
3198
3421
|
"class": reviewstyles.form_control,
|
|
3199
3422
|
value: reviewpayloadobj.reviewname,
|
|
3200
3423
|
onChange: function onChange(event) {
|
|
3201
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3424
|
+
var tempreviewpayloadobj = _objectSpread$25({}, reviewpayloadobj);
|
|
3202
3425
|
tempreviewpayloadobj.reviewname = event.target.value;
|
|
3203
|
-
setreviewpayloadobj(_objectSpread$
|
|
3426
|
+
setreviewpayloadobj(_objectSpread$25({}, tempreviewpayloadobj));
|
|
3204
3427
|
}
|
|
3205
3428
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3206
3429
|
"class": "col-lg-12 mb-4"
|
|
@@ -3210,9 +3433,9 @@ var AddReview = function AddReview(props) {
|
|
|
3210
3433
|
"class": reviewstyles.form_control,
|
|
3211
3434
|
value: reviewpayloadobj.reviewtitle,
|
|
3212
3435
|
onChange: function onChange(event) {
|
|
3213
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3436
|
+
var tempreviewpayloadobj = _objectSpread$25({}, reviewpayloadobj);
|
|
3214
3437
|
tempreviewpayloadobj.reviewtitle = event.target.value;
|
|
3215
|
-
setreviewpayloadobj(_objectSpread$
|
|
3438
|
+
setreviewpayloadobj(_objectSpread$25({}, tempreviewpayloadobj));
|
|
3216
3439
|
}
|
|
3217
3440
|
})), /*#__PURE__*/React.createElement("div", {
|
|
3218
3441
|
"class": "col-lg-12 mb-4"
|
|
@@ -3223,9 +3446,9 @@ var AddReview = function AddReview(props) {
|
|
|
3223
3446
|
"class": reviewstyles.form_control + ' form_control ',
|
|
3224
3447
|
value: reviewpayloadobj.reviewbody,
|
|
3225
3448
|
onChange: function onChange(event) {
|
|
3226
|
-
var tempreviewpayloadobj = _objectSpread$
|
|
3449
|
+
var tempreviewpayloadobj = _objectSpread$25({}, reviewpayloadobj);
|
|
3227
3450
|
tempreviewpayloadobj.reviewbody = event.target.value;
|
|
3228
|
-
setreviewpayloadobj(_objectSpread$
|
|
3451
|
+
setreviewpayloadobj(_objectSpread$25({}, tempreviewpayloadobj));
|
|
3229
3452
|
},
|
|
3230
3453
|
style: {
|
|
3231
3454
|
resize: 'none',
|
|
@@ -3260,8 +3483,8 @@ var AddReview = function AddReview(props) {
|
|
|
3260
3483
|
}, langdetect == 'en' ? sectionproperties.reviewbtn_contenten : sectionproperties.reviewbtn_contentar)));
|
|
3261
3484
|
};
|
|
3262
3485
|
|
|
3263
|
-
function ownKeys$
|
|
3264
|
-
function _objectSpread$
|
|
3486
|
+
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; }
|
|
3487
|
+
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(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; }
|
|
3265
3488
|
var ProductReviews = function ProductReviews(props) {
|
|
3266
3489
|
var _fetchProductInfoQuer, _fetchProductInfoQuer2, _fetchProductInfoQuer3, _fetchProductInfoQuer7, _fetchProductInfoQuer8, _fetchProductInfoQuer9, _fetchProductInfoQuer10, _fetchProductInfoQuer11, _fetchProductInfoQuer12;
|
|
3267
3490
|
props.actions.lang;
|
|
@@ -3495,7 +3718,7 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3495
3718
|
size: "md",
|
|
3496
3719
|
"class": "reviewmodal"
|
|
3497
3720
|
}, /*#__PURE__*/React.createElement(Modal.Body, null, /*#__PURE__*/React.createElement(AddReview, {
|
|
3498
|
-
actions: _objectSpread$
|
|
3721
|
+
actions: _objectSpread$24(_objectSpread$24({}, actions), {}, {
|
|
3499
3722
|
productid: productid,
|
|
3500
3723
|
canuserreview: canuserreview,
|
|
3501
3724
|
addreviewcallback: addreviewcallback
|
|
@@ -3503,8 +3726,8 @@ var ProductReviews = function ProductReviews(props) {
|
|
|
3503
3726
|
}))));
|
|
3504
3727
|
};
|
|
3505
3728
|
|
|
3506
|
-
function ownKeys$
|
|
3507
|
-
function _objectSpread$
|
|
3729
|
+
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; }
|
|
3730
|
+
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(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; }
|
|
3508
3731
|
var Productinfo = function Productinfo(props) {
|
|
3509
3732
|
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;
|
|
3510
3733
|
var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
|
|
@@ -3617,7 +3840,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3617
3840
|
StatePagePropertiesContext.pageobj != undefined && StatePagePropertiesContext.pageobj.pageproperties != undefined && StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
3618
3841
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3619
3842
|
});
|
|
3620
|
-
setsectionproperties(_objectSpread$
|
|
3843
|
+
setsectionproperties(_objectSpread$23({}, secpropobj));
|
|
3621
3844
|
}
|
|
3622
3845
|
}, [StatePagePropertiesContext]);
|
|
3623
3846
|
useEffect(function () {
|
|
@@ -3638,7 +3861,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3638
3861
|
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) {
|
|
3639
3862
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
3640
3863
|
});
|
|
3641
|
-
setsectionproperties(_objectSpread$
|
|
3864
|
+
setsectionproperties(_objectSpread$23({}, secpropobj));
|
|
3642
3865
|
}, [pageindexcontext]);
|
|
3643
3866
|
useEffect(function () {
|
|
3644
3867
|
if (productidparam == undefined) {
|
|
@@ -3658,12 +3881,12 @@ var Productinfo = function Productinfo(props) {
|
|
|
3658
3881
|
}
|
|
3659
3882
|
}, [ProductInfoObj, isloaded]);
|
|
3660
3883
|
var productidassigner = function productidassigner(productid) {
|
|
3661
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
3884
|
+
var tempFetchQueriesEngineContext = _objectSpread$23({}, FetchQueriesEngineContext);
|
|
3662
3885
|
tempFetchQueriesEngineContext.fetchproductinfo = true;
|
|
3663
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
3664
|
-
var tempfetchproductinfoObjContext = _objectSpread$
|
|
3886
|
+
setFetchQueriesEngineContext(_objectSpread$23({}, tempFetchQueriesEngineContext));
|
|
3887
|
+
var tempfetchproductinfoObjContext = _objectSpread$23({}, fetchproductinfoObjContext);
|
|
3665
3888
|
tempfetchproductinfoObjContext.productid = productid;
|
|
3666
|
-
setfetchproductinfoObjContext(_objectSpread$
|
|
3889
|
+
setfetchproductinfoObjContext(_objectSpread$23({}, tempfetchproductinfoObjContext));
|
|
3667
3890
|
};
|
|
3668
3891
|
useEffect(function () {
|
|
3669
3892
|
if (!fetchProductInfoQueryContext.isFetching && fetchProductInfoQueryContext.isSuccess && ikimagecredcontext != undefined) {
|
|
@@ -3689,9 +3912,9 @@ var Productinfo = function Productinfo(props) {
|
|
|
3689
3912
|
}
|
|
3690
3913
|
setproductimagesarray([].concat(tempproductimagesarray));
|
|
3691
3914
|
variantchecker();
|
|
3692
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
3915
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3693
3916
|
tempaddtocardpayloadobj.productid = fetchProductInfoQueryContext.data.data.productinfo.productid;
|
|
3694
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
3917
|
+
setaddtocardpayloadobj(_objectSpread$23({}, tempaddtocardpayloadobj));
|
|
3695
3918
|
setRelatedProductsTagid(fetchProductInfoQueryContext.data.data.productinfo.maintagid);
|
|
3696
3919
|
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) {
|
|
3697
3920
|
GeneralAPIMutationContext.mutate({
|
|
@@ -3738,7 +3961,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3738
3961
|
});
|
|
3739
3962
|
variantchecker();
|
|
3740
3963
|
variantcompleting();
|
|
3741
|
-
setProductInfoObj(_objectSpread$
|
|
3964
|
+
setProductInfoObj(_objectSpread$23({}, productarr));
|
|
3742
3965
|
};
|
|
3743
3966
|
var variantchecker = function variantchecker() {
|
|
3744
3967
|
var productarr = ProductInfoObj;
|
|
@@ -3812,16 +4035,16 @@ var Productinfo = function Productinfo(props) {
|
|
|
3812
4035
|
});
|
|
3813
4036
|
}
|
|
3814
4037
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
3815
|
-
setProductInfoObj(_objectSpread$
|
|
4038
|
+
setProductInfoObj(_objectSpread$23({}, productarr));
|
|
3816
4039
|
setisloaded(true);
|
|
3817
4040
|
}
|
|
3818
4041
|
}
|
|
3819
4042
|
};
|
|
3820
4043
|
var variantcompleting = function variantcompleting() {
|
|
3821
4044
|
setvariantindexcompleted('');
|
|
3822
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
4045
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3823
4046
|
tempaddtocardpayloadobj.variantid = '';
|
|
3824
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
4047
|
+
setaddtocardpayloadobj(_objectSpread$23({}, tempaddtocardpayloadobj));
|
|
3825
4048
|
var productarr = ProductInfoObj;
|
|
3826
4049
|
var selectedoptionsvalues = [];
|
|
3827
4050
|
productarr.data.productinfo.productoptions.forEach(function (productoptionsitem, productoptionsindex) {
|
|
@@ -3853,7 +4076,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3853
4076
|
NotificationManager.warning('', 'Variant Not Found');
|
|
3854
4077
|
} else {
|
|
3855
4078
|
variantid = variantobj.variantid;
|
|
3856
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
4079
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3857
4080
|
tempaddtocardpayloadobj.variantid = variantid;
|
|
3858
4081
|
var variantimageindex = 0;
|
|
3859
4082
|
productimagesarray === null || productimagesarray === void 0 ? void 0 : productimagesarray.forEach(function (tempimageitem, tempimageindex) {
|
|
@@ -3862,13 +4085,13 @@ var Productinfo = function Productinfo(props) {
|
|
|
3862
4085
|
}
|
|
3863
4086
|
});
|
|
3864
4087
|
setcurrentshowingimageindex(variantimageindex);
|
|
3865
|
-
setaddtocardpayloadobj(_objectSpread$
|
|
4088
|
+
setaddtocardpayloadobj(_objectSpread$23({}, tempaddtocardpayloadobj));
|
|
3866
4089
|
setvariantindexcompleted(ProductVariantIndex);
|
|
3867
4090
|
}
|
|
3868
4091
|
}
|
|
3869
4092
|
});
|
|
3870
4093
|
// queryClient.setQueryData('fetchProductInfo_API' + JSON.stringify(fetchproductinfoObjContext), productarr);
|
|
3871
|
-
setProductInfoObj(_objectSpread$
|
|
4094
|
+
setProductInfoObj(_objectSpread$23({}, productarr));
|
|
3872
4095
|
};
|
|
3873
4096
|
var addtocartfunc = function addtocartfunc() {
|
|
3874
4097
|
var runfunc = false;
|
|
@@ -3888,7 +4111,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3888
4111
|
}
|
|
3889
4112
|
if (runfunc == true) {
|
|
3890
4113
|
var _fetchProductInfoQuer11, _fetchProductInfoQuer12, _fetchProductInfoQuer13;
|
|
3891
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
4114
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3892
4115
|
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;
|
|
3893
4116
|
var Extrafieldvalidationresponse = validateextrafields();
|
|
3894
4117
|
if (Extrafieldvalidationresponse.status) {
|
|
@@ -3898,7 +4121,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
3898
4121
|
};
|
|
3899
4122
|
var validateextrafields = function validateextrafields() {
|
|
3900
4123
|
var _fetchProductInfoQuer14, _fetchProductInfoQuer15, _fetchProductInfoQuer16;
|
|
3901
|
-
var tempaddtocardpayloadobj = _objectSpread$
|
|
4124
|
+
var tempaddtocardpayloadobj = _objectSpread$23({}, addtocardpayloadobj);
|
|
3902
4125
|
var status = false;
|
|
3903
4126
|
var reason = '';
|
|
3904
4127
|
var missingitemsfound = [];
|
|
@@ -4791,7 +5014,7 @@ var Productinfo = function Productinfo(props) {
|
|
|
4791
5014
|
})), tabname == 'reviewstab' && /*#__PURE__*/React.createElement("div", {
|
|
4792
5015
|
"class": "col-lg-12 p-0 w-100 pl-5 pr-5 p-md-0"
|
|
4793
5016
|
}, /*#__PURE__*/React.createElement(ProductReviews, {
|
|
4794
|
-
actions: _objectSpread$
|
|
5017
|
+
actions: _objectSpread$23(_objectSpread$23({}, actions), {}, {
|
|
4795
5018
|
productinfo_cssstyles: productinfo_cssstyles,
|
|
4796
5019
|
sectionproperties: sectionproperties
|
|
4797
5020
|
})
|
|
@@ -4808,8 +5031,8 @@ var css_248z$G = "/* Side Nav */\n.staticroutersidenav-module_vertical_nav_menu_
|
|
|
4808
5031
|
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"};
|
|
4809
5032
|
styleInject(css_248z$G);
|
|
4810
5033
|
|
|
4811
|
-
function ownKeys$
|
|
4812
|
-
function _objectSpread$
|
|
5034
|
+
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; }
|
|
5035
|
+
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(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; }
|
|
4813
5036
|
var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
4814
5037
|
var _useState = useState(props.currentpageprops),
|
|
4815
5038
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -4845,7 +5068,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
4845
5068
|
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) {
|
|
4846
5069
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
4847
5070
|
});
|
|
4848
|
-
setsectionproperties(_objectSpread$
|
|
5071
|
+
setsectionproperties(_objectSpread$22({}, secpropobj));
|
|
4849
5072
|
}
|
|
4850
5073
|
}, [CurrentPageId]);
|
|
4851
5074
|
var styles = {
|
|
@@ -5007,8 +5230,8 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
|
|
|
5007
5230
|
}))))));
|
|
5008
5231
|
};
|
|
5009
5232
|
|
|
5010
|
-
function ownKeys$
|
|
5011
|
-
function _objectSpread$
|
|
5233
|
+
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; }
|
|
5234
|
+
function _objectSpread$21(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$21(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$21(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5012
5235
|
var Ordershistory = function Ordershistory(props) {
|
|
5013
5236
|
var _props$actions2, _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchorderhistoryQue4, _fetchorderhistoryQue5, _fetchorderhistoryQue6, _fetchorderhistoryQue7, _fetchorderhistoryQue8, _fetchorderhistoryQue9, _fetchorderhistoryQue10, _fetchorderhistoryQue11, _fetchorderhistoryQue12, _fetchorderhistoryQue13, _fetchorderhistoryQue14;
|
|
5014
5237
|
var lang = props.actions.lang;
|
|
@@ -5061,9 +5284,9 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
5061
5284
|
setorderindex = _useState14[1];
|
|
5062
5285
|
useEffect(function () {
|
|
5063
5286
|
if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
|
|
5064
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
5287
|
+
var tempFetchQueriesEngineContext = _objectSpread$21({}, FetchQueriesEngineContext);
|
|
5065
5288
|
tempFetchQueriesEngineContext.orderhistory = true;
|
|
5066
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
5289
|
+
setFetchQueriesEngineContext(_objectSpread$21({}, tempFetchQueriesEngineContext));
|
|
5067
5290
|
}
|
|
5068
5291
|
}, []);
|
|
5069
5292
|
var _useState15 = useState(''),
|
|
@@ -5084,7 +5307,7 @@ var Ordershistory = function Ordershistory(props) {
|
|
|
5084
5307
|
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) {
|
|
5085
5308
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5086
5309
|
});
|
|
5087
|
-
setsectionproperties(_objectSpread$
|
|
5310
|
+
setsectionproperties(_objectSpread$21({}, secpropobj));
|
|
5088
5311
|
}, [props === null || props === void 0 ? void 0 : (_props$actions2 = props.actions) === null || _props$actions2 === void 0 ? void 0 : _props$actions2.StatePagePropertiesContext]);
|
|
5089
5312
|
var orderhistory_cssstyles = {
|
|
5090
5313
|
variantcontainer: css({
|
|
@@ -5941,8 +6164,8 @@ var css_248z$F = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_c
|
|
|
5941
6164
|
var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
|
|
5942
6165
|
styleInject(css_248z$F);
|
|
5943
6166
|
|
|
5944
|
-
function ownKeys$
|
|
5945
|
-
function _objectSpread$
|
|
6167
|
+
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; }
|
|
6168
|
+
function _objectSpread$20(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$20(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$20(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
5946
6169
|
var Wishlist = function Wishlist(props) {
|
|
5947
6170
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8;
|
|
5948
6171
|
var lang = props.actions.lang;
|
|
@@ -5970,13 +6193,13 @@ var Wishlist = function Wishlist(props) {
|
|
|
5970
6193
|
StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
|
|
5971
6194
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5972
6195
|
});
|
|
5973
|
-
setsectionproperties(_objectSpread$
|
|
6196
|
+
setsectionproperties(_objectSpread$20({}, secpropobj));
|
|
5974
6197
|
}
|
|
5975
6198
|
}, [StatePagePropertiesContext]);
|
|
5976
6199
|
useEffect(function () {
|
|
5977
|
-
var tempFetchQueriesEngineContext = _objectSpread$
|
|
6200
|
+
var tempFetchQueriesEngineContext = _objectSpread$20({}, FetchQueriesEngineContext);
|
|
5978
6201
|
tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
|
|
5979
|
-
setFetchQueriesEngineContext(_objectSpread$
|
|
6202
|
+
setFetchQueriesEngineContext(_objectSpread$20({}, tempFetchQueriesEngineContext));
|
|
5980
6203
|
}, []);
|
|
5981
6204
|
useEffect(function () {
|
|
5982
6205
|
if (Object.keys(StatePagePropertiesContext).length != 0) {
|
|
@@ -5985,7 +6208,7 @@ var Wishlist = function Wishlist(props) {
|
|
|
5985
6208
|
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) {
|
|
5986
6209
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
5987
6210
|
});
|
|
5988
|
-
setsectionproperties(_objectSpread$
|
|
6211
|
+
setsectionproperties(_objectSpread$20({}, secpropobj));
|
|
5989
6212
|
}
|
|
5990
6213
|
}, [StatePagePropertiesContext]);
|
|
5991
6214
|
var wishlist_cssstyles = {
|
|
@@ -6390,8 +6613,8 @@ var Wishlist = function Wishlist(props) {
|
|
|
6390
6613
|
})));
|
|
6391
6614
|
};
|
|
6392
6615
|
|
|
6393
|
-
function ownKeys$
|
|
6394
|
-
function _objectSpread$
|
|
6616
|
+
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; }
|
|
6617
|
+
function _objectSpread$1$(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1$(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1$(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6395
6618
|
var Viewcart = function Viewcart(props) {
|
|
6396
6619
|
var _bgimagesarray$, _bgimagesarray$5, _bgimagesarray$6, _bgimagesarray$7, _bgimagesarray$8, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25;
|
|
6397
6620
|
var lang = props.actions.lang;
|
|
@@ -6423,7 +6646,7 @@ var Viewcart = function Viewcart(props) {
|
|
|
6423
6646
|
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) {
|
|
6424
6647
|
secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
|
|
6425
6648
|
});
|
|
6426
|
-
setsectionproperties(_objectSpread$
|
|
6649
|
+
setsectionproperties(_objectSpread$1$({}, secpropobj));
|
|
6427
6650
|
}
|
|
6428
6651
|
}, [StatePagePropertiesContext]);
|
|
6429
6652
|
useEffect(function () {
|
|
@@ -7007,91 +7230,6 @@ var css_248z$E = "/* Forms */\n.form-module_form_control__4-RGw {\n display:
|
|
|
7007
7230
|
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-"};
|
|
7008
7231
|
styleInject(css_248z$E);
|
|
7009
7232
|
|
|
7010
|
-
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; }
|
|
7011
|
-
function _objectSpread$1$(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1$(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1$(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7012
|
-
var defaultstyles = {
|
|
7013
|
-
option: function option(provided, state) {
|
|
7014
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7015
|
-
borderBottom: '1px solid #e6e6e6',
|
|
7016
|
-
backgroundColor: state.isSelected ? '' : '',
|
|
7017
|
-
padding: 5,
|
|
7018
|
-
textTransform: 'capitalize',
|
|
7019
|
-
color: state.isSelected ? '#eac435' : 'black',
|
|
7020
|
-
transition: '.3s',
|
|
7021
|
-
'&:hover': {
|
|
7022
|
-
// color: '#eac435',
|
|
7023
|
-
cursor: 'pointer'
|
|
7024
|
-
}
|
|
7025
|
-
});
|
|
7026
|
-
},
|
|
7027
|
-
control: function control() {
|
|
7028
|
-
return {
|
|
7029
|
-
borderBottom: '1px solid #ccc',
|
|
7030
|
-
backgroundColor: 'white',
|
|
7031
|
-
display: 'flex',
|
|
7032
|
-
cursor: 'pointer',
|
|
7033
|
-
padding: 0,
|
|
7034
|
-
transition: '.3s',
|
|
7035
|
-
'&:hover': {
|
|
7036
|
-
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
7037
|
-
// borderRadius: '10px',
|
|
7038
|
-
}
|
|
7039
|
-
};
|
|
7040
|
-
},
|
|
7041
|
-
dropdownIndicator: function dropdownIndicator(provided) {
|
|
7042
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7043
|
-
'&:hover': {
|
|
7044
|
-
// color: '#eac435',
|
|
7045
|
-
}
|
|
7046
|
-
});
|
|
7047
|
-
}
|
|
7048
|
-
};
|
|
7049
|
-
var defaultstylestranslated = {
|
|
7050
|
-
option: function option(provided, state) {
|
|
7051
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7052
|
-
borderBottom: '1px solid #e6e6e6',
|
|
7053
|
-
backgroundColor: state.isSelected ? '' : '',
|
|
7054
|
-
padding: 5,
|
|
7055
|
-
textTransform: 'capitalize',
|
|
7056
|
-
// color: state.isSelected ? '#eac435' : '#022648',
|
|
7057
|
-
color: state.isSelected ? '#eac435' : 'black',
|
|
7058
|
-
transition: '.3s',
|
|
7059
|
-
textAlign: 'right',
|
|
7060
|
-
'&:hover': {
|
|
7061
|
-
// color: '#eac435',
|
|
7062
|
-
cursor: 'pointer'
|
|
7063
|
-
}
|
|
7064
|
-
});
|
|
7065
|
-
},
|
|
7066
|
-
control: function control() {
|
|
7067
|
-
return {
|
|
7068
|
-
borderBottom: '1px solid #ccc',
|
|
7069
|
-
backgroundColor: 'white',
|
|
7070
|
-
display: 'flex',
|
|
7071
|
-
cursor: 'pointer',
|
|
7072
|
-
padding: 0,
|
|
7073
|
-
transition: '.3s',
|
|
7074
|
-
textAlign: 'right',
|
|
7075
|
-
'&:hover': {
|
|
7076
|
-
// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
|
|
7077
|
-
// borderRadius: '10px',
|
|
7078
|
-
}
|
|
7079
|
-
};
|
|
7080
|
-
},
|
|
7081
|
-
dropdownIndicator: function dropdownIndicator(provided) {
|
|
7082
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7083
|
-
'&:hover': {
|
|
7084
|
-
// color: '#eac435',
|
|
7085
|
-
}
|
|
7086
|
-
});
|
|
7087
|
-
},
|
|
7088
|
-
placeholder: function placeholder(provided, state) {
|
|
7089
|
-
return _objectSpread$1$(_objectSpread$1$({}, provided), {}, {
|
|
7090
|
-
textAlign: 'right'
|
|
7091
|
-
});
|
|
7092
|
-
}
|
|
7093
|
-
};
|
|
7094
|
-
|
|
7095
7233
|
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; }
|
|
7096
7234
|
function _objectSpread$1_(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1_(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1_(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
7097
7235
|
var Select$2 = /*#__PURE__*/React.lazy(function () {
|
|
@@ -40441,14 +40579,14 @@ var BackgroundImageWithTopContent = function BackgroundImageWithTopContent(props
|
|
|
40441
40579
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
40442
40580
|
}, /*#__PURE__*/React.createElement("label", {
|
|
40443
40581
|
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
40444
|
-
}, lang.country), /*#__PURE__*/React.createElement(Select$
|
|
40582
|
+
}, lang.country), /*#__PURE__*/React.createElement(Select$4, {
|
|
40445
40583
|
options: countries,
|
|
40446
40584
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated
|
|
40447
40585
|
})), /*#__PURE__*/React.createElement("div", {
|
|
40448
40586
|
className: "".concat(langdetect == 'en' ? 'text-left' : 'text-right') + ' col-lg-12 col-md-12 col-sm-12 mb-3 p-0 '
|
|
40449
40587
|
}, /*#__PURE__*/React.createElement("label", {
|
|
40450
40588
|
className: "".concat(sectionstyles.input_label_name) + ' m-0 '
|
|
40451
|
-
}, langdetect == 'en' ? 'State' : 'الولاية'), /*#__PURE__*/React.createElement(Select$
|
|
40589
|
+
}, langdetect == 'en' ? 'State' : 'الولاية'), /*#__PURE__*/React.createElement(Select$4, {
|
|
40452
40590
|
options: states,
|
|
40453
40591
|
styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated
|
|
40454
40592
|
})), /*#__PURE__*/React.createElement("div", {
|
|
@@ -54362,7 +54500,8 @@ var ModernProductCard = function ModernProductCard(props) {
|
|
|
54362
54500
|
style: {
|
|
54363
54501
|
position: 'absolute',
|
|
54364
54502
|
top: sectionproperties.badge_top + 'px',
|
|
54365
|
-
right: sectionproperties.badge_right + 'px',
|
|
54503
|
+
right: langdetect == 'en' ? sectionproperties.badge_right + 'px' : '',
|
|
54504
|
+
left: langdetect == 'ar' ? sectionproperties.badge_right + 'px' : '',
|
|
54366
54505
|
width: sectionproperties.badge_width + 'px',
|
|
54367
54506
|
height: sectionproperties.badge_height + 'px',
|
|
54368
54507
|
background: sectionproperties.badge_bgcolor,
|
|
@@ -54380,7 +54519,8 @@ var ModernProductCard = function ModernProductCard(props) {
|
|
|
54380
54519
|
style: {
|
|
54381
54520
|
position: 'absolute',
|
|
54382
54521
|
top: sectionproperties.pillpositionfromtop + 'px',
|
|
54383
|
-
right: sectionproperties.pillpositionfromright + 'px',
|
|
54522
|
+
right: langdetect == 'en' ? sectionproperties.pillpositionfromright + 'px' : '',
|
|
54523
|
+
left: langdetect == 'ar' ? sectionproperties.pillpositionfromright + 'px' : '',
|
|
54384
54524
|
width: sectionproperties.pillwidth + 'px',
|
|
54385
54525
|
height: sectionproperties.pillheight + 'px',
|
|
54386
54526
|
background: sectionproperties.pillbgcolor,
|
|
@@ -54460,7 +54600,7 @@ var ModernProductCard = function ModernProductCard(props) {
|
|
|
54460
54600
|
}, langdetect == 'en' ? 'EGP' : '', " ", item.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م'))), /*#__PURE__*/React.createElement("div", {
|
|
54461
54601
|
"class": "row mt-1 m-0 w-100"
|
|
54462
54602
|
}, /*#__PURE__*/React.createElement("div", {
|
|
54463
|
-
"class": "col-lg-6 col-md-8 col-sm-8 p-0"
|
|
54603
|
+
"class": "col-lg-6 col-md-8 col-sm-8 p-0 d-flex align-items-center justify-content-start"
|
|
54464
54604
|
}, /*#__PURE__*/React.createElement("div", {
|
|
54465
54605
|
style: {
|
|
54466
54606
|
width: sectionproperties.quantitybtn_width + 'px'
|
|
@@ -54468,7 +54608,7 @@ var ModernProductCard = function ModernProductCard(props) {
|
|
|
54468
54608
|
"class": ' row m-0 d-flex align-items-center '
|
|
54469
54609
|
}, /*#__PURE__*/React.createElement("button", {
|
|
54470
54610
|
"class": "".concat(card_cssstyles.quantitybtn) + ' p-0 d-flex align-items-center justify-content-center '
|
|
54471
|
-
},
|
|
54611
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
54472
54612
|
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container) + ' ',
|
|
54473
54613
|
onClick: function onClick() {
|
|
54474
54614
|
updatequantity('remove');
|
|
@@ -54477,15 +54617,6 @@ var ModernProductCard = function ModernProductCard(props) {
|
|
|
54477
54617
|
"class": "h-100 allcentered"
|
|
54478
54618
|
}, /*#__PURE__*/React.createElement(AiOutlineMinus, {
|
|
54479
54619
|
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
54480
|
-
}))), langdetect == 'ar' && /*#__PURE__*/React.createElement("span", {
|
|
54481
|
-
"class": "".concat(card_cssstyles.add_quantitybtn_icon_container) + ' ',
|
|
54482
|
-
onClick: function onClick() {
|
|
54483
|
-
updatequantity('add');
|
|
54484
|
-
}
|
|
54485
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
54486
|
-
"class": "h-100 allcentered"
|
|
54487
|
-
}, /*#__PURE__*/React.createElement(AiOutlinePlus, {
|
|
54488
|
-
size: sectionproperties.add_quantitybtn_textfontsize
|
|
54489
54620
|
}))), /*#__PURE__*/React.createElement("span", {
|
|
54490
54621
|
"class": "".concat(card_cssstyles.quantitybtn_text) + ' d-flex align-items-center justify-content-center ',
|
|
54491
54622
|
style: {
|
|
@@ -54494,19 +54625,7 @@ var ModernProductCard = function ModernProductCard(props) {
|
|
|
54494
54625
|
height: sectionproperties.quantitybtntextheight + 'px',
|
|
54495
54626
|
borderRadius: sectionproperties.addquantitytextborderraduis + 'px'
|
|
54496
54627
|
}
|
|
54497
|
-
}, item.quantity),
|
|
54498
|
-
"class": "".concat(card_cssstyles.minus_quantitybtn_icon_container) + ' ',
|
|
54499
|
-
style: {
|
|
54500
|
-
transform: ' rotate(-180deg)'
|
|
54501
|
-
},
|
|
54502
|
-
onClick: function onClick() {
|
|
54503
|
-
updatequantity('remove');
|
|
54504
|
-
}
|
|
54505
|
-
}, /*#__PURE__*/React.createElement("i", {
|
|
54506
|
-
"class": "h-100 allcentered"
|
|
54507
|
-
}, /*#__PURE__*/React.createElement(AiOutlineMinus, {
|
|
54508
|
-
size: sectionproperties.remove_quantitybtn_textfontsize
|
|
54509
|
-
}))), langdetect == 'en' && /*#__PURE__*/React.createElement("span", {
|
|
54628
|
+
}, item.quantity), /*#__PURE__*/React.createElement("span", {
|
|
54510
54629
|
"class": "".concat(card_cssstyles.add_quantitybtn_icon_container) + ' ',
|
|
54511
54630
|
onClick: function onClick() {
|
|
54512
54631
|
updatequantity('add');
|