tabexseriescomponents 0.0.40 → 0.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -28,9 +28,9 @@ var fi = require('react-icons/fi');
28
28
  var md = require('react-icons/md');
29
29
  var io = require('react-icons/io');
30
30
  var cg = require('react-icons/cg');
31
- var TextareaAutosize = require('react-textarea-autosize');
32
- var Select = require('react-select');
33
- var gr = require('react-icons/gr');
31
+ require('react-textarea-autosize');
32
+ require('react-select');
33
+ require('react-icons/gr');
34
34
  var reactAccessibleAccordion = require('react-accessible-accordion');
35
35
  var Dropdown = require('react-bootstrap/Dropdown');
36
36
  var reactIntersectionObserver = require('react-intersection-observer');
@@ -59,8 +59,6 @@ var Cookies__default = /*#__PURE__*/_interopDefaultLegacy(Cookies);
59
59
  var jwtDecode__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecode);
60
60
  var FacebookLogin__default = /*#__PURE__*/_interopDefaultLegacy(FacebookLogin);
61
61
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
62
- var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
63
- var Select__default = /*#__PURE__*/_interopDefaultLegacy(Select);
64
62
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
65
63
  var BackgroundSlideshow__default = /*#__PURE__*/_interopDefaultLegacy(BackgroundSlideshow);
66
64
  var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
@@ -485,9 +483,9 @@ var FacebookLoginButton = function FacebookLoginButton(props) {
485
483
  }));
486
484
  };
487
485
 
488
- function ownKeys$17(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; }
486
+ function ownKeys$15(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; }
489
487
 
490
- function _objectSpread$17(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$17(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$17(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
488
+ function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$15(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$15(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
491
489
 
492
490
  var Login = function Login(props) {
493
491
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -533,7 +531,7 @@ var Login = function Login(props) {
533
531
  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) {
534
532
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
535
533
  });
536
- setsectionproperties(_objectSpread$17({}, secpropobj));
534
+ setsectionproperties(_objectSpread$15({}, secpropobj));
537
535
  }
538
536
  }, [StatePagePropertiesContext]);
539
537
 
@@ -647,10 +645,10 @@ var Login = function Login(props) {
647
645
  className: "".concat(loginstyles.form_control, " ").concat(loginstyles2.form_control),
648
646
  value: payloadobj.email,
649
647
  onChange: function onChange(event) {
650
- var temppayloadobj = _objectSpread$17({}, payloadobj);
648
+ var temppayloadobj = _objectSpread$15({}, payloadobj);
651
649
 
652
650
  temppayloadobj.email = event.target.value;
653
- setpayloadobj(_objectSpread$17({}, temppayloadobj));
651
+ setpayloadobj(_objectSpread$15({}, temppayloadobj));
654
652
  }
655
653
  }), /*#__PURE__*/React__default["default"].createElement("span", {
656
654
  className: langdetect == 'en' ? loginstyles.login_input_icon : loginstyles.login_input_icontrans
@@ -668,10 +666,10 @@ var Login = function Login(props) {
668
666
  textplaceholder: "",
669
667
  value: payloadobj.password,
670
668
  onChange: function onChange(event) {
671
- var temppayloadobj = _objectSpread$17({}, payloadobj);
669
+ var temppayloadobj = _objectSpread$15({}, payloadobj);
672
670
 
673
671
  temppayloadobj.password = event.target.value;
674
- setpayloadobj(_objectSpread$17({}, temppayloadobj));
672
+ setpayloadobj(_objectSpread$15({}, temppayloadobj));
675
673
  }
676
674
  }), /*#__PURE__*/React__default["default"].createElement("span", {
677
675
  className: langdetect == 'en' ? loginstyles.login_input_icon : loginstyles.login_input_icontrans
@@ -794,9 +792,9 @@ var css_248z$v = "/* Side Nav */\n.staticroutersidenav-module_vertical_nav_menu_
794
792
  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"};
795
793
  styleInject(css_248z$v);
796
794
 
797
- function ownKeys$16(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; }
795
+ function ownKeys$14(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; }
798
796
 
799
- function _objectSpread$16(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$16(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$16(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
797
+ function _objectSpread$14(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$14(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$14(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
800
798
  // import { useMutation, useQuery, useQueryClient } from 'react-query';
801
799
  // import { useHistory, Link } from 'react-router-dom';
802
800
  // import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
@@ -904,7 +902,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
904
902
  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) {
905
903
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
906
904
  });
907
- setsectionproperties(_objectSpread$16({}, secpropobj));
905
+ setsectionproperties(_objectSpread$14({}, secpropobj));
908
906
  setnavigationstyle('Upper Navigation'); // }
909
907
  // }
910
908
  }, [CurrentPageId]);
@@ -1060,9 +1058,9 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
1060
1058
  }))))));
1061
1059
  };
1062
1060
 
1063
- function ownKeys$15(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; }
1061
+ function ownKeys$13(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; }
1064
1062
 
1065
- function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$15(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$15(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1063
+ function _objectSpread$13(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$13(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$13(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1066
1064
 
1067
1065
  var Ordershistory = function Ordershistory(props) {
1068
1066
  var _bgimagesarray$, _bgimagesarray$2;
@@ -1107,10 +1105,10 @@ var Ordershistory = function Ordershistory(props) {
1107
1105
 
1108
1106
  React.useEffect(function () {
1109
1107
  if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
1110
- var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
1108
+ var tempFetchQueriesEngineContext = _objectSpread$13({}, FetchQueriesEngineContext);
1111
1109
 
1112
1110
  tempFetchQueriesEngineContext.orderhistory = true;
1113
- setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
1111
+ setFetchQueriesEngineContext(_objectSpread$13({}, tempFetchQueriesEngineContext));
1114
1112
  } else {
1115
1113
  routingcountext('');
1116
1114
  }
@@ -1136,7 +1134,7 @@ var Ordershistory = function Ordershistory(props) {
1136
1134
  StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
1137
1135
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1138
1136
  });
1139
- setsectionproperties(_objectSpread$15({}, secpropobj));
1137
+ setsectionproperties(_objectSpread$13({}, secpropobj));
1140
1138
  }
1141
1139
  }, [StatePagePropertiesContext]);
1142
1140
  var orderhistory_cssstyles = {
@@ -1920,9 +1918,9 @@ var css_248z$u = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_c
1920
1918
  var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
1921
1919
  styleInject(css_248z$u);
1922
1920
 
1923
- function ownKeys$14(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; }
1921
+ function ownKeys$12(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; }
1924
1922
 
1925
- function _objectSpread$14(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$14(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$14(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1923
+ function _objectSpread$12(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$12(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$12(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1926
1924
 
1927
1925
  var Wishlist = function Wishlist(props) {
1928
1926
  var _bgimagesarray$, _bgimagesarray$2;
@@ -1959,7 +1957,7 @@ var Wishlist = function Wishlist(props) {
1959
1957
  StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
1960
1958
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1961
1959
  });
1962
- setsectionproperties(_objectSpread$14({}, secpropobj));
1960
+ setsectionproperties(_objectSpread$12({}, secpropobj));
1963
1961
  }
1964
1962
  }, [StatePagePropertiesContext]);
1965
1963
 
@@ -1969,10 +1967,10 @@ var Wishlist = function Wishlist(props) {
1969
1967
  _useState2[1];
1970
1968
 
1971
1969
  React.useEffect(function () {
1972
- var tempFetchQueriesEngineContext = _objectSpread$14({}, FetchQueriesEngineContext);
1970
+ var tempFetchQueriesEngineContext = _objectSpread$12({}, FetchQueriesEngineContext);
1973
1971
 
1974
1972
  tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
1975
- setFetchQueriesEngineContext(_objectSpread$14({}, tempFetchQueriesEngineContext));
1973
+ setFetchQueriesEngineContext(_objectSpread$12({}, tempFetchQueriesEngineContext));
1976
1974
  }, []);
1977
1975
 
1978
1976
  var _useState3 = React.useState(''),
@@ -2004,7 +2002,7 @@ var Wishlist = function Wishlist(props) {
2004
2002
  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) {
2005
2003
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2006
2004
  });
2007
- setsectionproperties(_objectSpread$14({}, secpropobj));
2005
+ setsectionproperties(_objectSpread$12({}, secpropobj));
2008
2006
  }
2009
2007
  }, [StatePagePropertiesContext]);
2010
2008
  var wishlist_cssstyles = {
@@ -2440,1158 +2438,658 @@ var Wishlist = function Wishlist(props) {
2440
2438
  };
2441
2439
 
2442
2440
  var css_248z$t = "/* Forms */\n.form-module_form_control__4-RGw {\n display: block;\n width: 100%;\n height: 25px;\n font-size: 1rem;\n font-weight: 500;\n color: #444054;\n background-color: white;\n border-radius: 20px;\n box-shadow: 0 0 10px #e6e6e6;\n height: 40px;\n padding-left: 0;\n padding-right: 0;\n font-size: 14px;\n transition: background 0s ease-out;\n border: 0;\n padding: 0 10px;\n}\n.form-module_form_controlcheckout__IoXvi{\n display: block;\n width: 100%;\n height: 25px;\n /* font-size: 1rem; */\n /* font-weight: 500; */\n /* color: #444054; */\n /* background-color: #eee; */\n /* border-radius: 10px; */\n height: 40px;\n padding-left: 0;\n padding-right: 0;\n font-size: 14px;\n transition: background 0s ease-out;\n border: 0;\n padding: 0 10px;\n}\n.form-module_textarea__zG0ed{\n resize: none;\n /* background-color: #eee; */\n}\n@media screen and (prefers-reduced-motion: reduce) {\n .form-module_form_control__4-RGw {\n transition: none;\n }\n}\n.form-module_form_control__4-RGw::-ms-expand {\n background-color: transparent;\n border: 0;\n}\n.form-module_form_control__4-RGw::placeholder {\n color: #eac435;\n opacity: 1;\n}\n.form-module_form_control__4-RGw:disabled,\n.form-module_form_control__4-RGw[readonly] {\n background-color: #e9ecef;\n opacity: 1;\n cursor: not-allowed;\n}\ntextarea.form-module_form_control__4-RGw {\n min-height: 100px !important;\n padding-top: 10px;\n padding-bottom: 10px;\n}\n.form-module_form_control__4-RGw:focus {\n transition-duration: 0.3s;\n box-shadow: none;\n box-shadow: 0 0 10px #ccc;\n}\n.form-module_form_control__4-RGw::-moz-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.form-module_form_control__4-RGw:-ms-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n.form-module_form_control__4-RGw::-webkit-input-placeholder {\n color: #aaaaaa;\n font-weight: 400;\n font-size: 14px;\n}\n\n.form-module_form_control_border_none__TJvdZ {\n background-image: none;\n}\n.form-module_form_control__4-RGw.form-module_disabled__AtvSI,\n.form-module_form_control__4-RGw:disabled,\n.form-module_form_control__4-RGw[disabled] {\n cursor: not-allowed;\n}\n.form-module_input_label_name__416wN {\n font-size: 16px;\n text-transform: capitalize;\n color: var(--cardheader);\n font-weight: 500;\n}\n.form-module_input_label_name-bolder__UQn0a {\n font-weight: 500;\n}\n.form-module_input_icon__X-CzC {\n position: absolute;\n bottom: 5px;\n left: 0;\n color: #d9d9d9;\n}\n/* Radio Buttons */\n.form-module_radiobtn_label__-4Hoi {\n display: flex;\n cursor: pointer;\n font-weight: 500;\n position: relative;\n overflow: hidden;\n margin-bottom: 0;\n}\n.form-module_radiobtn_label__-4Hoi input {\n position: absolute;\n left: -9999px;\n display: none;\n}\n.form-module_radiobtn_label__-4Hoi input:checked + span {\n background-color: #f0f5f5;\n color: var(--focus);\n font-weight: 500;\n}\n.form-module_radiobtn_label__-4Hoi input:checked + span:before {\n box-shadow: inset 0 0 0 0.3em #eac435;\n}\n.form-module_radiobtn_label__-4Hoi span {\n display: flex;\n align-items: center;\n text-transform: capitalize;\n padding: 0.375em 0.75em 0.375em 0.375em;\n border-radius: 99em;\n transition: 0.25s ease;\n font-weight: normal;\n color: var(--focus);\n}\n.form-module_radiobtn_label__-4Hoi span:hover {\n background-color: #e6e6e6;\n}\n.form-module_radiobtn_label__-4Hoi span:before {\n display: flex;\n flex-shrink: 0;\n content: '';\n background-color: #fff;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n margin-right: 0.375em;\n transition: 0.25s ease;\n box-shadow: inset 0 0 0 0.125em var(--focus);\n}\n.form-module_radiobtn_label__-4Hoi.form-module_text-grey__JdZMY span:before {\n box-shadow: inset 0 0 0 0.125em grey;\n}\n.form-module_radiobtn_label__-4Hoi input.form-module_disabled__AtvSI {\n cursor: not-allowed;\n}\n.form-module_radiobtn_label_translated__WN5Jj span:before {\n display: flex;\n flex-shrink: 0;\n content: '';\n background-color: #fff;\n width: 1em;\n height: 1em;\n border-radius: 50%;\n margin-left: 0.375em;\n margin-right: 0;\n transition: 0.25s ease;\n box-shadow: inset 0 0 0 0.125em var(--focus);\n}\n.form-module_radiobtn_label_translated__WN5Jj input.form-module_disabled__AtvSI {\n cursor: not-allowed;\n}\n\n/* Checkbox */\n.form-module_checkbox__XPkWy {\n --border: #022648;\n --border-hover: #959ed0;\n --tick: #fff;\n position: relative;\n /* color: var(--cardheader); */\n}\n.form-module_checkbox_label__VvcKs {\n font-size: 16px;\n text-transform: capitalize;\n font-weight: 500;\n cursor: pointer;\n}\n.form-module_checkbox__XPkWy:hover {\n /* color: var(--border-hover); */\n}\n.form-module_checkbox__XPkWy input,\n.form-module_checkbox__XPkWy svg {\n width: 16px;\n height: 16px;\n display: block;\n}\n.form-module_checkbox_sub__QWYil input {\n width: 15px;\n height: 15px;\n}\n.form-module_checkbox__XPkWy 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.form-module_checkbox__XPkWy input:disabled {\n cursor: not-allowed;\n}\n.form-module_checkbox__XPkWy input:hover {\n /* --s: 2px; */\n /* --b: var(--border-hover); */\n}\n.form-module_checkbox__XPkWy input:checked {\n /* --b: var(--secondary); */\n}\n.form-module_checkbox__XPkWy 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.form-module_checkbox_sub__QWYil 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.form-module_checkboxtranslated__zvEV- svg {\n right: 0;\n}\n.form-module_checkbox__XPkWy input:checked {\n --s: 2px;\n transition-delay: 0.4s;\n}\n.form-module_checkbox__XPkWy input:checked + svg {\n --a: 16.1 86.12;\n --o: 102.22;\n}\n.form-module_checkbox__XPkWy 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";
2443
- var formstyles = {"form_control":"form-module_form_control__4-RGw","form_controlcheckout":"form-module_form_controlcheckout__IoXvi","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-"};
2444
2441
  styleInject(css_248z$t);
2445
2442
 
2446
- function ownKeys$13(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; }
2447
-
2448
- function _objectSpread$13(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$13(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$13(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2449
- var defaultstyles = {
2450
- option: function option(provided, state) {
2451
- return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2452
- borderBottom: '1px solid #e6e6e6',
2453
- backgroundColor: state.isSelected ? '' : '',
2454
- padding: 5,
2455
- textTransform: 'capitalize',
2456
- color: state.isSelected ? '#eac435' : '#022648',
2457
- transition: '.3s',
2458
- '&:hover': {
2459
- // color: '#eac435',
2460
- cursor: 'pointer'
2461
- }
2462
- });
2463
- },
2464
- control: function control() {
2465
- return {
2466
- borderBottom: '1px solid #ccc',
2467
- backgroundColor: 'white',
2468
- display: 'flex',
2469
- cursor: 'pointer',
2470
- padding: 0,
2471
- transition: '.3s',
2472
- '&:hover': {// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
2473
- // borderRadius: '10px',
2474
- }
2475
- };
2476
- },
2477
- dropdownIndicator: function dropdownIndicator(provided) {
2478
- return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2479
- '&:hover': {// color: '#eac435',
2480
- }
2481
- });
2482
- }
2483
- };
2484
- var defaultstylestranslated = {
2485
- option: function option(provided, state) {
2486
- return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2487
- borderBottom: '1px solid #e6e6e6',
2488
- backgroundColor: state.isSelected ? '' : '',
2489
- padding: 5,
2490
- textTransform: 'capitalize',
2491
- // color: state.isSelected ? '#eac435' : '#022648',
2492
- transition: '.3s',
2493
- textAlign: 'right',
2494
- '&:hover': {
2495
- // color: '#eac435',
2496
- cursor: 'pointer'
2497
- }
2498
- });
2499
- },
2500
- control: function control() {
2501
- return {
2502
- borderBottom: '1px solid #ccc',
2503
- backgroundColor: 'white',
2504
- display: 'flex',
2505
- cursor: 'pointer',
2506
- padding: 0,
2507
- transition: '.3s',
2508
- textAlign: 'right',
2509
- '&:hover': {// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
2510
- // borderRadius: '10px',
2511
- }
2512
- };
2513
- },
2514
- dropdownIndicator: function dropdownIndicator(provided) {
2515
- return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2516
- '&:hover': {// color: '#eac435',
2517
- }
2518
- });
2519
- },
2520
- placeholder: function placeholder(provided, state) {
2521
- return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2522
- textAlign: 'right'
2523
- });
2524
- }
2525
- };
2526
-
2527
- function ownKeys$12(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; }
2528
-
2529
- function _objectSpread$12(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$12(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$12(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2530
-
2531
2443
  var Checkout = function Checkout(props) {
2532
- var _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _fetchcustomercartQue89, _fetchcustomercartQue90, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue97, _fetchcustomercartQue98;
2533
-
2534
- var _useState = React.useState(null),
2535
- _useState2 = _slicedToArray__default["default"](_useState, 2),
2536
- timer = _useState2[0],
2537
- settimer = _useState2[1];
2538
-
2539
- var langdetect = props.actions.langdetect;
2540
- var lang = props.actions.lang;
2541
- var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2542
- var routingcountext = props.actions.routingcountext;
2543
- var ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
2544
- var CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
2545
- var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2546
- var templatepropcontext = props.actions.templatepropcontext;
2547
- var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
2548
- var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
2549
- var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
2550
- var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
2551
- var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
2552
- var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
2553
- var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
2554
- var ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
2555
- var fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
2556
- var AddOrderMutationContext = props.actions.AddOrderMutationContext;
2557
- props.actions.fetchAuthorizationQueryContext;
2558
- var authdetailsContext = props.actions.authdetailsContext;
2559
- var NotificationManager = props.actions.NotificationManager;
2560
- var queryClient = props.actions.queryClient;
2561
-
2562
- var _useState3 = React.useState(''),
2563
- _useState4 = _slicedToArray__default["default"](_useState3, 2),
2564
- sectionproperties = _useState4[0],
2565
- setsectionproperties = _useState4[1];
2566
-
2567
- var _useState5 = React.useState(''),
2568
- _useState6 = _slicedToArray__default["default"](_useState5, 2),
2569
- CurrentPageId = _useState6[0],
2570
- setCurrentPageId = _useState6[1];
2571
-
2572
- React.useEffect(function () {
2573
- var _templatepropcontext$;
2574
-
2575
- var cartindex = templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
2576
- return x.staticpageid == '6218bccb82af8';
2577
- });
2578
-
2579
- if (cartindex >= 0) {
2580
- setCurrentPageId(cartindex);
2581
- }
2582
- }, []);
2583
- React.useEffect(function () {
2584
- var _templatepropcontext$2, _templatepropcontext$3;
2585
-
2586
- var secpropobj = {};
2587
- templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$2 = templatepropcontext.pagesnprop[CurrentPageId]) === null || _templatepropcontext$2 === void 0 ? void 0 : (_templatepropcontext$3 = _templatepropcontext$2.pageproperties) === null || _templatepropcontext$3 === void 0 ? void 0 : _templatepropcontext$3.forEach(function (arrayItem, arrayindex) {
2588
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2589
- });
2590
- setsectionproperties(_objectSpread$12({}, secpropobj));
2591
- }, [CurrentPageId]);
2592
- React.useEffect(function () {
2593
- if (CurrentSrcTypeContext == 'workplace') {
2594
- if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2595
- var _StatePagePropertiesC, _StatePagePropertiesC2;
2596
-
2597
- var secpropobj = {};
2598
- 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) {
2599
- secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2600
- });
2601
- setsectionproperties(_objectSpread$12({}, secpropobj));
2602
- }
2603
- }
2604
- }, [StatePagePropertiesContext]);
2605
- React.useEffect(function () {
2606
- var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
2607
-
2608
- // if (authdetailsContext.loggedin == true) {
2609
- var tempFetchQueriesEngineContext = _objectSpread$12({}, FetchQueriesEngineContext);
2610
-
2611
- tempFetchQueriesEngineContext.fetchtabexcountries = true;
2612
- setFetchQueriesEngineContext(_objectSpread$12({}, tempFetchQueriesEngineContext));
2613
-
2614
- var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
2615
-
2616
- if ( // Aya
2617
- !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue === void 0 ? void 0 : (_fetchcustomercartQue2 = _fetchcustomercartQue.data) === null || _fetchcustomercartQue2 === void 0 ? void 0 : _fetchcustomercartQue2.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue3 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue3 === void 0 ? void 0 : (_fetchcustomercartQue4 = _fetchcustomercartQue3.data) === null || _fetchcustomercartQue4 === void 0 ? void 0 : _fetchcustomercartQue4.customercart.countryid) != null && // End
2618
- (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue5 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue5 === void 0 ? void 0 : (_fetchcustomercartQue6 = _fetchcustomercartQue5.data) === null || _fetchcustomercartQue6 === void 0 ? void 0 : _fetchcustomercartQue6.customercart.countryid.length) != 0) {
2619
- var _fetchcustomercartQue7, _fetchcustomercartQue8;
2620
-
2621
- tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue7 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue7 === void 0 ? void 0 : (_fetchcustomercartQue8 = _fetchcustomercartQue7.data) === null || _fetchcustomercartQue8 === void 0 ? void 0 : _fetchcustomercartQue8.customercart.countryid;
2622
- }
2623
-
2624
- if ( // aya
2625
- !fetchcustomercartQueryContext.isFetching && fetchcustomercartQueryContext.isSuccess && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue9 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue9 === void 0 ? void 0 : (_fetchcustomercartQue10 = _fetchcustomercartQue9.data) === null || _fetchcustomercartQue10 === void 0 ? void 0 : _fetchcustomercartQue10.customercart) != undefined && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue11 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue11 === void 0 ? void 0 : (_fetchcustomercartQue12 = _fetchcustomercartQue11.data) === null || _fetchcustomercartQue12 === void 0 ? void 0 : _fetchcustomercartQue12.customercart.stateid) != null && // end
2626
- (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue13 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue13 === void 0 ? void 0 : (_fetchcustomercartQue14 = _fetchcustomercartQue13.data) === null || _fetchcustomercartQue14 === void 0 ? void 0 : _fetchcustomercartQue14.customercart.stateid.length) != 0) {
2627
- var _fetchcustomercartQue15, _fetchcustomercartQue16;
2628
-
2629
- tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue15 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue15 === void 0 ? void 0 : (_fetchcustomercartQue16 = _fetchcustomercartQue15.data) === null || _fetchcustomercartQue16 === void 0 ? void 0 : _fetchcustomercartQue16.customercart.stateid;
2630
- }
2631
-
2632
- setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext)); // } else {
2633
- // routingcountext('');
2634
- // }
2635
- }, []);
2636
-
2637
- var cartinfoupdater = function cartinfoupdater(key, value) {
2638
- var _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
2639
-
2640
- var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2641
- cartarr.data.customercart[key] = value;
2642
- queryClient.setQueryData('fetchcustomercart_API', cartarr);
2643
- var payloadobj = {
2644
- stateid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue17 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue17 === void 0 ? void 0 : (_fetchcustomercartQue18 = _fetchcustomercartQue17.data) === null || _fetchcustomercartQue18 === void 0 ? void 0 : _fetchcustomercartQue18.customercart.stateid,
2645
- countryid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue19 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue19 === void 0 ? void 0 : (_fetchcustomercartQue20 = _fetchcustomercartQue19.data) === null || _fetchcustomercartQue20 === void 0 ? void 0 : _fetchcustomercartQue20.customercart.countryid,
2646
- cityid: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue21 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue21 === void 0 ? void 0 : (_fetchcustomercartQue22 = _fetchcustomercartQue21.data) === null || _fetchcustomercartQue22 === void 0 ? void 0 : _fetchcustomercartQue22.customercart.cityid,
2647
- address: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue23 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue23 === void 0 ? void 0 : (_fetchcustomercartQue24 = _fetchcustomercartQue23.data) === null || _fetchcustomercartQue24 === void 0 ? void 0 : _fetchcustomercartQue24.customercart.address,
2648
- paymentmethod: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue25 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue25 === void 0 ? void 0 : (_fetchcustomercartQue26 = _fetchcustomercartQue25.data) === null || _fetchcustomercartQue26 === void 0 ? void 0 : _fetchcustomercartQue26.customercart.paymentmethod,
2649
- name: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue27 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue27 === void 0 ? void 0 : (_fetchcustomercartQue28 = _fetchcustomercartQue27.data) === null || _fetchcustomercartQue28 === void 0 ? void 0 : _fetchcustomercartQue28.customercart.name,
2650
- email: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue29 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue29 === void 0 ? void 0 : (_fetchcustomercartQue30 = _fetchcustomercartQue29.data) === null || _fetchcustomercartQue30 === void 0 ? void 0 : _fetchcustomercartQue30.customercart.email,
2651
- mobile: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue31 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue31 === void 0 ? void 0 : (_fetchcustomercartQue32 = _fetchcustomercartQue31.data) === null || _fetchcustomercartQue32 === void 0 ? void 0 : _fetchcustomercartQue32.customercart.mobile
2652
- };
2653
-
2654
- if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email') {
2655
- clearTimeout(timer);
2656
- settimer(setTimeout(function () {
2657
- ChooseState_CountryMutationContext.mutate(payloadobj);
2658
- }, 1500));
2659
- } else {
2660
- ChooseState_CountryMutationContext.mutate(payloadobj);
2661
- }
2662
- };
2663
-
2664
- var checkoutstyles = _defineProperty__default["default"]({
2665
- Salepricestyless: glamor.css({
2666
- fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2667
- fontWeight: sectionproperties.prodsalePriceFontWeight,
2668
- color: sectionproperties.prodsalePriceColor,
2669
- show: sectionproperties.prodsalePriceshow,
2670
- transition: '.3s'
2671
- }),
2672
- userinfo_iconcont: glamor.css({
2673
- width: sectionproperties.userinfo_iconwidth + 'px',
2674
- height: sectionproperties.userinfo_iconheight + 'px',
2675
- background: sectionproperties.userinfo_iconbg,
2676
- borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
2677
- color: sectionproperties.userinfo_iconcolor
2678
- }),
2679
- userinfotextstyles: glamor.css({
2680
- color: sectionproperties.userinfo_color,
2681
- fontWeight: sectionproperties.userinfo_fontweight,
2682
- fontSize: sectionproperties.userinfo_fontsize + 'px'
2683
- }),
2684
- input_label_name: glamor.css({
2685
- color: sectionproperties.form_labelcolor,
2686
- textTransform: sectionproperties.form_labeltexttransform,
2687
- fontWeight: sectionproperties.form_labelfontweight,
2688
- fontSize: sectionproperties.form_labelfontsize + 'px'
2689
- }),
2690
- checkbox: glamor.css({
2691
- color: sectionproperties.checkbox_color,
2692
- textTransform: sectionproperties.form_labeltexttransform,
2693
- fontWeight: sectionproperties.form_labelfontweight,
2694
- fontSize: sectionproperties.form_labelfontsize + 'px',
2695
- transition: '.3s',
2696
- ':hover': {
2697
- color: sectionproperties.checkbox_texthovercolor
2698
- },
2699
- 'input:checked': {
2700
- color: sectionproperties.checkbox_checkedcolor
2701
- }
2702
- }),
2703
- checkboxinputstyles: glamor.css({
2704
- ':hover:not(:checked)': {
2705
- boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor
2706
- },
2707
- ':checked': {
2708
- boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor
2709
- }
2710
- }),
2711
- svgstyles: glamor.css({
2712
- stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')'
2713
- }),
2714
- innersectiontitlestyles: glamor.css({
2715
- color: sectionproperties.innersection_titlecolor,
2716
- fontSize: sectionproperties.innersection_titlefontsize + 'px',
2717
- fontWeight: sectionproperties.innersection_titlefontweight,
2718
- textTransform: sectionproperties.innersection_titletextTransform
2719
- }),
2720
- summarysectionstyles: glamor.css({
2721
- fontSize: sectionproperties.summary_fontsize + 'px',
2722
- color: sectionproperties.summary_textcolor,
2723
- fontWeight: sectionproperties.summary_textfontweight,
2724
- textTransform: sectionproperties.summary_texttransform,
2725
- textAlign: langdetect == 'en' ? 'left' : 'right'
2726
- }),
2727
- checkoutbtnstyles: glamor.css({
2728
- background: sectionproperties.checkoutBtnbgColor,
2729
- width: sectionproperties.checkoutBtnWidth,
2730
- height: sectionproperties.checkoutBtnHeight,
2731
- borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
2732
- color: sectionproperties.checkoutBtnTextcolor,
2733
- textTransform: sectionproperties.checkoutBtnTexttransform,
2734
- fontWeight: sectionproperties.checkoutBtnTextfontweight,
2735
- fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
2736
- border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
2737
- transition: '.3s',
2738
- ':hover': {
2739
- background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
2740
- color: sectionproperties.checkoutBtnTextcoloronhover
2741
- }
2742
- }),
2743
- productNameStyles: glamor.css({
2744
- color: sectionproperties.prodNameColor,
2745
- fontSize: sectionproperties.prodNameFontSize + 'px',
2746
- textTransform: sectionproperties.prodNameTextTranform,
2747
- fontWeight: sectionproperties.prodNameFontWeight
2748
- }),
2749
- productPricestyles: glamor.css({
2750
- color: sectionproperties.prodPriceColor,
2751
- fontSize: sectionproperties.prodpriceFontSize + 'px',
2752
- fontWeight: sectionproperties.prodPriceFontWeight
2753
- }),
2754
- productSalePricestyles: glamor.css({
2755
- color: sectionproperties.prodsalePriceColor,
2756
- fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2757
- fontWeight: sectionproperties.prodsalePriceFontWeight
2758
- }),
2759
- imagecont: glamor.css({
2760
- width: '8vh',
2761
- height: '8vh',
2762
- border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
2763
- backgroundColor: sectionproperties.prodimage_bgcolor,
2764
- borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
2765
- borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
2766
- borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
2767
- borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
2768
- display: 'flex',
2769
- alignItems: 'center',
2770
- justifyContent: 'center',
2771
- backgroundRepeat: 'no-repeat',
2772
- backgroundSize: 'cover',
2773
- backgroundPosition: 'center',
2774
- position: 'relative'
2775
- }),
2776
- applybtnstyles: glamor.css({
2777
- width: sectionproperties.applybtn_width + 'px',
2778
- height: sectionproperties.applybtn_height + 'px',
2779
- borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
2780
- textTransform: sectionproperties.applybtn_texttransform,
2781
- fontSize: sectionproperties.applybtn_fontsize + 'px',
2782
- color: sectionproperties.applybtn_textColor,
2783
- fontWeight: sectionproperties.applybtn_Textfontweight,
2784
- background: sectionproperties.applybtn_bgColor,
2785
- border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
2786
- transition: '.3s',
2787
- ':hover': {
2788
- background: sectionproperties.applybtn_bgColoronhover,
2789
- color: sectionproperties.applybtn_Textcoloronhover
2790
- }
2791
- }),
2792
- inputfiledstyles: glamor.css({}),
2793
- checkorderbtnstyles: glamor.css({
2794
- background: sectionproperties.generalbtn_bgColor,
2795
- width: sectionproperties.generalbtn_width,
2796
- height: sectionproperties.generalbtn_height,
2797
- borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
2798
- borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
2799
- borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
2800
- borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
2801
- color: sectionproperties.generalbtn_textColor,
2802
- textTransform: sectionproperties.generalbtn_texttransform,
2803
- fontWeight: sectionproperties.generalbtn_fontweight,
2804
- fontSize: sectionproperties.generalbtn_fontsize + 'px',
2805
- border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
2806
- transition: '.3s',
2807
- ':hover': {
2808
- background: sectionproperties.generalbtn_bgColoronhover,
2809
- color: sectionproperties.generalbtn_textColoronhover
2810
- }
2811
- })
2812
- }, "input_label_name", glamor.css({
2813
- color: sectionproperties.form_labelcolor,
2814
- textTransform: sectionproperties.form_labeltexttransform,
2815
- fontWeight: sectionproperties.form_labelfontweight,
2816
- fontSize: sectionproperties.form_labelfontsize + 'px'
2817
- }));
2818
-
2819
- var Mycart = function Mycart() {
2820
- var _fetchcustomercartQue33, _fetchcustomercartQue34, _fetchcustomercartQue35, _fetchcustomercartQue36, _fetchcustomercartQue37, _fetchcustomercartQue38, _fetchcustomercartQue45, _fetchcustomercartQue46, _fetchcustomercartQue47, _fetchcustomercartQue48, _fetchcustomercartQue49, _fetchcustomercartQue50, _fetchcustomercartQue51, _fetchcustomercartQue52, _fetchcustomercartQue53, _fetchcustomercartQue54, _fetchcustomercartQue55, _fetchcustomercartQue56, _fetchcustomercartQue57, _fetchcustomercartQue58, _fetchcustomercartQue59, _fetchcustomercartQue60, _fetchcustomercartQue61, _fetchcustomercartQue62, _fetchcustomercartQue63, _fetchcustomercartQue64, _fetchcustomercartQue65, _fetchcustomercartQue66, _fetchcustomercartQue67, _fetchcustomercartQue68;
2821
-
2822
- return /*#__PURE__*/React__default["default"].createElement("div", {
2823
- className: "row m-0 w-100"
2824
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2825
- className: "col-lg-12 d-flex align-items-center p-0"
2826
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2827
- style: {
2828
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
2829
- color: sectionproperties.sectionTitleColor,
2830
- marginTop: sectionproperties.sectionTitleMarginTop + 'px',
2831
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
2832
- textTransform: sectionproperties.sectionTitleTextTransform,
2833
- fontWeight: sectionproperties.sectionTitleFontWeight
2834
- }
2835
- }, lang.mycart)), ChooseState_CountryMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, null), !ChooseState_CountryMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
2836
- className: "row m-0 w-100"
2837
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2838
- className: "col-lg-12 p-0"
2839
- }, fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue33 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue33 === void 0 ? void 0 : (_fetchcustomercartQue34 = _fetchcustomercartQue33.data) === null || _fetchcustomercartQue34 === void 0 ? void 0 : _fetchcustomercartQue34.customercart.cartitems.map(function (item, index) {
2840
- return /*#__PURE__*/React__default["default"].createElement("div", {
2841
- className: langdetect == 'en' ? 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pl-2 pr-0 mb-3' : 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pr-2 pl-0 mb-3',
2842
- style: {
2843
- background: sectionproperties.summary_sectionbgcolor,
2844
- borderRadius: sectionproperties.summary_sectionborderbottomleftradius + 'px',
2845
- border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor
2846
- }
2847
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2848
- className: "row m-0 w-100 d-flex"
2849
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2850
- className: "".concat(checkoutstyles.imagecont)
2851
- }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
2852
- urlEndpoint: IKurlEndpoint,
2853
- publicKey: IKpublicKey,
2854
- path: item.productinfo.hasvariants == 0 ? '/tr:w-300,h-300/' + item.productinfo.productmainimage : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl,
2855
- style: {
2856
- width: '100%',
2857
- height: '100%',
2858
- objectFit: 'cover'
2859
- },
2860
- loading: "lazy"
2861
- })), /*#__PURE__*/React__default["default"].createElement("div", {
2862
- className: "col-lg-7 col-md-7 col-sm-7"
2863
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2864
- className: "row m-0 w-100"
2865
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2866
- className: "col-lg-12 col-md-12 col-sm-12 p-0"
2867
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2868
- className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0 d-flex justify-content-start '
2869
- }, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
2870
- className: "col-lg-12 p-0"
2871
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2872
- className: "m-0 p-0 font-weight-500 text-light d-flex justify-content-start"
2873
- }, lang.qty, ": ", item.quantity)), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
2874
- return /*#__PURE__*/React__default["default"].createElement("div", {
2875
- className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
2876
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2877
- className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
2878
- }, variantitem.optionname, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
2879
- className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
2880
- }, variantitem.optionvalue));
2881
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
2882
- className: "col-lg-3 col-md-3 col-sm-2 p-0"
2883
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2884
- className: "row m-0 w-100 h-100"
2885
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2886
- className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto"
2887
- }, item.productinfo.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2888
- className: "row m-0 w-100 d-flex flex-column justify-content-end"
2889
- }, item.productinfo.hassale == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2890
- className: "col-lg-12 p-0 d-flex justify-content-end"
2891
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2892
- className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2893
- }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')), item.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2894
- className: "row m-0 w-100 d-flex flex-column justify-content-end"
2895
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2896
- className: "col-lg-12 p-0 d-flex justify-content-end"
2897
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2898
- className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2899
- }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultsaleprice, " ", langdetect == 'en' ? '' : 'ج.م')), /*#__PURE__*/React__default["default"].createElement("div", {
2900
- className: "col-lg-12 p-0 d-flex justify-content-end"
2901
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2902
- className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak text-left '
2903
- }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')))), item.productinfo.hasvariants == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2904
- className: "row m-0 w-100 d-flex flex-column justify-content-end"
2905
- }, item.productinfo.variantinfo.hassale == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2906
- className: "col-lg-12 p-0 d-flex justify-content-end"
2907
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2908
- className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2909
- }, langdetect == 'en' ? 'EGP' : 'ج.م', " ", item.productinfo.variantinfo.variantprice)), item.productinfo.variantinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2910
- className: "row m-0 w-100 d-flex flex-column justify-content-end"
2911
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2912
- className: "col-lg-12 p-0 d-flex justify-content-end"
2913
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2914
- className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
2915
- }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.variantinfo.variantsaleprice, langdetect == 'en' ? '' : 'ج.م')), /*#__PURE__*/React__default["default"].createElement("div", {
2916
- className: "col-lg-12 p-0 d-flex justify-content-end"
2917
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2918
- className: langdetect == 'en' ? "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right ' : "".concat(checkoutstyles.Salepricestyless) + ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
2919
- }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.variantinfo.variantprice, " ", langdetect == 'en' ? '' : 'ج.م')))))))));
2920
- }), /*#__PURE__*/React__default["default"].createElement("div", {
2921
- className: ' row m-0 w-100 p-3',
2922
- style: {
2923
- background: sectionproperties.summary_sectionbgcolor,
2924
- borderRadius: sectionproperties.summary_sectionborderradius + 'px',
2925
- border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor
2926
- }
2927
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2928
- className: "col-lg-12 p-0 mb-1"
2929
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2930
- className: "col-lg-12 p-0 mb-4"
2931
- }, /*#__PURE__*/React__default["default"].createElement("label", {
2932
- className: "".concat(checkoutstyles.input_label_name) + ' m-0 p-0 mb-2 d-flex justify-content-start '
2933
- }, lang.doyouhavepromocode), /*#__PURE__*/React__default["default"].createElement("div", {
2934
- className: ' row m-0 w-100 d-flex justify-content-center align-items-center '
2935
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2936
- className: 'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'
2937
- }, /*#__PURE__*/React__default["default"].createElement("input", {
2938
- type: "text",
2939
- className: "".concat(formstyles.form_control),
2940
- style: {
2941
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
2942
- fontSize: sectionproperties.inputfieldfontsize + 'px',
2943
- color: sectionproperties.inputfieldcolor,
2944
- backgroundColor: sectionproperties.input_bgcolor
2945
- },
2946
- placeholder: lang.giftcarddicountcode,
2947
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue35 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue35 === void 0 ? void 0 : (_fetchcustomercartQue36 = _fetchcustomercartQue35.data) === null || _fetchcustomercartQue36 === void 0 ? void 0 : _fetchcustomercartQue36.customercart.couponname,
2948
- onChange: function onChange(event) {
2949
- var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2950
- cartarr.data.customercart.couponname = event.target.value;
2951
- queryClient.setQueryData('fetchcustomercart_API', cartarr);
2952
- },
2953
- disabled: fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue37 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue37 !== void 0 && (_fetchcustomercartQue38 = _fetchcustomercartQue37.data) !== null && _fetchcustomercartQue38 !== void 0 && _fetchcustomercartQue38.customercart.couponexists ? true : false
2954
- })), /*#__PURE__*/React__default["default"].createElement("div", {
2955
- className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center"
2956
- }, /*#__PURE__*/React__default["default"].createElement("button", {
2957
- className: " ".concat(checkoutstyles.applybtnstyles),
2958
- onClick: function onClick() {
2959
- var _fetchcustomercartQue39, _fetchcustomercartQue40;
2960
-
2961
- if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue39 !== void 0 && (_fetchcustomercartQue40 = _fetchcustomercartQue39.data) !== null && _fetchcustomercartQue40 !== void 0 && _fetchcustomercartQue40.customercart.couponexists)) {
2962
- var _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44;
2963
-
2964
- var payloadobj = {
2965
- couponname: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue41 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue41 === void 0 ? void 0 : (_fetchcustomercartQue42 = _fetchcustomercartQue41.data) === null || _fetchcustomercartQue42 === void 0 ? void 0 : _fetchcustomercartQue42.customercart.couponname,
2966
- functype: 'add'
2967
- };
2968
-
2969
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue43 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue43 === void 0 ? void 0 : (_fetchcustomercartQue44 = _fetchcustomercartQue43.data) === null || _fetchcustomercartQue44 === void 0 ? void 0 : _fetchcustomercartQue44.customercart.couponname.length) != 0) {
2970
- ApplyPromoCodeMutationContext.mutate(payloadobj);
2971
- } else {
2972
- NotificationManager.warning('', 'Please Type Promo Code');
2973
- }
2974
- } else {
2975
- var payloadobj = {
2976
- functype: 'delete'
2977
- };
2978
- ApplyPromoCodeMutationContext.mutate(payloadobj);
2979
- }
2980
- },
2981
- disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
2982
- }, /*#__PURE__*/React__default["default"].createElement("span", {
2983
- className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
2984
- }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue45 !== void 0 && (_fetchcustomercartQue46 = _fetchcustomercartQue45.data) !== null && _fetchcustomercartQue46 !== void 0 && _fetchcustomercartQue46.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React__default["default"].createElement("div", {
2985
- className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeInButton, " ").concat(generalstyles.btn_preloader) + ' d-flex align-items-center justify-content-center ' : "".concat(generalstyles.fadeOutButton) + ' align-items-center justify-content-center '
2986
- }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
2987
- color: "#fff",
2988
- width: "20px",
2989
- height: "20px",
2990
- duration: "1s"
2991
- })))))), /*#__PURE__*/React__default["default"].createElement("div", {
2992
- className: "row m-0 w-100"
2993
- }, /*#__PURE__*/React__default["default"].createElement("div", {
2994
- className: "col-lg-6 col-md-6 col-sm-6 p-0"
2995
- }, /*#__PURE__*/React__default["default"].createElement("p", {
2996
- className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
2997
- }, lang.subtotal)), /*#__PURE__*/React__default["default"].createElement("div", {
2998
- className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
2999
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3000
- className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
3001
- }, langdetect == 'en' ? 'EGP' : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 ? void 0 : (_fetchcustomercartQue48 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.totalprice, " ", langdetect == 'en' ? '' : 'ج.م')))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue49 === void 0 ? void 0 : (_fetchcustomercartQue50 = _fetchcustomercartQue49.data) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : (_fetchcustomercartQue52 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
3002
- className: "col-lg-12 p-0 mb-1"
3003
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3004
- className: "row m-0 w-100"
3005
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3006
- className: "col-lg-6 col-md-6 col-sm-6 p-0"
3007
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3008
- className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '
3009
- }, lang.discount)), /*#__PURE__*/React__default["default"].createElement("div", {
3010
- className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
3011
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3012
- className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 text-danger wordbreak text-left '
3013
- }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : (_fetchcustomercartQue54 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "- ", langdetect == 'en' ? 'EGP' : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : (_fetchcustomercartQue56 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.customercart.discountprice, ' ', langdetect == 'en' ? '' : 'ج.م'), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : (_fetchcustomercartQue58 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), /*#__PURE__*/React__default["default"].createElement("div", {
3014
- className: "col-lg-12 p-0"
3015
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3016
- className: "row m-0 w-100"
3017
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3018
- className: "col-lg-6 col-md-6 col-sm-6 p-0"
3019
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3020
- className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
3021
- }, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : (_fetchcustomercartQue60 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
3022
- className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
3023
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3024
- className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
3025
- }, langdetect == 'en' ? 'EGP' : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : (_fetchcustomercartQue62 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.zoneprice, " ", langdetect == 'en' ? '' : 'ج.م')), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue63 !== void 0 && (_fetchcustomercartQue64 = _fetchcustomercartQue63.data) !== null && _fetchcustomercartQue64 !== void 0 && _fetchcustomercartQue64.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
3026
- className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
3027
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3028
- className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
3029
- style: {
3030
- color: 'red'
3031
- }
3032
- }, lang.outofzone)))), /*#__PURE__*/React__default["default"].createElement("div", {
3033
- className: "col-lg-12 p-0"
3034
- }, /*#__PURE__*/React__default["default"].createElement("hr", {
3035
- className: "mt-2 mb-2"
3036
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3037
- className: "col-lg-12 p-0"
3038
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3039
- className: "row m-0 w-100"
3040
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3041
- className: "col-lg-6 col-md-6 col-sm-6 p-0"
3042
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3043
- className: "d-flex align-items-start",
3044
- style: {
3045
- fontSize: sectionproperties.total_fontsize + 'px',
3046
- fontWeight: sectionproperties.total_fontweight,
3047
- textTransform: sectionproperties.total_texttransform,
3048
- color: sectionproperties.total_color
3049
- }
3050
- }, lang.total)), /*#__PURE__*/React__default["default"].createElement("div", {
3051
- className: "col-lg-6 col-md-6 col-sm-6 p-0"
3052
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3053
- className: "row m-0 w-100"
3054
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3055
- className: "col-lg-12 p-0 d-flex justify-content-end "
3056
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3057
- className: langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left ',
3058
- style: {
3059
- fontSize: sectionproperties.total_fontsize + 'px',
3060
- fontWeight: sectionproperties.total_fontweight,
3061
- textTransform: sectionproperties.total_texttransform,
3062
- color: sectionproperties.total_color
3063
- }
3064
- }, langdetect == 'en' ? 'EGP' : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : (_fetchcustomercartQue66 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.totalpriceafterdiscount, ' ', langdetect == 'en' ? '' : 'ج.م')))))), /*#__PURE__*/React__default["default"].createElement("div", {
3065
- className: "col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3"
3066
- }, /*#__PURE__*/React__default["default"].createElement("button", {
3067
- className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
3068
- onClick: function onClick() {
3069
- var payloadobj = {};
3070
- AddOrderMutationContext.mutate(payloadobj);
3071
- },
3072
- disabled: AddOrderMutationContext.isLoading ? true : false
3073
- }, AddOrderMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3074
- color: "#fff",
3075
- width: "20px",
3076
- height: "20px",
3077
- duration: "1s"
3078
- }), !AddOrderMutationContext.isLoading ? (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue67 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue67 === void 0 ? void 0 : (_fetchcustomercartQue68 = _fetchcustomercartQue67.data) === null || _fetchcustomercartQue68 === void 0 ? void 0 : _fetchcustomercartQue68.customercart.paymentmethod) == 'onlinepayment' ? lang.continuetopayment : authdetailsContext.loggedin ? lang.confirmorder : lang.confirmorder + ' ' + lang.asaguest : ''))))));
3079
- };
3080
-
2444
+ // const [timer, settimer] = useState(null);
2445
+ // const langdetect = props.actions.langdetect;
2446
+ // const lang = props.actions.lang;
2447
+ // const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2448
+ // const routingcountext = props.actions.routingcountext;
2449
+ // const ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
2450
+ // const CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
2451
+ // const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2452
+ // const templatepropcontext = props.actions.templatepropcontext;
2453
+ // const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
2454
+ // const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
2455
+ // const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
2456
+ // const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
2457
+ // const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
2458
+ // const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
2459
+ // const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
2460
+ // const ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
2461
+ // const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
2462
+ // const AddOrderMutationContext = props.actions.AddOrderMutationContext;
2463
+ // const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
2464
+ // const authdetailsContext = props.actions.authdetailsContext;
2465
+ // const NotificationManager = props.actions.NotificationManager;
2466
+ // const queryClient = props.actions.queryClient;
2467
+ // const [sectionproperties, setsectionproperties] = useState('');
2468
+ // const [CurrentPageId, setCurrentPageId] = useState('');
2469
+ // useEffect(() => {
2470
+ // var cartindex = templatepropcontext?.pagesnprop?.findIndex((x) => x.staticpageid == '6218bccb82af8');
2471
+ // if (cartindex >= 0) {
2472
+ // setCurrentPageId(cartindex);
2473
+ // }
2474
+ // }, []);
2475
+ // useEffect(() => {
2476
+ // var secpropobj = {};
2477
+ // templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
2478
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2479
+ // });
2480
+ // setsectionproperties({ ...secpropobj });
2481
+ // }, [CurrentPageId]);
2482
+ // useEffect(() => {
2483
+ // if (CurrentSrcTypeContext == 'workplace') {
2484
+ // if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2485
+ // var secpropobj = {};
2486
+ // StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
2487
+ // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2488
+ // });
2489
+ // setsectionproperties({ ...secpropobj });
2490
+ // }
2491
+ // }
2492
+ // }, [StatePagePropertiesContext]);
2493
+ // useEffect(() => {
2494
+ // // if (authdetailsContext.loggedin == true) {
2495
+ // var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
2496
+ // tempFetchQueriesEngineContext.fetchtabexcountries = true;
2497
+ // setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
2498
+ // var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
2499
+ // if (
2500
+ // // Aya
2501
+ // !fetchcustomercartQueryContext.isFetching &&
2502
+ // fetchcustomercartQueryContext.isSuccess &&
2503
+ // fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
2504
+ // fetchcustomercartQueryContext?.data?.data?.customercart.countryid != null &&
2505
+ // // End
2506
+ // fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0
2507
+ // ) {
2508
+ // tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext?.data?.data?.customercart.countryid;
2509
+ // }
2510
+ // if (
2511
+ // // aya
2512
+ // !fetchcustomercartQueryContext.isFetching &&
2513
+ // fetchcustomercartQueryContext.isSuccess &&
2514
+ // fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
2515
+ // fetchcustomercartQueryContext?.data?.data?.customercart.stateid != null &&
2516
+ // // end
2517
+ // fetchcustomercartQueryContext?.data?.data?.customercart.stateid.length != 0
2518
+ // ) {
2519
+ // tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext?.data?.data?.customercart.stateid;
2520
+ // }
2521
+ // setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
2522
+ // // } else {
2523
+ // // routingcountext('');
2524
+ // // }
2525
+ // }, []);
2526
+ // const cartinfoupdater = (key, value) => {
2527
+ // var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2528
+ // cartarr.data.customercart[key] = value;
2529
+ // queryClient.setQueryData('fetchcustomercart_API', cartarr);
2530
+ // var payloadobj = {
2531
+ // stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
2532
+ // countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
2533
+ // cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
2534
+ // address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
2535
+ // paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
2536
+ // name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
2537
+ // email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
2538
+ // mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
2539
+ // };
2540
+ // if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email') {
2541
+ // clearTimeout(timer);
2542
+ // settimer(
2543
+ // setTimeout(() => {
2544
+ // ChooseState_CountryMutationContext.mutate(payloadobj);
2545
+ // }, 1500),
2546
+ // );
2547
+ // } else {
2548
+ // ChooseState_CountryMutationContext.mutate(payloadobj);
2549
+ // }
2550
+ // };
2551
+ // const checkoutstyles = {
2552
+ // Salepricestyless: css({
2553
+ // fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2554
+ // fontWeight: sectionproperties.prodsalePriceFontWeight,
2555
+ // color: sectionproperties.prodsalePriceColor,
2556
+ // show: sectionproperties.prodsalePriceshow,
2557
+ // transition: '.3s',
2558
+ // }),
2559
+ // userinfo_iconcont: css({
2560
+ // width: sectionproperties.userinfo_iconwidth + 'px',
2561
+ // height: sectionproperties.userinfo_iconheight + 'px',
2562
+ // background: sectionproperties.userinfo_iconbg,
2563
+ // borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
2564
+ // color: sectionproperties.userinfo_iconcolor,
2565
+ // }),
2566
+ // userinfotextstyles: css({
2567
+ // color: sectionproperties.userinfo_color,
2568
+ // fontWeight: sectionproperties.userinfo_fontweight,
2569
+ // fontSize: sectionproperties.userinfo_fontsize + 'px',
2570
+ // }),
2571
+ // input_label_name: css({
2572
+ // color: sectionproperties.form_labelcolor,
2573
+ // textTransform: sectionproperties.form_labeltexttransform,
2574
+ // fontWeight: sectionproperties.form_labelfontweight,
2575
+ // fontSize: sectionproperties.form_labelfontsize + 'px',
2576
+ // }),
2577
+ // checkbox: css({
2578
+ // color: sectionproperties.checkbox_color,
2579
+ // textTransform: sectionproperties.form_labeltexttransform,
2580
+ // fontWeight: sectionproperties.form_labelfontweight,
2581
+ // fontSize: sectionproperties.form_labelfontsize + 'px',
2582
+ // transition: '.3s',
2583
+ // ':hover': {
2584
+ // color: sectionproperties.checkbox_texthovercolor,
2585
+ // },
2586
+ // 'input:checked': {
2587
+ // color: sectionproperties.checkbox_checkedcolor,
2588
+ // },
2589
+ // }),
2590
+ // checkboxinputstyles: css({
2591
+ // ':hover:not(:checked)': {
2592
+ // boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
2593
+ // },
2594
+ // ':checked': {
2595
+ // boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
2596
+ // },
2597
+ // }),
2598
+ // svgstyles: css({
2599
+ // stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
2600
+ // }),
2601
+ // innersectiontitlestyles: css({
2602
+ // color: sectionproperties.innersection_titlecolor,
2603
+ // fontSize: sectionproperties.innersection_titlefontsize + 'px',
2604
+ // fontWeight: sectionproperties.innersection_titlefontweight,
2605
+ // textTransform: sectionproperties.innersection_titletextTransform,
2606
+ // }),
2607
+ // summarysectionstyles: css({
2608
+ // fontSize: sectionproperties.summary_fontsize + 'px',
2609
+ // color: sectionproperties.summary_textcolor,
2610
+ // fontWeight: sectionproperties.summary_textfontweight,
2611
+ // textTransform: sectionproperties.summary_texttransform,
2612
+ // textAlign: langdetect == 'en' ? 'left' : 'right',
2613
+ // }),
2614
+ // checkoutbtnstyles: css({
2615
+ // background: sectionproperties.checkoutBtnbgColor,
2616
+ // width: sectionproperties.checkoutBtnWidth,
2617
+ // height: sectionproperties.checkoutBtnHeight,
2618
+ // borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
2619
+ // color: sectionproperties.checkoutBtnTextcolor,
2620
+ // textTransform: sectionproperties.checkoutBtnTexttransform,
2621
+ // fontWeight: sectionproperties.checkoutBtnTextfontweight,
2622
+ // fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
2623
+ // border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
2624
+ // transition: '.3s',
2625
+ // ':hover': {
2626
+ // background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
2627
+ // color: sectionproperties.checkoutBtnTextcoloronhover,
2628
+ // },
2629
+ // }),
2630
+ // productNameStyles: css({
2631
+ // color: sectionproperties.prodNameColor,
2632
+ // fontSize: sectionproperties.prodNameFontSize + 'px',
2633
+ // textTransform: sectionproperties.prodNameTextTranform,
2634
+ // fontWeight: sectionproperties.prodNameFontWeight,
2635
+ // }),
2636
+ // productPricestyles: css({
2637
+ // color: sectionproperties.prodPriceColor,
2638
+ // fontSize: sectionproperties.prodpriceFontSize + 'px',
2639
+ // fontWeight: sectionproperties.prodPriceFontWeight,
2640
+ // }),
2641
+ // productSalePricestyles: css({
2642
+ // color: sectionproperties.prodsalePriceColor,
2643
+ // fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2644
+ // fontWeight: sectionproperties.prodsalePriceFontWeight,
2645
+ // }),
2646
+ // imagecont: css({
2647
+ // width: '8vh',
2648
+ // height: '8vh',
2649
+ // border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
2650
+ // backgroundColor: sectionproperties.prodimage_bgcolor,
2651
+ // borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
2652
+ // borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
2653
+ // borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
2654
+ // borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
2655
+ // display: 'flex',
2656
+ // alignItems: 'center',
2657
+ // justifyContent: 'center',
2658
+ // backgroundRepeat: 'no-repeat',
2659
+ // backgroundSize: 'cover',
2660
+ // backgroundPosition: 'center',
2661
+ // position: 'relative',
2662
+ // }),
2663
+ // applybtnstyles: css({
2664
+ // width: sectionproperties.applybtn_width + 'px',
2665
+ // height: sectionproperties.applybtn_height + 'px',
2666
+ // borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
2667
+ // textTransform: sectionproperties.applybtn_texttransform,
2668
+ // fontSize: sectionproperties.applybtn_fontsize + 'px',
2669
+ // color: sectionproperties.applybtn_textColor,
2670
+ // fontWeight: sectionproperties.applybtn_Textfontweight,
2671
+ // background: sectionproperties.applybtn_bgColor,
2672
+ // border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
2673
+ // transition: '.3s',
2674
+ // ':hover': {
2675
+ // background: sectionproperties.applybtn_bgColoronhover,
2676
+ // color: sectionproperties.applybtn_Textcoloronhover,
2677
+ // },
2678
+ // }),
2679
+ // inputfiledstyles: css({}),
2680
+ // checkorderbtnstyles: css({
2681
+ // background: sectionproperties.generalbtn_bgColor,
2682
+ // width: sectionproperties.generalbtn_width,
2683
+ // height: sectionproperties.generalbtn_height,
2684
+ // borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
2685
+ // borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
2686
+ // borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
2687
+ // borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
2688
+ // color: sectionproperties.generalbtn_textColor,
2689
+ // textTransform: sectionproperties.generalbtn_texttransform,
2690
+ // fontWeight: sectionproperties.generalbtn_fontweight,
2691
+ // fontSize: sectionproperties.generalbtn_fontsize + 'px',
2692
+ // border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
2693
+ // transition: '.3s',
2694
+ // ':hover': {
2695
+ // background: sectionproperties.generalbtn_bgColoronhover,
2696
+ // color: sectionproperties.generalbtn_textColoronhover,
2697
+ // },
2698
+ // }),
2699
+ // input_label_name: css({
2700
+ // color: sectionproperties.form_labelcolor,
2701
+ // textTransform: sectionproperties.form_labeltexttransform,
2702
+ // fontWeight: sectionproperties.form_labelfontweight,
2703
+ // fontSize: sectionproperties.form_labelfontsize + 'px',
2704
+ // }),
2705
+ // };
2706
+ // const Mycart = () => {
2707
+ // return (
2708
+ // <div className="row m-0 w-100">
2709
+ // <div className="col-lg-12 d-flex align-items-center p-0">
2710
+ // <p
2711
+ // style={{
2712
+ // fontSize: sectionproperties.sectionTitleFontSize + 'px',
2713
+ // color: sectionproperties.sectionTitleColor,
2714
+ // marginTop: sectionproperties.sectionTitleMarginTop + 'px',
2715
+ // marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
2716
+ // textTransform: sectionproperties.sectionTitleTextTransform,
2717
+ // fontWeight: sectionproperties.sectionTitleFontWeight,
2718
+ // }}
2719
+ // >
2720
+ // {lang.mycart}
2721
+ // </p>
2722
+ // </div>
2723
+ // {ChooseState_CountryMutationContext.isLoading && <CircularProgress />}
2724
+ // {!ChooseState_CountryMutationContext.isLoading && (
2725
+ // <div className="row m-0 w-100">
2726
+ // <div className="col-lg-12 p-0">
2727
+ // {fetchcustomercartQueryContext?.data?.data?.customercart.cartitems.map((item, index) => {
2728
+ // return (
2729
+ // <div
2730
+ // className={langdetect == 'en' ? 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pl-2 pr-0 mb-3' : 'col-lg-12 col-md-12 col-sm-12 pt-3 pb-3 pr-2 pl-0 mb-3'}
2731
+ // style={{
2732
+ // background: sectionproperties.summary_sectionbgcolor,
2733
+ // borderRadius: sectionproperties.summary_sectionborderbottomleftradius + 'px',
2734
+ // border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
2735
+ // }}
2736
+ // >
2737
+ // <div className="row m-0 w-100 d-flex">
2738
+ // <div className={`${checkoutstyles.imagecont}`}>
2739
+ // <IKImage
2740
+ // urlEndpoint={IKurlEndpoint}
2741
+ // publicKey={IKpublicKey}
2742
+ // path={
2743
+ // item.productinfo.hasvariants == 0
2744
+ // ? '/tr:w-300,h-300/' + item.productinfo.productmainimage
2745
+ // : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl
2746
+ // }
2747
+ // style={{
2748
+ // width: '100%',
2749
+ // height: '100%',
2750
+ // objectFit: 'cover',
2751
+ // }}
2752
+ // loading="lazy"
2753
+ // />
2754
+ // </div>
2755
+ // <div className="col-lg-7 col-md-7 col-sm-7">
2756
+ // <div className="row m-0 w-100">
2757
+ // <div className="col-lg-12 col-md-12 col-sm-12 p-0">
2758
+ // <p className={`${checkoutstyles.productNameStyles}` + ' m-0 p-0 d-flex justify-content-start '}>
2759
+ // {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
2760
+ // </p>
2761
+ // </div>
2762
+ // <div className="col-lg-12 p-0">
2763
+ // <p className="m-0 p-0 font-weight-500 text-light d-flex justify-content-start">
2764
+ // {lang.qty}: {item.quantity}
2765
+ // </p>
2766
+ // </div>
2767
+ // {item.productinfo.hasvariants == 1 &&
2768
+ // item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
2769
+ // return (
2770
+ // <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
2771
+ // <p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>{variantitem.optionname}:</p>
2772
+ // <p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}>{variantitem.optionvalue}</p>
2773
+ // </div>
2774
+ // );
2775
+ // })}
2776
+ // </div>
2777
+ // </div>
2778
+ // <div className="col-lg-3 col-md-3 col-sm-2 p-0">
2779
+ // <div className="row m-0 w-100 h-100">
2780
+ // <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
2781
+ // {item.productinfo.hasvariants == 0 && (
2782
+ // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2783
+ // {item.productinfo.hassale == 0 && (
2784
+ // <div className="col-lg-12 p-0 d-flex justify-content-end">
2785
+ // <p
2786
+ // className={
2787
+ // langdetect == 'en'
2788
+ // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2789
+ // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2790
+ // }
2791
+ // >
2792
+ // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
2793
+ // </p>
2794
+ // </div>
2795
+ // )}
2796
+ // {item.productinfo.hassale == 1 && (
2797
+ // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2798
+ // <div className="col-lg-12 p-0 d-flex justify-content-end">
2799
+ // <p
2800
+ // className={
2801
+ // langdetect == 'en'
2802
+ // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2803
+ // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2804
+ // }
2805
+ // >
2806
+ // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultsaleprice} {langdetect == 'en' ? '' : 'ج.م'}
2807
+ // </p>
2808
+ // </div>
2809
+ // <div className="col-lg-12 p-0 d-flex justify-content-end">
2810
+ // <p
2811
+ // className={
2812
+ // langdetect == 'en'
2813
+ // ? `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-right '
2814
+ // : `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-left '
2815
+ // }
2816
+ // >
2817
+ // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
2818
+ // </p>
2819
+ // </div>
2820
+ // </div>
2821
+ // )}
2822
+ // </div>
2823
+ // )}
2824
+ // {item.productinfo.hasvariants == 1 && (
2825
+ // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2826
+ // {item.productinfo.variantinfo.hassale == 0 && (
2827
+ // <div className="col-lg-12 p-0 d-flex justify-content-end">
2828
+ // <p
2829
+ // className={
2830
+ // langdetect == 'en'
2831
+ // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2832
+ // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2833
+ // }
2834
+ // >
2835
+ // {langdetect == 'en' ? 'EGP' : 'ج.م'} {item.productinfo.variantinfo.variantprice}
2836
+ // </p>
2837
+ // </div>
2838
+ // )}
2839
+ // {item.productinfo.variantinfo.hassale == 1 && (
2840
+ // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2841
+ // <div className="col-lg-12 p-0 d-flex justify-content-end">
2842
+ // <p
2843
+ // className={
2844
+ // langdetect == 'en'
2845
+ // ? `${checkoutstyles.productPricestyles}` +
2846
+ // ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
2847
+ // : `${checkoutstyles.productPricestyles}` +
2848
+ // ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
2849
+ // }
2850
+ // >
2851
+ // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantsaleprice}
2852
+ // {langdetect == 'en' ? '' : 'ج.م'}
2853
+ // </p>
2854
+ // </div>
2855
+ // <div className="col-lg-12 p-0 d-flex justify-content-end">
2856
+ // <p
2857
+ // className={
2858
+ // langdetect == 'en'
2859
+ // ? `${checkoutstyles.Salepricestyless}` +
2860
+ // ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
2861
+ // : `${checkoutstyles.Salepricestyless}` +
2862
+ // ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
2863
+ // }
2864
+ // >
2865
+ // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice} {langdetect == 'en' ? '' : 'ج.م'}
2866
+ // </p>
2867
+ // </div>
2868
+ // </div>
2869
+ // )}
2870
+ // </div>
2871
+ // )}
2872
+ // </div>
2873
+ // </div>
2874
+ // </div>
2875
+ // </div>
2876
+ // </div>
2877
+ // );
2878
+ // })}
2879
+ // <div
2880
+ // className={' row m-0 w-100 p-3'}
2881
+ // style={{
2882
+ // background: sectionproperties.summary_sectionbgcolor,
2883
+ // borderRadius: sectionproperties.summary_sectionborderradius + 'px',
2884
+ // border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
2885
+ // }}
2886
+ // >
2887
+ // <div className="col-lg-12 p-0 mb-1">
2888
+ // <div className="col-lg-12 p-0 mb-4">
2889
+ // <label className={`${checkoutstyles.input_label_name}` + ' m-0 p-0 mb-2 d-flex justify-content-start '}>{lang.doyouhavepromocode}</label>
2890
+ // <div className={' row m-0 w-100 d-flex justify-content-center align-items-center '}>
2891
+ // <div className={'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'}>
2892
+ // <input
2893
+ // type="text"
2894
+ // className={`${formstyles.form_control}`}
2895
+ // style={{
2896
+ // borderRadius: sectionproperties.inputfieldborderradius + 'px',
2897
+ // fontSize: sectionproperties.inputfieldfontsize + 'px',
2898
+ // color: sectionproperties.inputfieldcolor,
2899
+ // backgroundColor: sectionproperties.input_bgcolor,
2900
+ // }}
2901
+ // placeholder={lang.giftcarddicountcode}
2902
+ // value={fetchcustomercartQueryContext?.data?.data?.customercart.couponname}
2903
+ // onChange={(event) => {
2904
+ // var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2905
+ // cartarr.data.customercart.couponname = event.target.value;
2906
+ // queryClient.setQueryData('fetchcustomercart_API', cartarr);
2907
+ // }}
2908
+ // disabled={fetchcustomercartQueryContext?.data?.data?.customercart.couponexists ? true : false}
2909
+ // />
2910
+ // </div>
2911
+ // <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
2912
+ // <button
2913
+ // className={` ${checkoutstyles.applybtnstyles}`}
2914
+ // onClick={() => {
2915
+ // if (!fetchcustomercartQueryContext?.data?.data?.customercart.couponexists) {
2916
+ // var payloadobj = {
2917
+ // couponname: fetchcustomercartQueryContext?.data?.data?.customercart.couponname,
2918
+ // functype: 'add',
2919
+ // };
2920
+ // if (fetchcustomercartQueryContext?.data?.data?.customercart.couponname.length != 0) {
2921
+ // ApplyPromoCodeMutationContext.mutate(payloadobj);
2922
+ // } else {
2923
+ // NotificationManager.warning('', 'Please Type Promo Code');
2924
+ // }
2925
+ // } else {
2926
+ // var payloadobj = {
2927
+ // functype: 'delete',
2928
+ // };
2929
+ // ApplyPromoCodeMutationContext.mutate(payloadobj);
2930
+ // }
2931
+ // }}
2932
+ // disabled={ApplyPromoCodeMutationContext.isLoading ? true : false}
2933
+ // >
2934
+ // <span className={ApplyPromoCodeMutationContext.isLoading ? `${generalstyles.fadeOutButton}` : `${generalstyles.fadeInButton}`}>
2935
+ // {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists
2936
+ // ? langdetect == 'en'
2937
+ // ? 'Remove'
2938
+ // : 'حذف'
2939
+ // : langdetect == 'en'
2940
+ // ? 'Apply'
2941
+ // : 'تطبيق'}
2942
+ // </span>
2943
+ // <div
2944
+ // className={
2945
+ // ApplyPromoCodeMutationContext.isLoading
2946
+ // ? `${generalstyles.fadeInButton} ${generalstyles.btn_preloader}` + ' d-flex align-items-center justify-content-center '
2947
+ // : `${generalstyles.fadeOutButton}` + ' align-items-center justify-content-center '
2948
+ // }
2949
+ // >
2950
+ // <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />
2951
+ // </div>
2952
+ // </button>
2953
+ // </div>
2954
+ // </div>
2955
+ // </div>
2956
+ // <div className="row m-0 w-100">
2957
+ // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2958
+ // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>{lang.subtotal}</p>
2959
+ // </div>
2960
+ // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2961
+ // <p
2962
+ // className={
2963
+ // langdetect == 'en'
2964
+ // ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
2965
+ // : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
2966
+ // }
2967
+ // >
2968
+ // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.totalprice} {langdetect == 'en' ? '' : 'ج.م'}
2969
+ // </p>
2970
+ // </div>
2971
+ // </div>
2972
+ // </div>
2973
+ // {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists && fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
2974
+ // <div className="col-lg-12 p-0 mb-1">
2975
+ // <div className="row m-0 w-100">
2976
+ // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2977
+ // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '}>{lang.discount}</p>
2978
+ // </div>
2979
+ // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2980
+ // <p
2981
+ // className={
2982
+ // langdetect == 'en'
2983
+ // ? `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-right '
2984
+ // : `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-left '
2985
+ // }
2986
+ // >
2987
+ // {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
2988
+ // <span>
2989
+ // - {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice}{' '}
2990
+ // {langdetect == 'en' ? '' : 'ج.م'}
2991
+ // </span>
2992
+ // )}
2993
+ // {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice == 0 && <span>0</span>}
2994
+ // </p>
2995
+ // </div>
2996
+ // </div>
2997
+ // </div>
2998
+ // )}
2999
+ // <div className="col-lg-12 p-0">
3000
+ // <div className="row m-0 w-100">
3001
+ // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
3002
+ // <p className={`${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 d-flex align-items-start wordbreak '}>{lang.shippingfees}</p>
3003
+ // </div>
3004
+ // {fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
3005
+ // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
3006
+ // <p
3007
+ // className={
3008
+ // langdetect == 'en'
3009
+ // ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
3010
+ // : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
3011
+ // }
3012
+ // >
3013
+ // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.zoneprice} {langdetect == 'en' ? '' : 'ج.م'}
3014
+ // </p>
3015
+ // </div>
3016
+ // )}
3017
+ // {!fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
3018
+ // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
3019
+ // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-start wordbreak '} style={{ color: 'red' }}>
3020
+ // {lang.outofzone}
3021
+ // </p>
3022
+ // </div>
3023
+ // )}
3024
+ // </div>
3025
+ // </div>
3026
+ // <div className="col-lg-12 p-0">
3027
+ // <hr className="mt-2 mb-2" />
3028
+ // </div>
3029
+ // <div className="col-lg-12 p-0">
3030
+ // <div className="row m-0 w-100">
3031
+ // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
3032
+ // <p
3033
+ // className="d-flex align-items-start"
3034
+ // style={{
3035
+ // fontSize: sectionproperties.total_fontsize + 'px',
3036
+ // fontWeight: sectionproperties.total_fontweight,
3037
+ // textTransform: sectionproperties.total_texttransform,
3038
+ // color: sectionproperties.total_color,
3039
+ // }}
3040
+ // >
3041
+ // {lang.total}
3042
+ // </p>
3043
+ // </div>
3044
+ // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
3045
+ // <div className="row m-0 w-100">
3046
+ // <div className="col-lg-12 p-0 d-flex justify-content-end ">
3047
+ // <p
3048
+ // className={langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left '}
3049
+ // style={{
3050
+ // fontSize: sectionproperties.total_fontsize + 'px',
3051
+ // fontWeight: sectionproperties.total_fontweight,
3052
+ // textTransform: sectionproperties.total_texttransform,
3053
+ // color: sectionproperties.total_color,
3054
+ // }}
3055
+ // >
3056
+ // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount}{' '}
3057
+ // {langdetect == 'en' ? '' : 'ج.م'}
3058
+ // </p>
3059
+ // </div>
3060
+ // </div>
3061
+ // </div>
3062
+ // </div>
3063
+ // </div>
3064
+ // <div className="col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3">
3065
+ // <button
3066
+ // className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
3067
+ // onClick={() => {
3068
+ // var payloadobj = {};
3069
+ // AddOrderMutationContext.mutate(payloadobj);
3070
+ // }}
3071
+ // disabled={AddOrderMutationContext.isLoading ? true : false}
3072
+ // >
3073
+ // {AddOrderMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
3074
+ // {!AddOrderMutationContext.isLoading
3075
+ // ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
3076
+ // ? lang.continuetopayment
3077
+ // : authdetailsContext.loggedin
3078
+ // ? lang.confirmorder
3079
+ // : lang.confirmorder + ' ' + lang.asaguest
3080
+ // : ''}
3081
+ // </button>
3082
+ // </div>
3083
+ // </div>
3084
+ // </div>
3085
+ // </div>
3086
+ // )}
3087
+ // </div>
3088
+ // );
3089
+ // };
3081
3090
  return /*#__PURE__*/React__default["default"].createElement("div", {
3082
3091
  className: 'row m-0 w-100 mb-3 d-flex justify-content-center p-sm-0 mt-sm-3'
3083
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3084
- className: 'col-lg-12 w-100 d-flex justify-content-center pl-md-3 pr-md-3 pl-sm-2 pr-sm-2',
3085
- style: {
3086
- marginTop: sectionproperties.marginTop + 'px',
3087
- marginBottom: sectionproperties.marginBottom + 'px',
3088
- paddingLeft: sectionproperties.paddingLeft + 'px',
3089
- paddingRight: sectionproperties.paddingRight + 'px',
3090
- paddingTop: sectionproperties.paddingTop + 'px',
3091
- paddingBottom: sectionproperties.paddingBottom + 'px',
3092
- background: sectionproperties.backgroundColor,
3093
- borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
3094
- borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
3095
- borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
3096
- borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px'
3097
- }
3098
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3099
- className: 'row m-0 w-100 justify-content-center '
3100
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3101
- className: langdetect == 'en' ? ' col-lg-8 col-md-12 pl-0 p-md-0 ' : ' col-lg-8 col-md-12 pr-0 p-md-0 '
3102
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3103
- className: "col-lg-12 d-flex align-items-center p-0"
3104
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3105
- style: {
3106
- fontSize: sectionproperties.sectionTitleFontSize + 'px',
3107
- color: sectionproperties.sectionTitleColor,
3108
- marginTop: sectionproperties.sectionTitleMarginTop + 'px',
3109
- marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
3110
- textTransform: sectionproperties.sectionTitleTextTransform,
3111
- fontWeight: sectionproperties.sectionTitleFontWeight
3112
- }
3113
- }, lang.checkout)), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
3114
- className: "col-lg-12 p-0"
3115
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3116
- className: "pl-3 pr-3 pt-2 pb-2",
3117
- style: {
3118
- background: sectionproperties.userinfo_sectionbgcolor,
3119
- borderRadius: sectionproperties.userinfo_borderradius + 'px',
3120
- marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
3121
- marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
3122
- border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor
3123
- }
3124
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3125
- className: "row m-0 w-100"
3126
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3127
- className: "".concat(checkoutstyles.userinfo_iconcont) + ' d-flex align-items-center justify-content-center '
3128
- }, /*#__PURE__*/React__default["default"].createElement(bs.BsCheck2Circle, {
3129
- size: 20
3130
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3131
- className: "col-lg-11 col-md-10 col-sm-10 p-0"
3132
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3133
- className: "row m-0 w-100"
3134
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3135
- className: "col-lg-12 d-flex align-items-center pl-2 pr-2",
3136
- style: {
3137
- fontSize: sectionproperties.userinfo_titlefontsize + 'px',
3138
- color: sectionproperties.userinfo_titlecolor,
3139
- fontWeight: sectionproperties.userinfo_titlefontweight
3140
- }
3141
- }, lang.loggedinas), /*#__PURE__*/React__default["default"].createElement("div", {
3142
- className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 text-capitalize '
3143
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3144
- className: "m-0 p-0 d-flex align-items-center"
3145
- }, /*#__PURE__*/React__default["default"].createElement("i", {
3146
- className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3147
- style: {
3148
- fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3149
- color: sectionproperties.userinfotext_iconcolor,
3150
- marginRight: langdetect == 'en' ? '5px' : 0,
3151
- marginLeft: langdetect == 'en' ? 0 : '5px'
3152
- }
3153
- }, /*#__PURE__*/React__default["default"].createElement(hi.HiUser, null)), /*#__PURE__*/React__default["default"].createElement("p", {
3154
- className: "m-0 p-0 wordbreak"
3155
- }, authdetailsContext.customerinfo.name))), /*#__PURE__*/React__default["default"].createElement("div", {
3156
- className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
3157
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3158
- className: "m-0 p-0 d-flex align-items-center"
3159
- }, /*#__PURE__*/React__default["default"].createElement("i", {
3160
- className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3161
- style: {
3162
- fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3163
- color: sectionproperties.userinfotext_iconcolor,
3164
- marginRight: langdetect == 'en' ? '5px' : 0,
3165
- marginLeft: langdetect == 'en' ? 0 : '5px'
3166
- }
3167
- }, /*#__PURE__*/React__default["default"].createElement(bs.BsFillTelephoneFill, null)), /*#__PURE__*/React__default["default"].createElement("p", {
3168
- className: "m-0 p-0 wordbreak"
3169
- }, authdetailsContext.customerinfo.mobile))), /*#__PURE__*/React__default["default"].createElement("div", {
3170
- className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
3171
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3172
- className: "m-0 p-0 d-flex align-items-center"
3173
- }, /*#__PURE__*/React__default["default"].createElement("i", {
3174
- className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3175
- style: {
3176
- fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3177
- color: sectionproperties.userinfotext_iconcolor,
3178
- marginRight: langdetect == 'en' ? '5px' : 0,
3179
- marginLeft: langdetect == 'en' ? 0 : '5px'
3180
- }
3181
- }, /*#__PURE__*/React__default["default"].createElement(gr.GrMail, null)), /*#__PURE__*/React__default["default"].createElement("p", {
3182
- className: "m-0 p-0 wordbreak"
3183
- }, authdetailsContext.customerinfo.email))))), /*#__PURE__*/React__default["default"].createElement("div", {
3184
- className: "col-lg-12 justify-content-end float-right pl-2 pr-2",
3185
- style: {
3186
- fontSize: sectionproperties.userinfo_titlefontsize + 'px',
3187
- color: sectionproperties.userinfo_titlecolor,
3188
- fontWeight: sectionproperties.userinfo_titlefontweight,
3189
- textAlign: 'right',
3190
- textDecoration: 'underline',
3191
- cursor: 'pointer',
3192
- position: 'absolute',
3193
- right: 10,
3194
- top: 10
3195
- },
3196
- onClick: function onClick() {
3197
- routingcountext(StaticPagesLinksContext.accountinfo);
3198
- }
3199
- }, lang.update)))), /*#__PURE__*/React__default["default"].createElement("div", {
3200
- className: "col-lg-12 p-0"
3201
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3202
- style: {
3203
- marginTop: sectionproperties.contactinfo_sectionmarginTop + 'px',
3204
- marginBottom: sectionproperties.contactinfo_sectionmarginbottom + 'px',
3205
- background: sectionproperties.contactinfo_sectionbgcolor,
3206
- borderRadius: sectionproperties.contactinfo_sectionborderradius + 'px',
3207
- border: sectionproperties.contactinfo_borderwidth + 'px solid ' + sectionproperties.contactinfo_sectionbordercolor
3208
- }
3209
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3210
- className: "col-lg-12 pl-3 pr-3 pt-2"
3211
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3212
- className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3213
- }, authdetailsContext.loggedin ? lang.addressdetails : lang.contactdetails)), /*#__PURE__*/React__default["default"].createElement("div", {
3214
- className: "col-lg-12 p-0"
3215
- }, /*#__PURE__*/React__default["default"].createElement("hr", {
3216
- className: "mt-2 mb-2"
3217
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3218
- className: "row m-0 w-100 mb-3 pl-3 pr-3 pb-3"
3219
- }, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3220
- className: "col-lg-4 col-md-12 mb-3"
3221
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3222
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3223
- }, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
3224
- type: 'text',
3225
- className: "".concat(formstyles.form_control),
3226
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue69 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue69 === void 0 ? void 0 : (_fetchcustomercartQue70 = _fetchcustomercartQue69.data) === null || _fetchcustomercartQue70 === void 0 ? void 0 : _fetchcustomercartQue70.customercart.name,
3227
- onChange: function onChange(event) {
3228
- cartinfoupdater('name', event.target.value);
3229
- },
3230
- style: {
3231
- resize: 'none',
3232
- fontWeight: sectionproperties.inputtextfontweight,
3233
- background: sectionproperties.input_bgcolor,
3234
- color: sectionproperties.inputfieldcolor,
3235
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3236
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
3237
- boxShadow: 'none'
3238
- }
3239
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3240
- className: "col-lg-4 col-md-12 mb-3"
3241
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3242
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3243
- }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
3244
- type: 'text',
3245
- className: "".concat(formstyles.form_control),
3246
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue71 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue71 === void 0 ? void 0 : (_fetchcustomercartQue72 = _fetchcustomercartQue71.data) === null || _fetchcustomercartQue72 === void 0 ? void 0 : _fetchcustomercartQue72.customercart.mobile,
3247
- onChange: function onChange(event) {
3248
- cartinfoupdater('mobile', event.target.value);
3249
- },
3250
- style: {
3251
- resize: 'none',
3252
- fontWeight: sectionproperties.inputtextfontweight,
3253
- background: sectionproperties.input_bgcolor,
3254
- color: sectionproperties.inputfieldcolor,
3255
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3256
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
3257
- boxShadow: 'none'
3258
- }
3259
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3260
- className: "col-lg-4 col-md-12 mb-3"
3261
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3262
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3263
- }, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
3264
- type: 'text',
3265
- className: "".concat(formstyles.form_control),
3266
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue73 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue73 === void 0 ? void 0 : (_fetchcustomercartQue74 = _fetchcustomercartQue73.data) === null || _fetchcustomercartQue74 === void 0 ? void 0 : _fetchcustomercartQue74.customercart.email,
3267
- onChange: function onChange(event) {
3268
- cartinfoupdater('email', event.target.value);
3269
- },
3270
- style: {
3271
- resize: 'none',
3272
- fontWeight: sectionproperties.inputtextfontweight,
3273
- background: sectionproperties.input_bgcolor,
3274
- color: sectionproperties.inputfieldcolor,
3275
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3276
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
3277
- boxShadow: 'none'
3278
- }
3279
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
3280
- className: "col-lg-4 col-md-12 mb-3"
3281
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3282
- className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3283
- }, " ", lang.country), fetchTabexCountriesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
3284
- className: "w-100"
3285
- }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3286
- color: "black",
3287
- width: "20px",
3288
- height: "20px",
3289
- duration: "1s"
3290
- })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
3291
- options: fetchTabexCountriesQueryContext.data.data.countries,
3292
- getOptionLabel: function getOptionLabel(option) {
3293
- return option.name;
3294
- },
3295
- getOptionValue: function getOptionValue(option) {
3296
- return option.id;
3297
- },
3298
- value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
3299
- var _fetchcustomercartQue75, _fetchcustomercartQue76;
3300
-
3301
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue75 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue75 === void 0 ? void 0 : (_fetchcustomercartQue76 = _fetchcustomercartQue75.data) === null || _fetchcustomercartQue76 === void 0 ? void 0 : _fetchcustomercartQue76.customercart.countryid);
3302
- }),
3303
- onChange: function onChange(option) {
3304
- var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
3305
-
3306
- tempFetchTabexStatesPayloadobjContext.functype = 'states';
3307
- tempFetchTabexStatesPayloadobjContext.country_id = option.id;
3308
- setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext));
3309
- cartinfoupdater('countryid', option.id);
3310
- },
3311
- styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3312
- placeholder: lang.choosecountry,
3313
- isSearchable: true
3314
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3315
- className: "col-lg-4 col-md-12 mb-3"
3316
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3317
- className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3318
- }, lang.stategov), fetchTabexStatesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
3319
- className: "w-100"
3320
- }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3321
- color: "black",
3322
- width: "20px",
3323
- height: "20px",
3324
- duration: "1s"
3325
- })), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
3326
- options: fetchTabexStatesQueryContext.data.data.states,
3327
- getOptionLabel: function getOptionLabel(option) {
3328
- return option.name;
3329
- },
3330
- getOptionValue: function getOptionValue(option) {
3331
- return option.id;
3332
- },
3333
- value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
3334
- var _fetchcustomercartQue77, _fetchcustomercartQue78;
3335
-
3336
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue77 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue77 === void 0 ? void 0 : (_fetchcustomercartQue78 = _fetchcustomercartQue77.data) === null || _fetchcustomercartQue78 === void 0 ? void 0 : _fetchcustomercartQue78.customercart.stateid);
3337
- }),
3338
- onChange: function onChange(option) {
3339
- var _fetchcustomercartQue79, _fetchcustomercartQue80;
3340
-
3341
- if (option.id.length != 0 && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue79 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue79 === void 0 ? void 0 : (_fetchcustomercartQue80 = _fetchcustomercartQue79.data) === null || _fetchcustomercartQue80 === void 0 ? void 0 : _fetchcustomercartQue80.customercart.countryid.length) != 0) {
3342
- var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
3343
-
3344
- tempFetchTabexStatesPayloadobjContext.functype = 'cities';
3345
- tempFetchTabexStatesPayloadobjContext.state_id = option.id;
3346
- setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext));
3347
- cartinfoupdater('stateid', option.id);
3348
- } else {
3349
- NotificationManager.warning('', 'Please Choose Country Or State');
3350
- }
3351
- },
3352
- styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3353
- placeholder: lang.choosestategov,
3354
- isSearchable: true
3355
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3356
- className: "col-lg-4 col-md-12 mb-3"
3357
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3358
- className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3359
- }, lang.city), fetchTabexCitiesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
3360
- className: "w-100"
3361
- }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3362
- color: "black",
3363
- width: "20px",
3364
- height: "20px",
3365
- duration: "1s"
3366
- })), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select__default["default"], {
3367
- options: fetchTabexCitiesQueryContext.data.data.cities,
3368
- getOptionLabel: function getOptionLabel(option) {
3369
- return option.name;
3370
- },
3371
- getOptionValue: function getOptionValue(option) {
3372
- return option.id;
3373
- },
3374
- value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
3375
- var _fetchcustomercartQue81, _fetchcustomercartQue82;
3376
-
3377
- return option.id == (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue81 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue81 === void 0 ? void 0 : (_fetchcustomercartQue82 = _fetchcustomercartQue81.data) === null || _fetchcustomercartQue82 === void 0 ? void 0 : _fetchcustomercartQue82.customercart.cityid);
3378
- }),
3379
- onChange: function onChange(option) {
3380
- cartinfoupdater('cityid', option.id);
3381
- },
3382
- styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3383
- placeholder: lang.choosecity,
3384
- isSearchable: true
3385
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3386
- className: "col-lg-12 mb-3"
3387
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3388
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3389
- }, lang.shippingaddress), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
3390
- type: 'text',
3391
- className: "".concat(formstyles.form_control),
3392
- value: fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue83 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue83 === void 0 ? void 0 : (_fetchcustomercartQue84 = _fetchcustomercartQue83.data) === null || _fetchcustomercartQue84 === void 0 ? void 0 : _fetchcustomercartQue84.customercart.address,
3393
- onChange: function onChange(event) {
3394
- cartinfoupdater('address', event.target.value);
3395
- },
3396
- style: {
3397
- resize: 'none',
3398
- fontWeight: sectionproperties.inputtextfontweight,
3399
- background: sectionproperties.input_bgcolor,
3400
- color: sectionproperties.inputfieldcolor,
3401
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3402
- borderRadius: sectionproperties.inputfieldborderradius + 'px',
3403
- boxShadow: 'none'
3404
- }
3405
- }))))), /*#__PURE__*/React__default["default"].createElement("div", {
3406
- className: "col-lg-12 p-0 w-100"
3407
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3408
- style: {
3409
- background: sectionproperties.payment_sectionbgcolor,
3410
- borderRadius: sectionproperties.payment_borderradius + 'px',
3411
- border: sectionproperties.payment_borderwidth + 'px solid ' + sectionproperties.payment_sectionbordercolor
3412
- }
3413
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3414
- className: "col-lg-12 pl-3 pr-3 pt-2"
3415
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3416
- className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3417
- }, lang.paymentmethod)), /*#__PURE__*/React__default["default"].createElement("div", {
3418
- className: "col-lg-12 p-0"
3419
- }, /*#__PURE__*/React__default["default"].createElement("hr", {
3420
- className: "mt-2 mb-2"
3421
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3422
- className: "row m-0 w-100 mb-3 pl-3 pr-3"
3423
- }, authdetailsContext.instinfo.acceptCOD == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
3424
- className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3425
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3426
- className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
3427
- "for": "codcheckbox"
3428
- }, /*#__PURE__*/React__default["default"].createElement("input", {
3429
- id: 'codcheckbox',
3430
- type: "checkbox",
3431
- className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3432
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue85 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue85 === void 0 ? void 0 : (_fetchcustomercartQue86 = _fetchcustomercartQue85.data) === null || _fetchcustomercartQue86 === void 0 ? void 0 : _fetchcustomercartQue86.customercart.paymentmethod) == 'cod' ? true : false,
3433
- onChange: function onChange() {
3434
- var _fetchcustomercartQue87, _fetchcustomercartQue88;
3435
-
3436
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue87 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue87 === void 0 ? void 0 : (_fetchcustomercartQue88 = _fetchcustomercartQue87.data) === null || _fetchcustomercartQue88 === void 0 ? void 0 : _fetchcustomercartQue88.customercart.paymentmethod) != 'cod') {
3437
- cartinfoupdater('paymentmethod', 'cod');
3438
- }
3439
- }
3440
- }), /*#__PURE__*/React__default["default"].createElement("svg", {
3441
- viewBox: "0 0 21 21",
3442
- className: checkoutstyles.svgstyles + ' h-100 '
3443
- }, /*#__PURE__*/React__default["default"].createElement("path", {
3444
- d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
3445
- })), /*#__PURE__*/React__default["default"].createElement("p", {
3446
- className: ' ml-2 mb-0 cursor-pointer wordbreak mr-2',
3447
- style: {}
3448
- }, lang.cod))), authdetailsContext.instinfo.acceptCardOnDelivery == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
3449
- className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3450
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3451
- className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
3452
- }, /*#__PURE__*/React__default["default"].createElement("input", {
3453
- type: "checkbox",
3454
- className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3455
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue89 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue89 === void 0 ? void 0 : (_fetchcustomercartQue90 = _fetchcustomercartQue89.data) === null || _fetchcustomercartQue90 === void 0 ? void 0 : _fetchcustomercartQue90.customercart.paymentmethod) == 'cardondelivery' ? true : false,
3456
- onChange: function onChange() {
3457
- var _fetchcustomercartQue91, _fetchcustomercartQue92;
3458
-
3459
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue91 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue91 === void 0 ? void 0 : (_fetchcustomercartQue92 = _fetchcustomercartQue91.data) === null || _fetchcustomercartQue92 === void 0 ? void 0 : _fetchcustomercartQue92.customercart.paymentmethod) != 'cardondelivery') {
3460
- cartinfoupdater('paymentmethod', 'cardondelivery');
3461
- }
3462
- }
3463
- }), /*#__PURE__*/React__default["default"].createElement("svg", {
3464
- viewBox: "0 0 21 21",
3465
- className: checkoutstyles.svgstyles + ' h-100 '
3466
- }, /*#__PURE__*/React__default["default"].createElement("path", {
3467
- d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
3468
- })), /*#__PURE__*/React__default["default"].createElement("p", {
3469
- className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
3470
- }, " ", lang.cardondelivery))), authdetailsContext.instinfo.acceptOnlineCardPayment == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
3471
- className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3472
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3473
- className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 '
3474
- }, /*#__PURE__*/React__default["default"].createElement("input", {
3475
- type: "checkbox",
3476
- className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3477
- checked: (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue93 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue93 === void 0 ? void 0 : (_fetchcustomercartQue94 = _fetchcustomercartQue93.data) === null || _fetchcustomercartQue94 === void 0 ? void 0 : _fetchcustomercartQue94.customercart.paymentmethod) == 'onlinepayment' ? true : false,
3478
- onChange: function onChange() {
3479
- var _fetchcustomercartQue95, _fetchcustomercartQue96;
3480
-
3481
- if ((fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue95 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue95 === void 0 ? void 0 : (_fetchcustomercartQue96 = _fetchcustomercartQue95.data) === null || _fetchcustomercartQue96 === void 0 ? void 0 : _fetchcustomercartQue96.customercart.paymentmethod) != 'onlinepayment') {
3482
- cartinfoupdater('paymentmethod', 'onlinepayment');
3483
- }
3484
- }
3485
- }), /*#__PURE__*/React__default["default"].createElement("svg", {
3486
- viewBox: "0 0 21 21",
3487
- className: checkoutstyles.svgstyles + ' h-100 '
3488
- }, /*#__PURE__*/React__default["default"].createElement("path", {
3489
- d: "M5,10.75 L8.5,14.25 L19.4,2.3 C18.8333333,1.43333333 18.0333333,1 17,1 L4,1 C2.35,1 1,2.35 1,4 L1,17 C1,18.65 2.35,20 4,20 L17,20 C18.65,20 20,18.65 20,17 L20,7.99769186"
3490
- })), /*#__PURE__*/React__default["default"].createElement("p", {
3491
- className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
3492
- }, " ", lang.onlinepayment)))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 ? void 0 : (_fetchcustomercartQue98 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
3493
- className: "col-lg-12 p-0 w-100 mb-3"
3494
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3495
- style: {
3496
- background: sectionproperties.payment_sectionbgcolor,
3497
- borderRadius: sectionproperties.payment_borderradius + 'px',
3498
- borderColor: sectionproperties.payment_sectionbordercolor
3499
- }
3500
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3501
- className: "col-lg-12 pl-3 pr-3 pt-2"
3502
- }, /*#__PURE__*/React__default["default"].createElement("p", {
3503
- className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3504
- }, lang.paymentcardinformation)), /*#__PURE__*/React__default["default"].createElement("div", {
3505
- className: "col-lg-12 p-0"
3506
- }, /*#__PURE__*/React__default["default"].createElement("hr", {
3507
- className: "mt-2 mb-2"
3508
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3509
- className: "w-100 row m-0 pl-3 pr-3 pt-2 pb-2"
3510
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3511
- className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0"
3512
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3513
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3514
- }, lang.cardnumber), /*#__PURE__*/React__default["default"].createElement("input", {
3515
- className: formstyles.form_controlcheckout,
3516
- type: "text",
3517
- textplaceholder: "",
3518
- onChange: function onChange(event) {},
3519
- style: {
3520
- fontWeight: sectionproperties.inputtextfontweight,
3521
- background: sectionproperties.input_bgcolor,
3522
- color: sectionproperties.inputfieldcolor,
3523
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3524
- borderRadius: sectionproperties.inputfieldborderradius + 'px'
3525
- }
3526
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3527
- className: "w-100 row m-0"
3528
- }, /*#__PURE__*/React__default["default"].createElement("div", {
3529
- className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3530
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3531
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3532
- }, lang.year), /*#__PURE__*/React__default["default"].createElement("input", {
3533
- className: formstyles.form_controlcheckout,
3534
- type: "text",
3535
- textplaceholder: "",
3536
- onChange: function onChange(event) {},
3537
- style: {
3538
- fontWeight: sectionproperties.inputtextfontweight,
3539
- background: sectionproperties.input_bgcolor,
3540
- color: sectionproperties.inputfieldcolor,
3541
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3542
- borderRadius: sectionproperties.inputfieldborderradius + 'px'
3543
- }
3544
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3545
- className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3546
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3547
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3548
- }, lang.month), /*#__PURE__*/React__default["default"].createElement("input", {
3549
- className: formstyles.form_controlcheckout,
3550
- type: "text",
3551
- textplaceholder: "",
3552
- onChange: function onChange(event) {},
3553
- style: {
3554
- fontWeight: sectionproperties.inputtextfontweight,
3555
- background: sectionproperties.input_bgcolor,
3556
- color: sectionproperties.inputfieldcolor,
3557
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3558
- borderRadius: sectionproperties.inputfieldborderradius + 'px'
3559
- }
3560
- })), /*#__PURE__*/React__default["default"].createElement("div", {
3561
- className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3562
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3563
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3564
- }, lang.cvv), /*#__PURE__*/React__default["default"].createElement("input", {
3565
- className: formstyles.form_controlcheckout,
3566
- type: "text",
3567
- textplaceholder: "",
3568
- onChange: function onChange(event) {},
3569
- style: {
3570
- fontWeight: sectionproperties.inputtextfontweight,
3571
- background: sectionproperties.input_bgcolor,
3572
- color: sectionproperties.inputfieldcolor,
3573
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3574
- borderRadius: sectionproperties.inputfieldborderradius + 'px'
3575
- }
3576
- }))), /*#__PURE__*/React__default["default"].createElement("div", {
3577
- className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0 mb-3"
3578
- }, /*#__PURE__*/React__default["default"].createElement("label", {
3579
- className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3580
- }, lang.nameoncard), /*#__PURE__*/React__default["default"].createElement("input", {
3581
- className: formstyles.form_controlcheckout,
3582
- type: "text",
3583
- textplaceholder: "",
3584
- onChange: function onChange(event) {},
3585
- style: {
3586
- fontWeight: sectionproperties.inputtextfontweight,
3587
- background: sectionproperties.input_bgcolor,
3588
- color: sectionproperties.inputfieldcolor,
3589
- fontSize: sectionproperties.inputfieldfontsize + 'px',
3590
- borderRadius: sectionproperties.inputfieldborderradius + 'px'
3591
- }
3592
- })))))), /*#__PURE__*/React__default["default"].createElement("div", {
3593
- className: langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0' : 'col-lg-4 col-md-12 pl-0'
3594
- }, Mycart()))));
3092
+ }, "adsdss");
3595
3093
  };
3596
3094
 
3597
3095
  var css_248z$s = ".tabs-module_tabs__36dMY {\n position: relative;\n height: auto;\n display: flex;\n width: 100% !important;\n flex-direction: column;\n word-wrap: break-word;\n}\n.tabs-module_tabs__36dMY input[name='tab-control'] {\n display: none;\n}\n.tabs-module_tabs__36dMY .tabs-module_tabsul__wNZqy {\n list-style-type: none;\n padding-left: 0;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n /* width: 30%; */\n height: 100%;\n}\n.tabs-module_tabs__36dMY .tabs-module_tabsul__wNZqy .tabs-module_tabsli__-uR10 {\n box-sizing: border-box;\n flex: 1;\n display: inline-block;\n width: 100% !important;\n text-align: left;\n /* border-right: 1px solid #ccc; */\n}\n.tabs-module_tabs__36dMY .tabs-module_tabsul__wNZqy .tabs-module_tabsli__-uR10 label {\n font-size: 16px;\n font-weight: 500;\n transition: all 0.3s ease-in-out;\n padding: 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n display: block;\n cursor: pointer;\n transition: all 0.2s ease-in-out;\n white-space: nowrap;\n /* color: var(--light2); */\n}\n.tabs-module_tabs__36dMY .tabs-module_tabsul__wNZqy .tabs-module_tabsli__-uR10 label:hover {\n outline: 0;\n /* border-right: 5px solid var(--secondary); */\n}\n.tabs-module_tabs__36dMY .tabs-module_tabsul__wNZqy .tabs-module_tabsli__-uR10 label.tabs-module_active__6wLfI {\n /* border-right: 5px solid var(--secondary); */\n}\n.tabs-module_tabs__36dMY input[name='tab-control']:nth-of-type(1):checked ~ ul li:nth-child(1) label {\n cursor: default;\n background: white;\n /* border-top: 3px solid var(--secondary); */\n}\n.tabs-module_tabs__36dMY input[name='tab-control']:nth-of-type(2):checked ~ ul li:nth-child(2) label {\n cursor: default;\n background: white;\n /* border-top: 3px solid var(--secondary); */\n}\n.tabs-module_tabs__36dMY input[name='tab-control']:nth-of-type(3):checked ~ ul li:nth-child(3) label {\n cursor: default;\n background: white;\n /* border-top: 3px solid var(--secondary); */\n}\n.tabs-module_tabs__36dMY input[name='tab-control']:nth-of-type(4):checked ~ ul li:nth-child(4) label {\n cursor: default;\n background: white;\n /* border-top: 3px solid var(--secondary); */\n}\n@media screen and (max-width: 800px) {\n .tabs-module_tabs__36dMY .tabs-module_tabsul__wNZqy {\n width: 100%;\n display: block;\n white-space: nowrap;\n position: relative;\n overflow-x: scroll;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n }\n .tabs-module_tabs__36dMY .tabs-module_tabsul__wNZqy .tabs-module_tabsli__-uR10 {\n width: 50% !important;\n float: none;\n display: inline-block;\n zoom: 1;\n border-right: 0 !important;\n }\n label:hover {\n border-right: 0 !important;\n border-top: 3px solid !important;\n }\n}\n@media (max-width: 576px) {\n .tabs-module_tabs__36dMY .tabs-module_tabsul__wNZqy .tabs-module_tabsli__-uR10 {\n width: 100% !important;\n }\n}\n\n.tabs-module_policiestabs__nopXD .tabs-module_tabsul__wNZqy {\n flex-direction: row !important;\n}\n.tabs-module_policiestabs__nopXD .tabs-module_tabsul__wNZqy .tabs-module_tabsli__-uR10 {\n /* border-top: 5px solid #fff; */\n margin: 0 5px;\n}\n.tabs-module_policiestabs__nopXD .tabs-module_tabsul__wNZqy .tabs-module_tabsli__-uR10 label {\n padding: 0 !important;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n";