tabexseriescomponents 0.0.45 → 0.0.49

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