tabexseriescomponents 0.0.47 → 0.0.51

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