tabexseriescomponents 0.0.46 → 0.0.50

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.esm.js CHANGED
@@ -19,15 +19,15 @@ import _toConsumableArray from '@babel/runtime/helpers/toConsumableArray';
19
19
  import { Offcanvas } from 'react-bootstrap';
20
20
  import { IoLocationSharp, IoBagHandleOutline, IoClose } from 'react-icons/io5';
21
21
  import { IKImage } from 'imagekitio-react';
22
- import { HiOutlineChevronRight, HiOutlineChevronLeft, HiOutlineTrash, HiOutlinePlus, HiMenuAlt4, HiOutlineClock } from 'react-icons/hi';
22
+ import { HiOutlineChevronRight, HiOutlineChevronLeft, HiOutlineTrash, HiUser, HiOutlinePlus, HiMenuAlt4, HiOutlineClock } from 'react-icons/hi';
23
23
  import { GoGlobe, GoSearch, GoLocation } from 'react-icons/go';
24
- import { BsGlobe2, BsBag, BsFillArrowRightCircleFill, BsFillArrowLeftCircleFill, BsHandbag, BsTelephone, BsSearch, BsCartCheck, BsInfoCircle, BsWhatsapp } from 'react-icons/bs';
24
+ import { BsGlobe2, BsBag, BsCheck2Circle, BsFillTelephoneFill, BsFillArrowRightCircleFill, BsFillArrowLeftCircleFill, BsHandbag, BsTelephone, BsSearch, BsCartCheck, BsInfoCircle, BsWhatsapp } from 'react-icons/bs';
25
25
  import { FiShoppingCart, FiShoppingBag, FiFilter, FiUser, FiSearch } from 'react-icons/fi';
26
26
  import { MdOutlinePolicy, MdOutlineShoppingCart, MdOutlineLayersClear, MdKeyboardArrowDown, MdAlternateEmail, MdLocationOn, MdLocationPin } from 'react-icons/md';
27
27
  import { IoMdClose, IoIosArrowRoundForward, IoIosArrowRoundBack, IoIosArrowUp } from 'react-icons/io';
28
28
  import { CgShoppingBag, CgMenuLeft, CgMenuRight } from 'react-icons/cg';
29
- import 'react-textarea-autosize';
30
- import 'react-icons/gr';
29
+ import TextareaAutosize from 'react-textarea-autosize';
30
+ import { GrMail } from 'react-icons/gr';
31
31
  import { Accordion, AccordionItem, AccordionItemHeading, AccordionItemButton, AccordionItemState, AccordionItemPanel } from 'react-accessible-accordion';
32
32
  import Dropdown from 'react-bootstrap/Dropdown';
33
33
  import { useInView } from 'react-intersection-observer';
@@ -461,9 +461,9 @@ var FacebookLoginButton = function FacebookLoginButton(props) {
461
461
  }));
462
462
  };
463
463
 
464
- 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; }
464
+ 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; }
465
465
 
466
- 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(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; }
466
+ 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(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; }
467
467
 
468
468
  var Login = function Login(props) {
469
469
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -509,7 +509,7 @@ var Login = function Login(props) {
509
509
  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) {
510
510
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
511
511
  });
512
- setsectionproperties(_objectSpread$15({}, secpropobj));
512
+ setsectionproperties(_objectSpread$17({}, secpropobj));
513
513
  }
514
514
  }, [StatePagePropertiesContext]);
515
515
 
@@ -623,10 +623,10 @@ var Login = function Login(props) {
623
623
  className: "".concat(loginstyles.form_control, " ").concat(loginstyles2.form_control),
624
624
  value: payloadobj.email,
625
625
  onChange: function onChange(event) {
626
- var temppayloadobj = _objectSpread$15({}, payloadobj);
626
+ var temppayloadobj = _objectSpread$17({}, payloadobj);
627
627
 
628
628
  temppayloadobj.email = event.target.value;
629
- setpayloadobj(_objectSpread$15({}, temppayloadobj));
629
+ setpayloadobj(_objectSpread$17({}, temppayloadobj));
630
630
  }
631
631
  }), /*#__PURE__*/React.createElement("span", {
632
632
  className: langdetect == 'en' ? loginstyles.login_input_icon : loginstyles.login_input_icontrans
@@ -644,10 +644,10 @@ var Login = function Login(props) {
644
644
  textplaceholder: "",
645
645
  value: payloadobj.password,
646
646
  onChange: function onChange(event) {
647
- var temppayloadobj = _objectSpread$15({}, payloadobj);
647
+ var temppayloadobj = _objectSpread$17({}, payloadobj);
648
648
 
649
649
  temppayloadobj.password = event.target.value;
650
- setpayloadobj(_objectSpread$15({}, temppayloadobj));
650
+ setpayloadobj(_objectSpread$17({}, temppayloadobj));
651
651
  }
652
652
  }), /*#__PURE__*/React.createElement("span", {
653
653
  className: langdetect == 'en' ? loginstyles.login_input_icon : loginstyles.login_input_icontrans
@@ -770,9 +770,9 @@ var css_248z$v = "/* Side Nav */\n.staticroutersidenav-module_vertical_nav_menu_
770
770
  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"};
771
771
  styleInject(css_248z$v);
772
772
 
773
- 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; }
773
+ 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; }
774
774
 
775
- 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(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; }
775
+ 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(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; }
776
776
  // import { useMutation, useQuery, useQueryClient } from 'react-query';
777
777
  // import { useHistory, Link } from 'react-router-dom';
778
778
  // import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
@@ -880,7 +880,7 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
880
880
  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) {
881
881
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
882
882
  });
883
- setsectionproperties(_objectSpread$14({}, secpropobj));
883
+ setsectionproperties(_objectSpread$16({}, secpropobj));
884
884
  setnavigationstyle('Upper Navigation'); // }
885
885
  // }
886
886
  }, [CurrentPageId]);
@@ -1036,9 +1036,9 @@ var Staticpagesrouter = function Staticpagesrouter(props) {
1036
1036
  }))))));
1037
1037
  };
1038
1038
 
1039
- 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; }
1039
+ 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; }
1040
1040
 
1041
- 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(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; }
1041
+ 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(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; }
1042
1042
 
1043
1043
  var Ordershistory = function Ordershistory(props) {
1044
1044
  var _bgimagesarray$, _bgimagesarray$2;
@@ -1083,10 +1083,10 @@ var Ordershistory = function Ordershistory(props) {
1083
1083
 
1084
1084
  useEffect(function () {
1085
1085
  if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
1086
- var tempFetchQueriesEngineContext = _objectSpread$13({}, FetchQueriesEngineContext);
1086
+ var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
1087
1087
 
1088
1088
  tempFetchQueriesEngineContext.orderhistory = true;
1089
- setFetchQueriesEngineContext(_objectSpread$13({}, tempFetchQueriesEngineContext));
1089
+ setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
1090
1090
  } else {
1091
1091
  routingcountext('');
1092
1092
  }
@@ -1112,7 +1112,7 @@ var Ordershistory = function Ordershistory(props) {
1112
1112
  StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
1113
1113
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1114
1114
  });
1115
- setsectionproperties(_objectSpread$13({}, secpropobj));
1115
+ setsectionproperties(_objectSpread$15({}, secpropobj));
1116
1116
  }
1117
1117
  }, [StatePagePropertiesContext]);
1118
1118
  var orderhistory_cssstyles = {
@@ -1896,9 +1896,9 @@ var css_248z$u = ".wishlist-module_wishlist_card__sUXul .wishlist-module_image_c
1896
1896
  var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
1897
1897
  styleInject(css_248z$u);
1898
1898
 
1899
- 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; }
1899
+ 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; }
1900
1900
 
1901
- 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(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; }
1901
+ 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(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; }
1902
1902
 
1903
1903
  var Wishlist = function Wishlist(props) {
1904
1904
  var _bgimagesarray$, _bgimagesarray$2;
@@ -1935,7 +1935,7 @@ var Wishlist = function Wishlist(props) {
1935
1935
  StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
1936
1936
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1937
1937
  });
1938
- setsectionproperties(_objectSpread$12({}, secpropobj));
1938
+ setsectionproperties(_objectSpread$14({}, secpropobj));
1939
1939
  }
1940
1940
  }, [StatePagePropertiesContext]);
1941
1941
 
@@ -1945,10 +1945,10 @@ var Wishlist = function Wishlist(props) {
1945
1945
  _useState2[1];
1946
1946
 
1947
1947
  useEffect(function () {
1948
- var tempFetchQueriesEngineContext = _objectSpread$12({}, FetchQueriesEngineContext);
1948
+ var tempFetchQueriesEngineContext = _objectSpread$14({}, FetchQueriesEngineContext);
1949
1949
 
1950
1950
  tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
1951
- setFetchQueriesEngineContext(_objectSpread$12({}, tempFetchQueriesEngineContext));
1951
+ setFetchQueriesEngineContext(_objectSpread$14({}, tempFetchQueriesEngineContext));
1952
1952
  }, []);
1953
1953
 
1954
1954
  var _useState3 = useState(''),
@@ -1980,7 +1980,7 @@ var Wishlist = function Wishlist(props) {
1980
1980
  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) {
1981
1981
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1982
1982
  });
1983
- setsectionproperties(_objectSpread$12({}, secpropobj));
1983
+ setsectionproperties(_objectSpread$14({}, secpropobj));
1984
1984
  }
1985
1985
  }, [StatePagePropertiesContext]);
1986
1986
  var wishlist_cssstyles = {
@@ -2416,658 +2416,1161 @@ var Wishlist = function Wishlist(props) {
2416
2416
  };
2417
2417
 
2418
2418
  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";
2419
+ 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-"};
2419
2420
  styleInject(css_248z$t);
2420
2421
 
2422
+ 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; }
2423
+
2424
+ 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(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; }
2425
+ var defaultstyles = {
2426
+ option: function option(provided, state) {
2427
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2428
+ borderBottom: '1px solid #e6e6e6',
2429
+ backgroundColor: state.isSelected ? '' : '',
2430
+ padding: 5,
2431
+ textTransform: 'capitalize',
2432
+ color: state.isSelected ? '#eac435' : '#022648',
2433
+ transition: '.3s',
2434
+ '&:hover': {
2435
+ // color: '#eac435',
2436
+ cursor: 'pointer'
2437
+ }
2438
+ });
2439
+ },
2440
+ control: function control() {
2441
+ return {
2442
+ borderBottom: '1px solid #ccc',
2443
+ backgroundColor: 'white',
2444
+ display: 'flex',
2445
+ cursor: 'pointer',
2446
+ padding: 0,
2447
+ transition: '.3s',
2448
+ '&:hover': {// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
2449
+ // borderRadius: '10px',
2450
+ }
2451
+ };
2452
+ },
2453
+ dropdownIndicator: function dropdownIndicator(provided) {
2454
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2455
+ '&:hover': {// color: '#eac435',
2456
+ }
2457
+ });
2458
+ }
2459
+ };
2460
+ var defaultstylestranslated = {
2461
+ option: function option(provided, state) {
2462
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2463
+ borderBottom: '1px solid #e6e6e6',
2464
+ backgroundColor: state.isSelected ? '' : '',
2465
+ padding: 5,
2466
+ textTransform: 'capitalize',
2467
+ // color: state.isSelected ? '#eac435' : '#022648',
2468
+ transition: '.3s',
2469
+ textAlign: 'right',
2470
+ '&:hover': {
2471
+ // color: '#eac435',
2472
+ cursor: 'pointer'
2473
+ }
2474
+ });
2475
+ },
2476
+ control: function control() {
2477
+ return {
2478
+ borderBottom: '1px solid #ccc',
2479
+ backgroundColor: 'white',
2480
+ display: 'flex',
2481
+ cursor: 'pointer',
2482
+ padding: 0,
2483
+ transition: '.3s',
2484
+ textAlign: 'right',
2485
+ '&:hover': {// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
2486
+ // borderRadius: '10px',
2487
+ }
2488
+ };
2489
+ },
2490
+ dropdownIndicator: function dropdownIndicator(provided) {
2491
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2492
+ '&:hover': {// color: '#eac435',
2493
+ }
2494
+ });
2495
+ },
2496
+ placeholder: function placeholder(provided, state) {
2497
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2498
+ textAlign: 'right'
2499
+ });
2500
+ }
2501
+ };
2502
+
2503
+ 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; }
2504
+
2505
+ 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(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; }
2506
+ var Select = lazy(function () {
2507
+ return import('react-select');
2508
+ });
2509
+
2421
2510
  var Checkout = function Checkout(props) {
2422
- // const [timer, settimer] = useState(null);
2423
- // const langdetect = props.actions.langdetect;
2424
- // const lang = props.actions.lang;
2425
- // const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2426
- // const routingcountext = props.actions.routingcountext;
2427
- // const ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
2428
- // const CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
2429
- // const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2430
- // const templatepropcontext = props.actions.templatepropcontext;
2431
- // const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
2432
- // const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
2433
- // const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
2434
- // const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
2435
- // const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
2436
- // const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
2437
- // const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
2438
- // const ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
2439
- // const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
2440
- // const AddOrderMutationContext = props.actions.AddOrderMutationContext;
2441
- // const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
2442
- // const authdetailsContext = props.actions.authdetailsContext;
2443
- // const NotificationManager = props.actions.NotificationManager;
2444
- // const queryClient = props.actions.queryClient;
2445
- // const [sectionproperties, setsectionproperties] = useState('');
2446
- // const [CurrentPageId, setCurrentPageId] = useState('');
2447
- // useEffect(() => {
2448
- // var cartindex = templatepropcontext?.pagesnprop?.findIndex((x) => x.staticpageid == '6218bccb82af8');
2449
- // if (cartindex >= 0) {
2450
- // setCurrentPageId(cartindex);
2451
- // }
2452
- // }, []);
2453
- // useEffect(() => {
2454
- // var secpropobj = {};
2455
- // templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
2456
- // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2457
- // });
2458
- // setsectionproperties({ ...secpropobj });
2459
- // }, [CurrentPageId]);
2460
- // useEffect(() => {
2461
- // if (CurrentSrcTypeContext == 'workplace') {
2462
- // if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2463
- // var secpropobj = {};
2464
- // StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
2465
- // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2466
- // });
2467
- // setsectionproperties({ ...secpropobj });
2468
- // }
2469
- // }
2470
- // }, [StatePagePropertiesContext]);
2471
- // useEffect(() => {
2472
- // // if (authdetailsContext.loggedin == true) {
2473
- // var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
2474
- // tempFetchQueriesEngineContext.fetchtabexcountries = true;
2475
- // setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
2476
- // var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
2477
- // if (
2478
- // // Aya
2479
- // !fetchcustomercartQueryContext.isFetching &&
2480
- // fetchcustomercartQueryContext.isSuccess &&
2481
- // fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
2482
- // fetchcustomercartQueryContext?.data?.data?.customercart.countryid != null &&
2483
- // // End
2484
- // fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0
2485
- // ) {
2486
- // tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext?.data?.data?.customercart.countryid;
2487
- // }
2488
- // if (
2489
- // // aya
2490
- // !fetchcustomercartQueryContext.isFetching &&
2491
- // fetchcustomercartQueryContext.isSuccess &&
2492
- // fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
2493
- // fetchcustomercartQueryContext?.data?.data?.customercart.stateid != null &&
2494
- // // end
2495
- // fetchcustomercartQueryContext?.data?.data?.customercart.stateid.length != 0
2496
- // ) {
2497
- // tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext?.data?.data?.customercart.stateid;
2498
- // }
2499
- // setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
2500
- // // } else {
2501
- // // routingcountext('');
2502
- // // }
2503
- // }, []);
2504
- // const cartinfoupdater = (key, value) => {
2505
- // var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2506
- // cartarr.data.customercart[key] = value;
2507
- // queryClient.setQueryData('fetchcustomercart_API', cartarr);
2508
- // var payloadobj = {
2509
- // stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
2510
- // countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
2511
- // cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
2512
- // address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
2513
- // paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
2514
- // name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
2515
- // email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
2516
- // mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
2517
- // };
2518
- // if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email') {
2519
- // clearTimeout(timer);
2520
- // settimer(
2521
- // setTimeout(() => {
2522
- // ChooseState_CountryMutationContext.mutate(payloadobj);
2523
- // }, 1500),
2524
- // );
2525
- // } else {
2526
- // ChooseState_CountryMutationContext.mutate(payloadobj);
2527
- // }
2528
- // };
2529
- // const checkoutstyles = {
2530
- // Salepricestyless: css({
2531
- // fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2532
- // fontWeight: sectionproperties.prodsalePriceFontWeight,
2533
- // color: sectionproperties.prodsalePriceColor,
2534
- // show: sectionproperties.prodsalePriceshow,
2535
- // transition: '.3s',
2536
- // }),
2537
- // userinfo_iconcont: css({
2538
- // width: sectionproperties.userinfo_iconwidth + 'px',
2539
- // height: sectionproperties.userinfo_iconheight + 'px',
2540
- // background: sectionproperties.userinfo_iconbg,
2541
- // borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
2542
- // color: sectionproperties.userinfo_iconcolor,
2543
- // }),
2544
- // userinfotextstyles: css({
2545
- // color: sectionproperties.userinfo_color,
2546
- // fontWeight: sectionproperties.userinfo_fontweight,
2547
- // fontSize: sectionproperties.userinfo_fontsize + 'px',
2548
- // }),
2549
- // input_label_name: css({
2550
- // color: sectionproperties.form_labelcolor,
2551
- // textTransform: sectionproperties.form_labeltexttransform,
2552
- // fontWeight: sectionproperties.form_labelfontweight,
2553
- // fontSize: sectionproperties.form_labelfontsize + 'px',
2554
- // }),
2555
- // checkbox: css({
2556
- // color: sectionproperties.checkbox_color,
2557
- // textTransform: sectionproperties.form_labeltexttransform,
2558
- // fontWeight: sectionproperties.form_labelfontweight,
2559
- // fontSize: sectionproperties.form_labelfontsize + 'px',
2560
- // transition: '.3s',
2561
- // ':hover': {
2562
- // color: sectionproperties.checkbox_texthovercolor,
2563
- // },
2564
- // 'input:checked': {
2565
- // color: sectionproperties.checkbox_checkedcolor,
2566
- // },
2567
- // }),
2568
- // checkboxinputstyles: css({
2569
- // ':hover:not(:checked)': {
2570
- // boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
2571
- // },
2572
- // ':checked': {
2573
- // boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
2574
- // },
2575
- // }),
2576
- // svgstyles: css({
2577
- // stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
2578
- // }),
2579
- // innersectiontitlestyles: css({
2580
- // color: sectionproperties.innersection_titlecolor,
2581
- // fontSize: sectionproperties.innersection_titlefontsize + 'px',
2582
- // fontWeight: sectionproperties.innersection_titlefontweight,
2583
- // textTransform: sectionproperties.innersection_titletextTransform,
2584
- // }),
2585
- // summarysectionstyles: css({
2586
- // fontSize: sectionproperties.summary_fontsize + 'px',
2587
- // color: sectionproperties.summary_textcolor,
2588
- // fontWeight: sectionproperties.summary_textfontweight,
2589
- // textTransform: sectionproperties.summary_texttransform,
2590
- // textAlign: langdetect == 'en' ? 'left' : 'right',
2591
- // }),
2592
- // checkoutbtnstyles: css({
2593
- // background: sectionproperties.checkoutBtnbgColor,
2594
- // width: sectionproperties.checkoutBtnWidth,
2595
- // height: sectionproperties.checkoutBtnHeight,
2596
- // borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
2597
- // color: sectionproperties.checkoutBtnTextcolor,
2598
- // textTransform: sectionproperties.checkoutBtnTexttransform,
2599
- // fontWeight: sectionproperties.checkoutBtnTextfontweight,
2600
- // fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
2601
- // border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
2602
- // transition: '.3s',
2603
- // ':hover': {
2604
- // background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
2605
- // color: sectionproperties.checkoutBtnTextcoloronhover,
2606
- // },
2607
- // }),
2608
- // productNameStyles: css({
2609
- // color: sectionproperties.prodNameColor,
2610
- // fontSize: sectionproperties.prodNameFontSize + 'px',
2611
- // textTransform: sectionproperties.prodNameTextTranform,
2612
- // fontWeight: sectionproperties.prodNameFontWeight,
2613
- // }),
2614
- // productPricestyles: css({
2615
- // color: sectionproperties.prodPriceColor,
2616
- // fontSize: sectionproperties.prodpriceFontSize + 'px',
2617
- // fontWeight: sectionproperties.prodPriceFontWeight,
2618
- // }),
2619
- // productSalePricestyles: css({
2620
- // color: sectionproperties.prodsalePriceColor,
2621
- // fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2622
- // fontWeight: sectionproperties.prodsalePriceFontWeight,
2623
- // }),
2624
- // imagecont: css({
2625
- // width: '8vh',
2626
- // height: '8vh',
2627
- // border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
2628
- // backgroundColor: sectionproperties.prodimage_bgcolor,
2629
- // borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
2630
- // borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
2631
- // borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
2632
- // borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
2633
- // display: 'flex',
2634
- // alignItems: 'center',
2635
- // justifyContent: 'center',
2636
- // backgroundRepeat: 'no-repeat',
2637
- // backgroundSize: 'cover',
2638
- // backgroundPosition: 'center',
2639
- // position: 'relative',
2640
- // }),
2641
- // applybtnstyles: css({
2642
- // width: sectionproperties.applybtn_width + 'px',
2643
- // height: sectionproperties.applybtn_height + 'px',
2644
- // borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
2645
- // textTransform: sectionproperties.applybtn_texttransform,
2646
- // fontSize: sectionproperties.applybtn_fontsize + 'px',
2647
- // color: sectionproperties.applybtn_textColor,
2648
- // fontWeight: sectionproperties.applybtn_Textfontweight,
2649
- // background: sectionproperties.applybtn_bgColor,
2650
- // border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
2651
- // transition: '.3s',
2652
- // ':hover': {
2653
- // background: sectionproperties.applybtn_bgColoronhover,
2654
- // color: sectionproperties.applybtn_Textcoloronhover,
2655
- // },
2656
- // }),
2657
- // inputfiledstyles: css({}),
2658
- // checkorderbtnstyles: css({
2659
- // background: sectionproperties.generalbtn_bgColor,
2660
- // width: sectionproperties.generalbtn_width,
2661
- // height: sectionproperties.generalbtn_height,
2662
- // borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
2663
- // borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
2664
- // borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
2665
- // borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
2666
- // color: sectionproperties.generalbtn_textColor,
2667
- // textTransform: sectionproperties.generalbtn_texttransform,
2668
- // fontWeight: sectionproperties.generalbtn_fontweight,
2669
- // fontSize: sectionproperties.generalbtn_fontsize + 'px',
2670
- // border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
2671
- // transition: '.3s',
2672
- // ':hover': {
2673
- // background: sectionproperties.generalbtn_bgColoronhover,
2674
- // color: sectionproperties.generalbtn_textColoronhover,
2675
- // },
2676
- // }),
2677
- // input_label_name: css({
2678
- // color: sectionproperties.form_labelcolor,
2679
- // textTransform: sectionproperties.form_labeltexttransform,
2680
- // fontWeight: sectionproperties.form_labelfontweight,
2681
- // fontSize: sectionproperties.form_labelfontsize + 'px',
2682
- // }),
2683
- // };
2684
- // const Mycart = () => {
2685
- // return (
2686
- // <div className="row m-0 w-100">
2687
- // <div className="col-lg-12 d-flex align-items-center p-0">
2688
- // <p
2689
- // style={{
2690
- // fontSize: sectionproperties.sectionTitleFontSize + 'px',
2691
- // color: sectionproperties.sectionTitleColor,
2692
- // marginTop: sectionproperties.sectionTitleMarginTop + 'px',
2693
- // marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
2694
- // textTransform: sectionproperties.sectionTitleTextTransform,
2695
- // fontWeight: sectionproperties.sectionTitleFontWeight,
2696
- // }}
2697
- // >
2698
- // {lang.mycart}
2699
- // </p>
2700
- // </div>
2701
- // {ChooseState_CountryMutationContext.isLoading && <CircularProgress />}
2702
- // {!ChooseState_CountryMutationContext.isLoading && (
2703
- // <div className="row m-0 w-100">
2704
- // <div className="col-lg-12 p-0">
2705
- // {fetchcustomercartQueryContext?.data?.data?.customercart.cartitems.map((item, index) => {
2706
- // return (
2707
- // <div
2708
- // 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'}
2709
- // style={{
2710
- // background: sectionproperties.summary_sectionbgcolor,
2711
- // borderRadius: sectionproperties.summary_sectionborderbottomleftradius + 'px',
2712
- // border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
2713
- // }}
2714
- // >
2715
- // <div className="row m-0 w-100 d-flex">
2716
- // <div className={`${checkoutstyles.imagecont}`}>
2717
- // <IKImage
2718
- // urlEndpoint={IKurlEndpoint}
2719
- // publicKey={IKpublicKey}
2720
- // path={
2721
- // item.productinfo.hasvariants == 0
2722
- // ? '/tr:w-300,h-300/' + item.productinfo.productmainimage
2723
- // : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl
2724
- // }
2725
- // style={{
2726
- // width: '100%',
2727
- // height: '100%',
2728
- // objectFit: 'cover',
2729
- // }}
2730
- // loading="lazy"
2731
- // />
2732
- // </div>
2733
- // <div className="col-lg-7 col-md-7 col-sm-7">
2734
- // <div className="row m-0 w-100">
2735
- // <div className="col-lg-12 col-md-12 col-sm-12 p-0">
2736
- // <p className={`${checkoutstyles.productNameStyles}` + ' m-0 p-0 d-flex justify-content-start '}>
2737
- // {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
2738
- // </p>
2739
- // </div>
2740
- // <div className="col-lg-12 p-0">
2741
- // <p className="m-0 p-0 font-weight-500 text-light d-flex justify-content-start">
2742
- // {lang.qty}: {item.quantity}
2743
- // </p>
2744
- // </div>
2745
- // {item.productinfo.hasvariants == 1 &&
2746
- // item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
2747
- // return (
2748
- // <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
2749
- // <p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>{variantitem.optionname}:</p>
2750
- // <p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}>{variantitem.optionvalue}</p>
2751
- // </div>
2752
- // );
2753
- // })}
2754
- // </div>
2755
- // </div>
2756
- // <div className="col-lg-3 col-md-3 col-sm-2 p-0">
2757
- // <div className="row m-0 w-100 h-100">
2758
- // <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
2759
- // {item.productinfo.hasvariants == 0 && (
2760
- // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2761
- // {item.productinfo.hassale == 0 && (
2762
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2763
- // <p
2764
- // className={
2765
- // langdetect == 'en'
2766
- // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2767
- // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2768
- // }
2769
- // >
2770
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
2771
- // </p>
2772
- // </div>
2773
- // )}
2774
- // {item.productinfo.hassale == 1 && (
2775
- // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2776
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2777
- // <p
2778
- // className={
2779
- // langdetect == 'en'
2780
- // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2781
- // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2782
- // }
2783
- // >
2784
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultsaleprice} {langdetect == 'en' ? '' : 'ج.م'}
2785
- // </p>
2786
- // </div>
2787
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2788
- // <p
2789
- // className={
2790
- // langdetect == 'en'
2791
- // ? `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-right '
2792
- // : `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-left '
2793
- // }
2794
- // >
2795
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
2796
- // </p>
2797
- // </div>
2798
- // </div>
2799
- // )}
2800
- // </div>
2801
- // )}
2802
- // {item.productinfo.hasvariants == 1 && (
2803
- // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2804
- // {item.productinfo.variantinfo.hassale == 0 && (
2805
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2806
- // <p
2807
- // className={
2808
- // langdetect == 'en'
2809
- // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2810
- // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2811
- // }
2812
- // >
2813
- // {langdetect == 'en' ? 'EGP' : 'ج.م'} {item.productinfo.variantinfo.variantprice}
2814
- // </p>
2815
- // </div>
2816
- // )}
2817
- // {item.productinfo.variantinfo.hassale == 1 && (
2818
- // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2819
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2820
- // <p
2821
- // className={
2822
- // langdetect == 'en'
2823
- // ? `${checkoutstyles.productPricestyles}` +
2824
- // ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
2825
- // : `${checkoutstyles.productPricestyles}` +
2826
- // ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
2827
- // }
2828
- // >
2829
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantsaleprice}
2830
- // {langdetect == 'en' ? '' : 'ج.م'}
2831
- // </p>
2832
- // </div>
2833
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2834
- // <p
2835
- // className={
2836
- // langdetect == 'en'
2837
- // ? `${checkoutstyles.Salepricestyless}` +
2838
- // ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
2839
- // : `${checkoutstyles.Salepricestyless}` +
2840
- // ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
2841
- // }
2842
- // >
2843
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice} {langdetect == 'en' ? '' : 'ج.م'}
2844
- // </p>
2845
- // </div>
2846
- // </div>
2847
- // )}
2848
- // </div>
2849
- // )}
2850
- // </div>
2851
- // </div>
2852
- // </div>
2853
- // </div>
2854
- // </div>
2855
- // );
2856
- // })}
2857
- // <div
2858
- // className={' row m-0 w-100 p-3'}
2859
- // style={{
2860
- // background: sectionproperties.summary_sectionbgcolor,
2861
- // borderRadius: sectionproperties.summary_sectionborderradius + 'px',
2862
- // border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
2863
- // }}
2864
- // >
2865
- // <div className="col-lg-12 p-0 mb-1">
2866
- // <div className="col-lg-12 p-0 mb-4">
2867
- // <label className={`${checkoutstyles.input_label_name}` + ' m-0 p-0 mb-2 d-flex justify-content-start '}>{lang.doyouhavepromocode}</label>
2868
- // <div className={' row m-0 w-100 d-flex justify-content-center align-items-center '}>
2869
- // <div className={'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'}>
2870
- // <input
2871
- // type="text"
2872
- // className={`${formstyles.form_control}`}
2873
- // style={{
2874
- // borderRadius: sectionproperties.inputfieldborderradius + 'px',
2875
- // fontSize: sectionproperties.inputfieldfontsize + 'px',
2876
- // color: sectionproperties.inputfieldcolor,
2877
- // backgroundColor: sectionproperties.input_bgcolor,
2878
- // }}
2879
- // placeholder={lang.giftcarddicountcode}
2880
- // value={fetchcustomercartQueryContext?.data?.data?.customercart.couponname}
2881
- // onChange={(event) => {
2882
- // var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2883
- // cartarr.data.customercart.couponname = event.target.value;
2884
- // queryClient.setQueryData('fetchcustomercart_API', cartarr);
2885
- // }}
2886
- // disabled={fetchcustomercartQueryContext?.data?.data?.customercart.couponexists ? true : false}
2887
- // />
2888
- // </div>
2889
- // <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
2890
- // <button
2891
- // className={` ${checkoutstyles.applybtnstyles}`}
2892
- // onClick={() => {
2893
- // if (!fetchcustomercartQueryContext?.data?.data?.customercart.couponexists) {
2894
- // var payloadobj = {
2895
- // couponname: fetchcustomercartQueryContext?.data?.data?.customercart.couponname,
2896
- // functype: 'add',
2897
- // };
2898
- // if (fetchcustomercartQueryContext?.data?.data?.customercart.couponname.length != 0) {
2899
- // ApplyPromoCodeMutationContext.mutate(payloadobj);
2900
- // } else {
2901
- // NotificationManager.warning('', 'Please Type Promo Code');
2902
- // }
2903
- // } else {
2904
- // var payloadobj = {
2905
- // functype: 'delete',
2906
- // };
2907
- // ApplyPromoCodeMutationContext.mutate(payloadobj);
2908
- // }
2909
- // }}
2910
- // disabled={ApplyPromoCodeMutationContext.isLoading ? true : false}
2911
- // >
2912
- // <span className={ApplyPromoCodeMutationContext.isLoading ? `${generalstyles.fadeOutButton}` : `${generalstyles.fadeInButton}`}>
2913
- // {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists
2914
- // ? langdetect == 'en'
2915
- // ? 'Remove'
2916
- // : 'حذف'
2917
- // : langdetect == 'en'
2918
- // ? 'Apply'
2919
- // : 'تطبيق'}
2920
- // </span>
2921
- // <div
2922
- // className={
2923
- // ApplyPromoCodeMutationContext.isLoading
2924
- // ? `${generalstyles.fadeInButton} ${generalstyles.btn_preloader}` + ' d-flex align-items-center justify-content-center '
2925
- // : `${generalstyles.fadeOutButton}` + ' align-items-center justify-content-center '
2926
- // }
2927
- // >
2928
- // <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />
2929
- // </div>
2930
- // </button>
2931
- // </div>
2932
- // </div>
2933
- // </div>
2934
- // <div className="row m-0 w-100">
2935
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2936
- // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>{lang.subtotal}</p>
2937
- // </div>
2938
- // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2939
- // <p
2940
- // className={
2941
- // langdetect == 'en'
2942
- // ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
2943
- // : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
2944
- // }
2945
- // >
2946
- // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.totalprice} {langdetect == 'en' ? '' : 'ج.م'}
2947
- // </p>
2948
- // </div>
2949
- // </div>
2950
- // </div>
2951
- // {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists && fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
2952
- // <div className="col-lg-12 p-0 mb-1">
2953
- // <div className="row m-0 w-100">
2954
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2955
- // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '}>{lang.discount}</p>
2956
- // </div>
2957
- // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2958
- // <p
2959
- // className={
2960
- // langdetect == 'en'
2961
- // ? `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-right '
2962
- // : `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-left '
2963
- // }
2964
- // >
2965
- // {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
2966
- // <span>
2967
- // - {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice}{' '}
2968
- // {langdetect == 'en' ? '' : 'ج.م'}
2969
- // </span>
2970
- // )}
2971
- // {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice == 0 && <span>0</span>}
2972
- // </p>
2973
- // </div>
2974
- // </div>
2975
- // </div>
2976
- // )}
2977
- // <div className="col-lg-12 p-0">
2978
- // <div className="row m-0 w-100">
2979
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2980
- // <p className={`${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 d-flex align-items-start wordbreak '}>{lang.shippingfees}</p>
2981
- // </div>
2982
- // {fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
2983
- // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2984
- // <p
2985
- // className={
2986
- // langdetect == 'en'
2987
- // ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
2988
- // : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
2989
- // }
2990
- // >
2991
- // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.zoneprice} {langdetect == 'en' ? '' : 'ج.م'}
2992
- // </p>
2993
- // </div>
2994
- // )}
2995
- // {!fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
2996
- // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2997
- // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-start wordbreak '} style={{ color: 'red' }}>
2998
- // {lang.outofzone}
2999
- // </p>
3000
- // </div>
3001
- // )}
3002
- // </div>
3003
- // </div>
3004
- // <div className="col-lg-12 p-0">
3005
- // <hr className="mt-2 mb-2" />
3006
- // </div>
3007
- // <div className="col-lg-12 p-0">
3008
- // <div className="row m-0 w-100">
3009
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
3010
- // <p
3011
- // className="d-flex align-items-start"
3012
- // style={{
3013
- // fontSize: sectionproperties.total_fontsize + 'px',
3014
- // fontWeight: sectionproperties.total_fontweight,
3015
- // textTransform: sectionproperties.total_texttransform,
3016
- // color: sectionproperties.total_color,
3017
- // }}
3018
- // >
3019
- // {lang.total}
3020
- // </p>
3021
- // </div>
3022
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
3023
- // <div className="row m-0 w-100">
3024
- // <div className="col-lg-12 p-0 d-flex justify-content-end ">
3025
- // <p
3026
- // className={langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left '}
3027
- // style={{
3028
- // fontSize: sectionproperties.total_fontsize + 'px',
3029
- // fontWeight: sectionproperties.total_fontweight,
3030
- // textTransform: sectionproperties.total_texttransform,
3031
- // color: sectionproperties.total_color,
3032
- // }}
3033
- // >
3034
- // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount}{' '}
3035
- // {langdetect == 'en' ? '' : 'ج.م'}
3036
- // </p>
3037
- // </div>
3038
- // </div>
3039
- // </div>
3040
- // </div>
3041
- // </div>
3042
- // <div className="col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3">
3043
- // <button
3044
- // className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
3045
- // onClick={() => {
3046
- // var payloadobj = {};
3047
- // AddOrderMutationContext.mutate(payloadobj);
3048
- // }}
3049
- // disabled={AddOrderMutationContext.isLoading ? true : false}
3050
- // >
3051
- // {AddOrderMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
3052
- // {!AddOrderMutationContext.isLoading
3053
- // ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
3054
- // ? lang.continuetopayment
3055
- // : authdetailsContext.loggedin
3056
- // ? lang.confirmorder
3057
- // : lang.confirmorder + ' ' + lang.asaguest
3058
- // : ''}
3059
- // </button>
3060
- // </div>
3061
- // </div>
3062
- // </div>
3063
- // </div>
3064
- // )}
3065
- // </div>
3066
- // );
3067
- // };
3068
- return /*#__PURE__*/React.createElement("div", {
3069
- className: 'row m-0 w-100 mb-3 d-flex justify-content-center p-sm-0 mt-sm-3'
3070
- }, "adsdss");
2511
+ var _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _fetchcustomercartQue89, _fetchcustomercartQue90, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue97, _fetchcustomercartQue98;
2512
+
2513
+ var _useState = useState(null),
2514
+ _useState2 = _slicedToArray(_useState, 2),
2515
+ timer = _useState2[0],
2516
+ settimer = _useState2[1];
2517
+
2518
+ var langdetect = props.actions.langdetect;
2519
+ var lang = props.actions.lang;
2520
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2521
+ var routingcountext = props.actions.routingcountext;
2522
+ var ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
2523
+ var CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
2524
+ var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2525
+ var templatepropcontext = props.actions.templatepropcontext;
2526
+ var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
2527
+ var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
2528
+ var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
2529
+ var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
2530
+ var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
2531
+ var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
2532
+ var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
2533
+ var ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
2534
+ var fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
2535
+ var AddOrderMutationContext = props.actions.AddOrderMutationContext;
2536
+ props.actions.fetchAuthorizationQueryContext;
2537
+ var authdetailsContext = props.actions.authdetailsContext;
2538
+ var NotificationManager = props.actions.NotificationManager;
2539
+ var queryClient = props.actions.queryClient;
2540
+
2541
+ var _useState3 = useState(''),
2542
+ _useState4 = _slicedToArray(_useState3, 2),
2543
+ sectionproperties = _useState4[0],
2544
+ setsectionproperties = _useState4[1];
2545
+
2546
+ var _useState5 = useState(''),
2547
+ _useState6 = _slicedToArray(_useState5, 2),
2548
+ CurrentPageId = _useState6[0],
2549
+ setCurrentPageId = _useState6[1];
2550
+
2551
+ useEffect(function () {
2552
+ var _templatepropcontext$;
2553
+
2554
+ var cartindex = templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
2555
+ return x.staticpageid == '6218bccb82af8';
2556
+ });
2557
+
2558
+ if (cartindex >= 0) {
2559
+ setCurrentPageId(cartindex);
2560
+ }
2561
+ }, []);
2562
+ useEffect(function () {
2563
+ var _templatepropcontext$2, _templatepropcontext$3;
2564
+
2565
+ var secpropobj = {};
2566
+ 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) {
2567
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2568
+ });
2569
+ setsectionproperties(_objectSpread$12({}, secpropobj));
2570
+ }, [CurrentPageId]);
2571
+ useEffect(function () {
2572
+ if (CurrentSrcTypeContext == 'workplace') {
2573
+ if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2574
+ var _StatePagePropertiesC, _StatePagePropertiesC2;
2575
+
2576
+ var secpropobj = {};
2577
+ 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) {
2578
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2579
+ });
2580
+ setsectionproperties(_objectSpread$12({}, secpropobj));
2581
+ }
2582
+ }
2583
+ }, [StatePagePropertiesContext]);
2584
+ useEffect(function () {
2585
+ var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
2586
+
2587
+ // if (authdetailsContext.loggedin == true) {
2588
+ var tempFetchQueriesEngineContext = _objectSpread$12({}, FetchQueriesEngineContext);
2589
+
2590
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
2591
+ setFetchQueriesEngineContext(_objectSpread$12({}, tempFetchQueriesEngineContext));
2592
+
2593
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
2594
+
2595
+ if ( // Aya
2596
+ !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
2597
+ (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) {
2598
+ var _fetchcustomercartQue7, _fetchcustomercartQue8;
2599
+
2600
+ 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;
2601
+ }
2602
+
2603
+ if ( // aya
2604
+ !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
2605
+ (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) {
2606
+ var _fetchcustomercartQue15, _fetchcustomercartQue16;
2607
+
2608
+ 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;
2609
+ }
2610
+
2611
+ setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext)); // } else {
2612
+ // routingcountext('');
2613
+ // }
2614
+ }, []);
2615
+
2616
+ var cartinfoupdater = function cartinfoupdater(key, value) {
2617
+ var _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
2618
+
2619
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2620
+ cartarr.data.customercart[key] = value;
2621
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
2622
+ var payloadobj = {
2623
+ 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,
2624
+ 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,
2625
+ 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,
2626
+ 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,
2627
+ 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,
2628
+ 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,
2629
+ 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,
2630
+ 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
2631
+ };
2632
+
2633
+ if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email') {
2634
+ clearTimeout(timer);
2635
+ settimer(setTimeout(function () {
2636
+ ChooseState_CountryMutationContext.mutate(payloadobj);
2637
+ }, 1500));
2638
+ } else {
2639
+ ChooseState_CountryMutationContext.mutate(payloadobj);
2640
+ }
2641
+ };
2642
+
2643
+ var checkoutstyles = _defineProperty({
2644
+ Salepricestyless: css({
2645
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2646
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
2647
+ color: sectionproperties.prodsalePriceColor,
2648
+ show: sectionproperties.prodsalePriceshow,
2649
+ transition: '.3s'
2650
+ }),
2651
+ userinfo_iconcont: css({
2652
+ width: sectionproperties.userinfo_iconwidth + 'px',
2653
+ height: sectionproperties.userinfo_iconheight + 'px',
2654
+ background: sectionproperties.userinfo_iconbg,
2655
+ borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
2656
+ color: sectionproperties.userinfo_iconcolor
2657
+ }),
2658
+ userinfotextstyles: css({
2659
+ color: sectionproperties.userinfo_color,
2660
+ fontWeight: sectionproperties.userinfo_fontweight,
2661
+ fontSize: sectionproperties.userinfo_fontsize + 'px'
2662
+ }),
2663
+ input_label_name: css({
2664
+ color: sectionproperties.form_labelcolor,
2665
+ textTransform: sectionproperties.form_labeltexttransform,
2666
+ fontWeight: sectionproperties.form_labelfontweight,
2667
+ fontSize: sectionproperties.form_labelfontsize + 'px'
2668
+ }),
2669
+ checkbox: css({
2670
+ color: sectionproperties.checkbox_color,
2671
+ textTransform: sectionproperties.form_labeltexttransform,
2672
+ fontWeight: sectionproperties.form_labelfontweight,
2673
+ fontSize: sectionproperties.form_labelfontsize + 'px',
2674
+ transition: '.3s',
2675
+ ':hover': {
2676
+ color: sectionproperties.checkbox_texthovercolor
2677
+ },
2678
+ 'input:checked': {
2679
+ color: sectionproperties.checkbox_checkedcolor
2680
+ }
2681
+ }),
2682
+ checkboxinputstyles: css({
2683
+ ':hover:not(:checked)': {
2684
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor
2685
+ },
2686
+ ':checked': {
2687
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor
2688
+ }
2689
+ }),
2690
+ svgstyles: css({
2691
+ stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')'
2692
+ }),
2693
+ innersectiontitlestyles: css({
2694
+ color: sectionproperties.innersection_titlecolor,
2695
+ fontSize: sectionproperties.innersection_titlefontsize + 'px',
2696
+ fontWeight: sectionproperties.innersection_titlefontweight,
2697
+ textTransform: sectionproperties.innersection_titletextTransform
2698
+ }),
2699
+ summarysectionstyles: css({
2700
+ fontSize: sectionproperties.summary_fontsize + 'px',
2701
+ color: sectionproperties.summary_textcolor,
2702
+ fontWeight: sectionproperties.summary_textfontweight,
2703
+ textTransform: sectionproperties.summary_texttransform,
2704
+ textAlign: langdetect == 'en' ? 'left' : 'right'
2705
+ }),
2706
+ checkoutbtnstyles: css({
2707
+ background: sectionproperties.checkoutBtnbgColor,
2708
+ width: sectionproperties.checkoutBtnWidth,
2709
+ height: sectionproperties.checkoutBtnHeight,
2710
+ borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
2711
+ color: sectionproperties.checkoutBtnTextcolor,
2712
+ textTransform: sectionproperties.checkoutBtnTexttransform,
2713
+ fontWeight: sectionproperties.checkoutBtnTextfontweight,
2714
+ fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
2715
+ border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
2716
+ transition: '.3s',
2717
+ ':hover': {
2718
+ background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
2719
+ color: sectionproperties.checkoutBtnTextcoloronhover
2720
+ }
2721
+ }),
2722
+ productNameStyles: css({
2723
+ color: sectionproperties.prodNameColor,
2724
+ fontSize: sectionproperties.prodNameFontSize + 'px',
2725
+ textTransform: sectionproperties.prodNameTextTranform,
2726
+ fontWeight: sectionproperties.prodNameFontWeight
2727
+ }),
2728
+ productPricestyles: css({
2729
+ color: sectionproperties.prodPriceColor,
2730
+ fontSize: sectionproperties.prodpriceFontSize + 'px',
2731
+ fontWeight: sectionproperties.prodPriceFontWeight
2732
+ }),
2733
+ productSalePricestyles: css({
2734
+ color: sectionproperties.prodsalePriceColor,
2735
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2736
+ fontWeight: sectionproperties.prodsalePriceFontWeight
2737
+ }),
2738
+ imagecont: css({
2739
+ width: '8vh',
2740
+ height: '8vh',
2741
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
2742
+ backgroundColor: sectionproperties.prodimage_bgcolor,
2743
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
2744
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
2745
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
2746
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
2747
+ display: 'flex',
2748
+ alignItems: 'center',
2749
+ justifyContent: 'center',
2750
+ backgroundRepeat: 'no-repeat',
2751
+ backgroundSize: 'cover',
2752
+ backgroundPosition: 'center',
2753
+ position: 'relative'
2754
+ }),
2755
+ applybtnstyles: css({
2756
+ width: sectionproperties.applybtn_width + 'px',
2757
+ height: sectionproperties.applybtn_height + 'px',
2758
+ borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
2759
+ textTransform: sectionproperties.applybtn_texttransform,
2760
+ fontSize: sectionproperties.applybtn_fontsize + 'px',
2761
+ color: sectionproperties.applybtn_textColor,
2762
+ fontWeight: sectionproperties.applybtn_Textfontweight,
2763
+ background: sectionproperties.applybtn_bgColor,
2764
+ border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
2765
+ transition: '.3s',
2766
+ ':hover': {
2767
+ background: sectionproperties.applybtn_bgColoronhover,
2768
+ color: sectionproperties.applybtn_Textcoloronhover
2769
+ }
2770
+ }),
2771
+ inputfiledstyles: css({}),
2772
+ checkorderbtnstyles: css({
2773
+ background: sectionproperties.generalbtn_bgColor,
2774
+ width: sectionproperties.generalbtn_width,
2775
+ height: sectionproperties.generalbtn_height,
2776
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
2777
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
2778
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
2779
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
2780
+ color: sectionproperties.generalbtn_textColor,
2781
+ textTransform: sectionproperties.generalbtn_texttransform,
2782
+ fontWeight: sectionproperties.generalbtn_fontweight,
2783
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
2784
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
2785
+ transition: '.3s',
2786
+ ':hover': {
2787
+ background: sectionproperties.generalbtn_bgColoronhover,
2788
+ color: sectionproperties.generalbtn_textColoronhover
2789
+ }
2790
+ })
2791
+ }, "input_label_name", css({
2792
+ color: sectionproperties.form_labelcolor,
2793
+ textTransform: sectionproperties.form_labeltexttransform,
2794
+ fontWeight: sectionproperties.form_labelfontweight,
2795
+ fontSize: sectionproperties.form_labelfontsize + 'px'
2796
+ }));
2797
+
2798
+ var Mycart = function Mycart() {
2799
+ 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;
2800
+
2801
+ return /*#__PURE__*/React.createElement("div", {
2802
+ className: "row m-0 w-100"
2803
+ }, /*#__PURE__*/React.createElement("div", {
2804
+ className: "col-lg-12 d-flex align-items-center p-0"
2805
+ }, /*#__PURE__*/React.createElement("p", {
2806
+ style: {
2807
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
2808
+ color: sectionproperties.sectionTitleColor,
2809
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
2810
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
2811
+ textTransform: sectionproperties.sectionTitleTextTransform,
2812
+ fontWeight: sectionproperties.sectionTitleFontWeight
2813
+ }
2814
+ }, lang.mycart)), ChooseState_CountryMutationContext.isLoading && /*#__PURE__*/React.createElement(CircularProgress, null), !ChooseState_CountryMutationContext.isLoading && /*#__PURE__*/React.createElement("div", {
2815
+ className: "row m-0 w-100"
2816
+ }, /*#__PURE__*/React.createElement("div", {
2817
+ className: "col-lg-12 p-0"
2818
+ }, 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) {
2819
+ return /*#__PURE__*/React.createElement("div", {
2820
+ 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',
2821
+ style: {
2822
+ background: sectionproperties.summary_sectionbgcolor,
2823
+ borderRadius: sectionproperties.summary_sectionborderbottomleftradius + 'px',
2824
+ border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor
2825
+ }
2826
+ }, /*#__PURE__*/React.createElement("div", {
2827
+ className: "row m-0 w-100 d-flex"
2828
+ }, /*#__PURE__*/React.createElement("div", {
2829
+ className: "".concat(checkoutstyles.imagecont)
2830
+ }, /*#__PURE__*/React.createElement(IKImage, {
2831
+ urlEndpoint: IKurlEndpoint,
2832
+ publicKey: IKpublicKey,
2833
+ path: item.productinfo.hasvariants == 0 ? '/tr:w-300,h-300/' + item.productinfo.productmainimage : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl,
2834
+ style: {
2835
+ width: '100%',
2836
+ height: '100%',
2837
+ objectFit: 'cover'
2838
+ },
2839
+ loading: "lazy"
2840
+ })), /*#__PURE__*/React.createElement("div", {
2841
+ className: "col-lg-7 col-md-7 col-sm-7"
2842
+ }, /*#__PURE__*/React.createElement("div", {
2843
+ className: "row m-0 w-100"
2844
+ }, /*#__PURE__*/React.createElement("div", {
2845
+ className: "col-lg-12 col-md-12 col-sm-12 p-0"
2846
+ }, /*#__PURE__*/React.createElement("p", {
2847
+ className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0 d-flex justify-content-start '
2848
+ }, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), /*#__PURE__*/React.createElement("div", {
2849
+ className: "col-lg-12 p-0"
2850
+ }, /*#__PURE__*/React.createElement("p", {
2851
+ className: "m-0 p-0 font-weight-500 text-light d-flex justify-content-start"
2852
+ }, lang.qty, ": ", item.quantity)), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
2853
+ return /*#__PURE__*/React.createElement("div", {
2854
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
2855
+ }, /*#__PURE__*/React.createElement("p", {
2856
+ className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
2857
+ }, variantitem.optionname, ":"), /*#__PURE__*/React.createElement("p", {
2858
+ className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
2859
+ }, variantitem.optionvalue));
2860
+ }))), /*#__PURE__*/React.createElement("div", {
2861
+ className: "col-lg-3 col-md-3 col-sm-2 p-0"
2862
+ }, /*#__PURE__*/React.createElement("div", {
2863
+ className: "row m-0 w-100 h-100"
2864
+ }, /*#__PURE__*/React.createElement("div", {
2865
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto"
2866
+ }, item.productinfo.hasvariants == 0 && /*#__PURE__*/React.createElement("div", {
2867
+ className: "row m-0 w-100 d-flex flex-column justify-content-end"
2868
+ }, item.productinfo.hassale == 0 && /*#__PURE__*/React.createElement("div", {
2869
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2870
+ }, /*#__PURE__*/React.createElement("p", {
2871
+ className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2872
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')), item.productinfo.hassale == 1 && /*#__PURE__*/React.createElement("div", {
2873
+ className: "row m-0 w-100 d-flex flex-column justify-content-end"
2874
+ }, /*#__PURE__*/React.createElement("div", {
2875
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2876
+ }, /*#__PURE__*/React.createElement("p", {
2877
+ className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2878
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultsaleprice, " ", langdetect == 'en' ? '' : 'ج.م')), /*#__PURE__*/React.createElement("div", {
2879
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2880
+ }, /*#__PURE__*/React.createElement("p", {
2881
+ 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 '
2882
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')))), item.productinfo.hasvariants == 1 && /*#__PURE__*/React.createElement("div", {
2883
+ className: "row m-0 w-100 d-flex flex-column justify-content-end"
2884
+ }, item.productinfo.variantinfo.hassale == 0 && /*#__PURE__*/React.createElement("div", {
2885
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2886
+ }, /*#__PURE__*/React.createElement("p", {
2887
+ className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2888
+ }, langdetect == 'en' ? 'EGP' : 'ج.م', " ", item.productinfo.variantinfo.variantprice)), item.productinfo.variantinfo.hassale == 1 && /*#__PURE__*/React.createElement("div", {
2889
+ className: "row m-0 w-100 d-flex flex-column justify-content-end"
2890
+ }, /*#__PURE__*/React.createElement("div", {
2891
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2892
+ }, /*#__PURE__*/React.createElement("p", {
2893
+ 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 '
2894
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.variantinfo.variantsaleprice, langdetect == 'en' ? '' : 'ج.م')), /*#__PURE__*/React.createElement("div", {
2895
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2896
+ }, /*#__PURE__*/React.createElement("p", {
2897
+ 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 '
2898
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.variantinfo.variantprice, " ", langdetect == 'en' ? '' : 'ج.م')))))))));
2899
+ }), /*#__PURE__*/React.createElement("div", {
2900
+ className: ' row m-0 w-100 p-3',
2901
+ style: {
2902
+ background: sectionproperties.summary_sectionbgcolor,
2903
+ borderRadius: sectionproperties.summary_sectionborderradius + 'px',
2904
+ border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor
2905
+ }
2906
+ }, /*#__PURE__*/React.createElement("div", {
2907
+ className: "col-lg-12 p-0 mb-1"
2908
+ }, /*#__PURE__*/React.createElement("div", {
2909
+ className: "col-lg-12 p-0 mb-4"
2910
+ }, /*#__PURE__*/React.createElement("label", {
2911
+ className: "".concat(checkoutstyles.input_label_name) + ' m-0 p-0 mb-2 d-flex justify-content-start '
2912
+ }, lang.doyouhavepromocode), /*#__PURE__*/React.createElement("div", {
2913
+ className: ' row m-0 w-100 d-flex justify-content-center align-items-center '
2914
+ }, /*#__PURE__*/React.createElement("div", {
2915
+ className: 'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'
2916
+ }, /*#__PURE__*/React.createElement("input", {
2917
+ type: "text",
2918
+ className: "".concat(formstyles.form_control),
2919
+ style: {
2920
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
2921
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
2922
+ color: sectionproperties.inputfieldcolor,
2923
+ backgroundColor: sectionproperties.input_bgcolor
2924
+ },
2925
+ placeholder: lang.giftcarddicountcode,
2926
+ 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,
2927
+ onChange: function onChange(event) {
2928
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2929
+ cartarr.data.customercart.couponname = event.target.value;
2930
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
2931
+ },
2932
+ 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
2933
+ })), /*#__PURE__*/React.createElement("div", {
2934
+ className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center"
2935
+ }, /*#__PURE__*/React.createElement("button", {
2936
+ className: " ".concat(checkoutstyles.applybtnstyles),
2937
+ onClick: function onClick() {
2938
+ var _fetchcustomercartQue39, _fetchcustomercartQue40;
2939
+
2940
+ if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue39 !== void 0 && (_fetchcustomercartQue40 = _fetchcustomercartQue39.data) !== null && _fetchcustomercartQue40 !== void 0 && _fetchcustomercartQue40.customercart.couponexists)) {
2941
+ var _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44;
2942
+
2943
+ var payloadobj = {
2944
+ 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,
2945
+ functype: 'add'
2946
+ };
2947
+
2948
+ 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) {
2949
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
2950
+ } else {
2951
+ NotificationManager.warning('', 'Please Type Promo Code');
2952
+ }
2953
+ } else {
2954
+ var payloadobj = {
2955
+ functype: 'delete'
2956
+ };
2957
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
2958
+ }
2959
+ },
2960
+ disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
2961
+ }, /*#__PURE__*/React.createElement("span", {
2962
+ className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
2963
+ }, 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.createElement("div", {
2964
+ 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 '
2965
+ }, /*#__PURE__*/React.createElement(CircularProgress, {
2966
+ color: "#fff",
2967
+ width: "20px",
2968
+ height: "20px",
2969
+ duration: "1s"
2970
+ })))))), /*#__PURE__*/React.createElement("div", {
2971
+ className: "row m-0 w-100"
2972
+ }, /*#__PURE__*/React.createElement("div", {
2973
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
2974
+ }, /*#__PURE__*/React.createElement("p", {
2975
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
2976
+ }, lang.subtotal)), /*#__PURE__*/React.createElement("div", {
2977
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
2978
+ }, /*#__PURE__*/React.createElement("p", {
2979
+ className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
2980
+ }, 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.createElement("div", {
2981
+ className: "col-lg-12 p-0 mb-1"
2982
+ }, /*#__PURE__*/React.createElement("div", {
2983
+ className: "row m-0 w-100"
2984
+ }, /*#__PURE__*/React.createElement("div", {
2985
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
2986
+ }, /*#__PURE__*/React.createElement("p", {
2987
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '
2988
+ }, lang.discount)), /*#__PURE__*/React.createElement("div", {
2989
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
2990
+ }, /*#__PURE__*/React.createElement("p", {
2991
+ 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 '
2992
+ }, (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.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.createElement("span", null, "0"))))), /*#__PURE__*/React.createElement("div", {
2993
+ className: "col-lg-12 p-0"
2994
+ }, /*#__PURE__*/React.createElement("div", {
2995
+ className: "row m-0 w-100"
2996
+ }, /*#__PURE__*/React.createElement("div", {
2997
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
2998
+ }, /*#__PURE__*/React.createElement("p", {
2999
+ className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
3000
+ }, 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.createElement("div", {
3001
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
3002
+ }, /*#__PURE__*/React.createElement("p", {
3003
+ className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
3004
+ }, 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.createElement("div", {
3005
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
3006
+ }, /*#__PURE__*/React.createElement("p", {
3007
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
3008
+ style: {
3009
+ color: 'red'
3010
+ }
3011
+ }, lang.outofzone)))), /*#__PURE__*/React.createElement("div", {
3012
+ className: "col-lg-12 p-0"
3013
+ }, /*#__PURE__*/React.createElement("hr", {
3014
+ className: "mt-2 mb-2"
3015
+ })), /*#__PURE__*/React.createElement("div", {
3016
+ className: "col-lg-12 p-0"
3017
+ }, /*#__PURE__*/React.createElement("div", {
3018
+ className: "row m-0 w-100"
3019
+ }, /*#__PURE__*/React.createElement("div", {
3020
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
3021
+ }, /*#__PURE__*/React.createElement("p", {
3022
+ className: "d-flex align-items-start",
3023
+ style: {
3024
+ fontSize: sectionproperties.total_fontsize + 'px',
3025
+ fontWeight: sectionproperties.total_fontweight,
3026
+ textTransform: sectionproperties.total_texttransform,
3027
+ color: sectionproperties.total_color
3028
+ }
3029
+ }, lang.total)), /*#__PURE__*/React.createElement("div", {
3030
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
3031
+ }, /*#__PURE__*/React.createElement("div", {
3032
+ className: "row m-0 w-100"
3033
+ }, /*#__PURE__*/React.createElement("div", {
3034
+ className: "col-lg-12 p-0 d-flex justify-content-end "
3035
+ }, /*#__PURE__*/React.createElement("p", {
3036
+ className: langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left ',
3037
+ style: {
3038
+ fontSize: sectionproperties.total_fontsize + 'px',
3039
+ fontWeight: sectionproperties.total_fontweight,
3040
+ textTransform: sectionproperties.total_texttransform,
3041
+ color: sectionproperties.total_color
3042
+ }
3043
+ }, 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.createElement("div", {
3044
+ className: "col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3"
3045
+ }, /*#__PURE__*/React.createElement("button", {
3046
+ className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
3047
+ onClick: function onClick() {
3048
+ var payloadobj = {};
3049
+ AddOrderMutationContext.mutate(payloadobj);
3050
+ },
3051
+ disabled: AddOrderMutationContext.isLoading ? true : false
3052
+ }, AddOrderMutationContext.isLoading && /*#__PURE__*/React.createElement(CircularProgress, {
3053
+ color: "#fff",
3054
+ width: "20px",
3055
+ height: "20px",
3056
+ duration: "1s"
3057
+ }), !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 : ''))))));
3058
+ };
3059
+
3060
+ return /*#__PURE__*/React.createElement("div", {
3061
+ className: 'row m-0 w-100 mb-3 d-flex justify-content-center p-sm-0 mt-sm-3'
3062
+ }, /*#__PURE__*/React.createElement("div", {
3063
+ className: 'col-lg-12 w-100 d-flex justify-content-center pl-md-3 pr-md-3 pl-sm-2 pr-sm-2',
3064
+ style: {
3065
+ marginTop: sectionproperties.marginTop + 'px',
3066
+ marginBottom: sectionproperties.marginBottom + 'px',
3067
+ paddingLeft: sectionproperties.paddingLeft + 'px',
3068
+ paddingRight: sectionproperties.paddingRight + 'px',
3069
+ paddingTop: sectionproperties.paddingTop + 'px',
3070
+ paddingBottom: sectionproperties.paddingBottom + 'px',
3071
+ background: sectionproperties.backgroundColor,
3072
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
3073
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
3074
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
3075
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px'
3076
+ }
3077
+ }, /*#__PURE__*/React.createElement("div", {
3078
+ className: 'row m-0 w-100 justify-content-center '
3079
+ }, /*#__PURE__*/React.createElement("div", {
3080
+ 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 '
3081
+ }, /*#__PURE__*/React.createElement("div", {
3082
+ className: "col-lg-12 d-flex align-items-center p-0"
3083
+ }, /*#__PURE__*/React.createElement("p", {
3084
+ style: {
3085
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
3086
+ color: sectionproperties.sectionTitleColor,
3087
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
3088
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
3089
+ textTransform: sectionproperties.sectionTitleTextTransform,
3090
+ fontWeight: sectionproperties.sectionTitleFontWeight
3091
+ }
3092
+ }, lang.checkout)), authdetailsContext.loggedin && /*#__PURE__*/React.createElement("div", {
3093
+ className: "col-lg-12 p-0"
3094
+ }, /*#__PURE__*/React.createElement("div", {
3095
+ className: "pl-3 pr-3 pt-2 pb-2",
3096
+ style: {
3097
+ background: sectionproperties.userinfo_sectionbgcolor,
3098
+ borderRadius: sectionproperties.userinfo_borderradius + 'px',
3099
+ marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
3100
+ marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
3101
+ border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor
3102
+ }
3103
+ }, /*#__PURE__*/React.createElement("div", {
3104
+ className: "row m-0 w-100"
3105
+ }, /*#__PURE__*/React.createElement("div", {
3106
+ className: "".concat(checkoutstyles.userinfo_iconcont) + ' d-flex align-items-center justify-content-center '
3107
+ }, /*#__PURE__*/React.createElement(BsCheck2Circle, {
3108
+ size: 20
3109
+ })), /*#__PURE__*/React.createElement("div", {
3110
+ className: "col-lg-11 col-md-10 col-sm-10 p-0"
3111
+ }, /*#__PURE__*/React.createElement("div", {
3112
+ className: "row m-0 w-100"
3113
+ }, /*#__PURE__*/React.createElement("div", {
3114
+ className: "col-lg-12 d-flex align-items-center pl-2 pr-2",
3115
+ style: {
3116
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
3117
+ color: sectionproperties.userinfo_titlecolor,
3118
+ fontWeight: sectionproperties.userinfo_titlefontweight
3119
+ }
3120
+ }, lang.loggedinas), /*#__PURE__*/React.createElement("div", {
3121
+ className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 text-capitalize '
3122
+ }, /*#__PURE__*/React.createElement("div", {
3123
+ className: "m-0 p-0 d-flex align-items-center"
3124
+ }, /*#__PURE__*/React.createElement("i", {
3125
+ className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3126
+ style: {
3127
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3128
+ color: sectionproperties.userinfotext_iconcolor,
3129
+ marginRight: langdetect == 'en' ? '5px' : 0,
3130
+ marginLeft: langdetect == 'en' ? 0 : '5px'
3131
+ }
3132
+ }, /*#__PURE__*/React.createElement(HiUser, null)), /*#__PURE__*/React.createElement("p", {
3133
+ className: "m-0 p-0 wordbreak"
3134
+ }, authdetailsContext.customerinfo.name))), /*#__PURE__*/React.createElement("div", {
3135
+ className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
3136
+ }, /*#__PURE__*/React.createElement("div", {
3137
+ className: "m-0 p-0 d-flex align-items-center"
3138
+ }, /*#__PURE__*/React.createElement("i", {
3139
+ className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3140
+ style: {
3141
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3142
+ color: sectionproperties.userinfotext_iconcolor,
3143
+ marginRight: langdetect == 'en' ? '5px' : 0,
3144
+ marginLeft: langdetect == 'en' ? 0 : '5px'
3145
+ }
3146
+ }, /*#__PURE__*/React.createElement(BsFillTelephoneFill, null)), /*#__PURE__*/React.createElement("p", {
3147
+ className: "m-0 p-0 wordbreak"
3148
+ }, authdetailsContext.customerinfo.mobile))), /*#__PURE__*/React.createElement("div", {
3149
+ className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
3150
+ }, /*#__PURE__*/React.createElement("div", {
3151
+ className: "m-0 p-0 d-flex align-items-center"
3152
+ }, /*#__PURE__*/React.createElement("i", {
3153
+ className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3154
+ style: {
3155
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3156
+ color: sectionproperties.userinfotext_iconcolor,
3157
+ marginRight: langdetect == 'en' ? '5px' : 0,
3158
+ marginLeft: langdetect == 'en' ? 0 : '5px'
3159
+ }
3160
+ }, /*#__PURE__*/React.createElement(GrMail, null)), /*#__PURE__*/React.createElement("p", {
3161
+ className: "m-0 p-0 wordbreak"
3162
+ }, authdetailsContext.customerinfo.email))))), /*#__PURE__*/React.createElement("div", {
3163
+ className: "col-lg-12 justify-content-end float-right pl-2 pr-2",
3164
+ style: {
3165
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
3166
+ color: sectionproperties.userinfo_titlecolor,
3167
+ fontWeight: sectionproperties.userinfo_titlefontweight,
3168
+ textAlign: 'right',
3169
+ textDecoration: 'underline',
3170
+ cursor: 'pointer',
3171
+ position: 'absolute',
3172
+ right: 10,
3173
+ top: 10
3174
+ },
3175
+ onClick: function onClick() {
3176
+ routingcountext(StaticPagesLinksContext.accountinfo);
3177
+ }
3178
+ }, lang.update)))), /*#__PURE__*/React.createElement("div", {
3179
+ className: "col-lg-12 p-0"
3180
+ }, /*#__PURE__*/React.createElement("div", {
3181
+ style: {
3182
+ marginTop: sectionproperties.contactinfo_sectionmarginTop + 'px',
3183
+ marginBottom: sectionproperties.contactinfo_sectionmarginbottom + 'px',
3184
+ background: sectionproperties.contactinfo_sectionbgcolor,
3185
+ borderRadius: sectionproperties.contactinfo_sectionborderradius + 'px',
3186
+ border: sectionproperties.contactinfo_borderwidth + 'px solid ' + sectionproperties.contactinfo_sectionbordercolor
3187
+ }
3188
+ }, /*#__PURE__*/React.createElement("div", {
3189
+ className: "col-lg-12 pl-3 pr-3 pt-2"
3190
+ }, /*#__PURE__*/React.createElement("p", {
3191
+ className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3192
+ }, authdetailsContext.loggedin ? lang.addressdetails : lang.contactdetails)), /*#__PURE__*/React.createElement("div", {
3193
+ className: "col-lg-12 p-0"
3194
+ }, /*#__PURE__*/React.createElement("hr", {
3195
+ className: "mt-2 mb-2"
3196
+ })), /*#__PURE__*/React.createElement("div", {
3197
+ className: "row m-0 w-100 mb-3 pl-3 pr-3 pb-3"
3198
+ }, !authdetailsContext.loggedin && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
3199
+ className: "col-lg-4 col-md-12 mb-3"
3200
+ }, /*#__PURE__*/React.createElement("label", {
3201
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3202
+ }, lang.name), /*#__PURE__*/React.createElement("input", {
3203
+ type: 'text',
3204
+ className: "".concat(formstyles.form_control),
3205
+ 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,
3206
+ onChange: function onChange(event) {
3207
+ cartinfoupdater('name', event.target.value);
3208
+ },
3209
+ style: {
3210
+ resize: 'none',
3211
+ fontWeight: sectionproperties.inputtextfontweight,
3212
+ background: sectionproperties.input_bgcolor,
3213
+ color: sectionproperties.inputfieldcolor,
3214
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3215
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
3216
+ boxShadow: 'none'
3217
+ }
3218
+ })), /*#__PURE__*/React.createElement("div", {
3219
+ className: "col-lg-4 col-md-12 mb-3"
3220
+ }, /*#__PURE__*/React.createElement("label", {
3221
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3222
+ }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React.createElement("input", {
3223
+ type: 'text',
3224
+ className: "".concat(formstyles.form_control),
3225
+ 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,
3226
+ onChange: function onChange(event) {
3227
+ cartinfoupdater('mobile', event.target.value);
3228
+ },
3229
+ style: {
3230
+ resize: 'none',
3231
+ fontWeight: sectionproperties.inputtextfontweight,
3232
+ background: sectionproperties.input_bgcolor,
3233
+ color: sectionproperties.inputfieldcolor,
3234
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3235
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
3236
+ boxShadow: 'none'
3237
+ }
3238
+ })), /*#__PURE__*/React.createElement("div", {
3239
+ className: "col-lg-4 col-md-12 mb-3"
3240
+ }, /*#__PURE__*/React.createElement("label", {
3241
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3242
+ }, lang.email), /*#__PURE__*/React.createElement("input", {
3243
+ type: 'text',
3244
+ className: "".concat(formstyles.form_control),
3245
+ 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,
3246
+ onChange: function onChange(event) {
3247
+ cartinfoupdater('email', 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.createElement("div", {
3259
+ className: "col-lg-4 col-md-12 mb-3"
3260
+ }, /*#__PURE__*/React.createElement("label", {
3261
+ className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3262
+ }, " ", lang.country), fetchTabexCountriesQueryContext.isFetching && /*#__PURE__*/React.createElement("div", {
3263
+ className: "w-100"
3264
+ }, /*#__PURE__*/React.createElement(CircularProgress, {
3265
+ color: "black",
3266
+ width: "20px",
3267
+ height: "20px",
3268
+ duration: "1s"
3269
+ })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
3270
+ options: fetchTabexCountriesQueryContext.data.data.countries,
3271
+ getOptionLabel: function getOptionLabel(option) {
3272
+ return option.name;
3273
+ },
3274
+ getOptionValue: function getOptionValue(option) {
3275
+ return option.id;
3276
+ },
3277
+ value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
3278
+ var _fetchcustomercartQue75, _fetchcustomercartQue76;
3279
+
3280
+ 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);
3281
+ }),
3282
+ onChange: function onChange(option) {
3283
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
3284
+
3285
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
3286
+ tempFetchTabexStatesPayloadobjContext.country_id = option.id;
3287
+ setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext));
3288
+ cartinfoupdater('countryid', option.id);
3289
+ },
3290
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3291
+ placeholder: lang.choosecountry,
3292
+ isSearchable: true
3293
+ })), /*#__PURE__*/React.createElement("div", {
3294
+ className: "col-lg-4 col-md-12 mb-3"
3295
+ }, /*#__PURE__*/React.createElement("label", {
3296
+ className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3297
+ }, lang.stategov), fetchTabexStatesQueryContext.isFetching && /*#__PURE__*/React.createElement("div", {
3298
+ className: "w-100"
3299
+ }, /*#__PURE__*/React.createElement(CircularProgress, {
3300
+ color: "black",
3301
+ width: "20px",
3302
+ height: "20px",
3303
+ duration: "1s"
3304
+ })), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
3305
+ options: fetchTabexStatesQueryContext.data.data.states,
3306
+ getOptionLabel: function getOptionLabel(option) {
3307
+ return option.name;
3308
+ },
3309
+ getOptionValue: function getOptionValue(option) {
3310
+ return option.id;
3311
+ },
3312
+ value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
3313
+ var _fetchcustomercartQue77, _fetchcustomercartQue78;
3314
+
3315
+ 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);
3316
+ }),
3317
+ onChange: function onChange(option) {
3318
+ var _fetchcustomercartQue79, _fetchcustomercartQue80;
3319
+
3320
+ 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) {
3321
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
3322
+
3323
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
3324
+ tempFetchTabexStatesPayloadobjContext.state_id = option.id;
3325
+ setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext));
3326
+ cartinfoupdater('stateid', option.id);
3327
+ } else {
3328
+ NotificationManager.warning('', 'Please Choose Country Or State');
3329
+ }
3330
+ },
3331
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3332
+ placeholder: lang.choosestategov,
3333
+ isSearchable: true
3334
+ })), /*#__PURE__*/React.createElement("div", {
3335
+ className: "col-lg-4 col-md-12 mb-3"
3336
+ }, /*#__PURE__*/React.createElement("label", {
3337
+ className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3338
+ }, lang.city), fetchTabexCitiesQueryContext.isFetching && /*#__PURE__*/React.createElement("div", {
3339
+ className: "w-100"
3340
+ }, /*#__PURE__*/React.createElement(CircularProgress, {
3341
+ color: "black",
3342
+ width: "20px",
3343
+ height: "20px",
3344
+ duration: "1s"
3345
+ })), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React.createElement(Select, {
3346
+ options: fetchTabexCitiesQueryContext.data.data.cities,
3347
+ getOptionLabel: function getOptionLabel(option) {
3348
+ return option.name;
3349
+ },
3350
+ getOptionValue: function getOptionValue(option) {
3351
+ return option.id;
3352
+ },
3353
+ value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
3354
+ var _fetchcustomercartQue81, _fetchcustomercartQue82;
3355
+
3356
+ 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);
3357
+ }),
3358
+ onChange: function onChange(option) {
3359
+ cartinfoupdater('cityid', option.id);
3360
+ },
3361
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3362
+ placeholder: lang.choosecity,
3363
+ isSearchable: true
3364
+ })), /*#__PURE__*/React.createElement("div", {
3365
+ className: "col-lg-12 mb-3"
3366
+ }, /*#__PURE__*/React.createElement("label", {
3367
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3368
+ }, lang.shippingaddress), /*#__PURE__*/React.createElement(TextareaAutosize, {
3369
+ type: 'text',
3370
+ className: "".concat(formstyles.form_control),
3371
+ 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,
3372
+ onChange: function onChange(event) {
3373
+ cartinfoupdater('address', event.target.value);
3374
+ },
3375
+ style: {
3376
+ resize: 'none',
3377
+ fontWeight: sectionproperties.inputtextfontweight,
3378
+ background: sectionproperties.input_bgcolor,
3379
+ color: sectionproperties.inputfieldcolor,
3380
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3381
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
3382
+ boxShadow: 'none'
3383
+ }
3384
+ }))))), /*#__PURE__*/React.createElement("div", {
3385
+ className: "col-lg-12 p-0 w-100"
3386
+ }, /*#__PURE__*/React.createElement("div", {
3387
+ style: {
3388
+ background: sectionproperties.payment_sectionbgcolor,
3389
+ borderRadius: sectionproperties.payment_borderradius + 'px',
3390
+ border: sectionproperties.payment_borderwidth + 'px solid ' + sectionproperties.payment_sectionbordercolor
3391
+ }
3392
+ }, /*#__PURE__*/React.createElement("div", {
3393
+ className: "col-lg-12 pl-3 pr-3 pt-2"
3394
+ }, /*#__PURE__*/React.createElement("p", {
3395
+ className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3396
+ }, lang.paymentmethod)), /*#__PURE__*/React.createElement("div", {
3397
+ className: "col-lg-12 p-0"
3398
+ }, /*#__PURE__*/React.createElement("hr", {
3399
+ className: "mt-2 mb-2"
3400
+ })), /*#__PURE__*/React.createElement("div", {
3401
+ className: "row m-0 w-100 mb-3 pl-3 pr-3"
3402
+ }, authdetailsContext.instinfo.acceptCOD == 1 && /*#__PURE__*/React.createElement("div", {
3403
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3404
+ }, /*#__PURE__*/React.createElement("label", {
3405
+ className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
3406
+ "for": "codcheckbox"
3407
+ }, /*#__PURE__*/React.createElement("input", {
3408
+ id: 'codcheckbox',
3409
+ type: "checkbox",
3410
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3411
+ 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,
3412
+ onChange: function onChange() {
3413
+ var _fetchcustomercartQue87, _fetchcustomercartQue88;
3414
+
3415
+ 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') {
3416
+ cartinfoupdater('paymentmethod', 'cod');
3417
+ }
3418
+ }
3419
+ }), /*#__PURE__*/React.createElement("svg", {
3420
+ viewBox: "0 0 21 21",
3421
+ className: checkoutstyles.svgstyles + ' h-100 '
3422
+ }, /*#__PURE__*/React.createElement("path", {
3423
+ 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"
3424
+ })), /*#__PURE__*/React.createElement("p", {
3425
+ className: ' ml-2 mb-0 cursor-pointer wordbreak mr-2',
3426
+ style: {}
3427
+ }, lang.cod))), authdetailsContext.instinfo.acceptCardOnDelivery == 1 && /*#__PURE__*/React.createElement("div", {
3428
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3429
+ }, /*#__PURE__*/React.createElement("label", {
3430
+ 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 '
3431
+ }, /*#__PURE__*/React.createElement("input", {
3432
+ type: "checkbox",
3433
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3434
+ 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,
3435
+ onChange: function onChange() {
3436
+ var _fetchcustomercartQue91, _fetchcustomercartQue92;
3437
+
3438
+ 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') {
3439
+ cartinfoupdater('paymentmethod', 'cardondelivery');
3440
+ }
3441
+ }
3442
+ }), /*#__PURE__*/React.createElement("svg", {
3443
+ viewBox: "0 0 21 21",
3444
+ className: checkoutstyles.svgstyles + ' h-100 '
3445
+ }, /*#__PURE__*/React.createElement("path", {
3446
+ 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"
3447
+ })), /*#__PURE__*/React.createElement("p", {
3448
+ className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
3449
+ }, " ", lang.cardondelivery))), authdetailsContext.instinfo.acceptOnlineCardPayment == 0 && /*#__PURE__*/React.createElement("div", {
3450
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3451
+ }, /*#__PURE__*/React.createElement("label", {
3452
+ 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 '
3453
+ }, /*#__PURE__*/React.createElement("input", {
3454
+ type: "checkbox",
3455
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3456
+ 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,
3457
+ onChange: function onChange() {
3458
+ var _fetchcustomercartQue95, _fetchcustomercartQue96;
3459
+
3460
+ 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') {
3461
+ cartinfoupdater('paymentmethod', 'onlinepayment');
3462
+ }
3463
+ }
3464
+ }), /*#__PURE__*/React.createElement("svg", {
3465
+ viewBox: "0 0 21 21",
3466
+ className: checkoutstyles.svgstyles + ' h-100 '
3467
+ }, /*#__PURE__*/React.createElement("path", {
3468
+ 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"
3469
+ })), /*#__PURE__*/React.createElement("p", {
3470
+ className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
3471
+ }, " ", 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.createElement("div", {
3472
+ className: "col-lg-12 p-0 w-100 mb-3"
3473
+ }, /*#__PURE__*/React.createElement("div", {
3474
+ style: {
3475
+ background: sectionproperties.payment_sectionbgcolor,
3476
+ borderRadius: sectionproperties.payment_borderradius + 'px',
3477
+ borderColor: sectionproperties.payment_sectionbordercolor
3478
+ }
3479
+ }, /*#__PURE__*/React.createElement("div", {
3480
+ className: "col-lg-12 pl-3 pr-3 pt-2"
3481
+ }, /*#__PURE__*/React.createElement("p", {
3482
+ className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3483
+ }, lang.paymentcardinformation)), /*#__PURE__*/React.createElement("div", {
3484
+ className: "col-lg-12 p-0"
3485
+ }, /*#__PURE__*/React.createElement("hr", {
3486
+ className: "mt-2 mb-2"
3487
+ })), /*#__PURE__*/React.createElement("div", {
3488
+ className: "w-100 row m-0 pl-3 pr-3 pt-2 pb-2"
3489
+ }, /*#__PURE__*/React.createElement("div", {
3490
+ className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0"
3491
+ }, /*#__PURE__*/React.createElement("label", {
3492
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3493
+ }, lang.cardnumber), /*#__PURE__*/React.createElement("input", {
3494
+ className: formstyles.form_controlcheckout,
3495
+ type: "text",
3496
+ textplaceholder: "",
3497
+ onChange: function onChange(event) {},
3498
+ style: {
3499
+ fontWeight: sectionproperties.inputtextfontweight,
3500
+ background: sectionproperties.input_bgcolor,
3501
+ color: sectionproperties.inputfieldcolor,
3502
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3503
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3504
+ }
3505
+ })), /*#__PURE__*/React.createElement("div", {
3506
+ className: "w-100 row m-0"
3507
+ }, /*#__PURE__*/React.createElement("div", {
3508
+ className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3509
+ }, /*#__PURE__*/React.createElement("label", {
3510
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3511
+ }, lang.year), /*#__PURE__*/React.createElement("input", {
3512
+ className: formstyles.form_controlcheckout,
3513
+ type: "text",
3514
+ textplaceholder: "",
3515
+ onChange: function onChange(event) {},
3516
+ style: {
3517
+ fontWeight: sectionproperties.inputtextfontweight,
3518
+ background: sectionproperties.input_bgcolor,
3519
+ color: sectionproperties.inputfieldcolor,
3520
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3521
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3522
+ }
3523
+ })), /*#__PURE__*/React.createElement("div", {
3524
+ className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3525
+ }, /*#__PURE__*/React.createElement("label", {
3526
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3527
+ }, lang.month), /*#__PURE__*/React.createElement("input", {
3528
+ className: formstyles.form_controlcheckout,
3529
+ type: "text",
3530
+ textplaceholder: "",
3531
+ onChange: function onChange(event) {},
3532
+ style: {
3533
+ fontWeight: sectionproperties.inputtextfontweight,
3534
+ background: sectionproperties.input_bgcolor,
3535
+ color: sectionproperties.inputfieldcolor,
3536
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3537
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3538
+ }
3539
+ })), /*#__PURE__*/React.createElement("div", {
3540
+ className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3541
+ }, /*#__PURE__*/React.createElement("label", {
3542
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3543
+ }, lang.cvv), /*#__PURE__*/React.createElement("input", {
3544
+ className: formstyles.form_controlcheckout,
3545
+ type: "text",
3546
+ textplaceholder: "",
3547
+ onChange: function onChange(event) {},
3548
+ style: {
3549
+ fontWeight: sectionproperties.inputtextfontweight,
3550
+ background: sectionproperties.input_bgcolor,
3551
+ color: sectionproperties.inputfieldcolor,
3552
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3553
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3554
+ }
3555
+ }))), /*#__PURE__*/React.createElement("div", {
3556
+ className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0 mb-3"
3557
+ }, /*#__PURE__*/React.createElement("label", {
3558
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3559
+ }, lang.nameoncard), /*#__PURE__*/React.createElement("input", {
3560
+ className: formstyles.form_controlcheckout,
3561
+ type: "text",
3562
+ textplaceholder: "",
3563
+ onChange: function onChange(event) {},
3564
+ style: {
3565
+ fontWeight: sectionproperties.inputtextfontweight,
3566
+ background: sectionproperties.input_bgcolor,
3567
+ color: sectionproperties.inputfieldcolor,
3568
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3569
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3570
+ }
3571
+ })))))), /*#__PURE__*/React.createElement("div", {
3572
+ className: langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0' : 'col-lg-4 col-md-12 pl-0'
3573
+ }, Mycart()))));
3071
3574
  };
3072
3575
 
3073
3576
  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";