tabexseriescomponents 0.0.47 → 0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-icons/ai'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('react-facebook-login/dist/facebook-login-render-props'), require('react-icons/fa'), require('@babel/runtime/helpers/toConsumableArray'), require('react-bootstrap'), require('react-icons/io5'), require('imagekitio-react'), require('react-icons/hi'), require('react-icons/go'), require('react-icons/bs'), require('react-icons/fi'), require('react-icons/md'), require('react-icons/io'), require('react-icons/cg'), require('react-textarea-autosize'), require('react-select'), require('react-icons/gr'), require('react-accessible-accordion'), require('react-bootstrap/Dropdown'), require('react-intersection-observer'), require('axios'), require('react-horizontal-scrolling-menu'), require('react-background-slideshow'), require('react-slideshow-image'), require('@babel/runtime/helpers/extends'), require('react-router-dom'), require('react-icons/bi'), require('react-icons/ri'), require('react-notifications')) :
3
- typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-icons/ai', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', 'react-facebook-login/dist/facebook-login-render-props', 'react-icons/fa', '@babel/runtime/helpers/toConsumableArray', 'react-bootstrap', 'react-icons/io5', 'imagekitio-react', 'react-icons/hi', 'react-icons/go', 'react-icons/bs', 'react-icons/fi', 'react-icons/md', 'react-icons/io', 'react-icons/cg', 'react-textarea-autosize', 'react-select', 'react-icons/gr', 'react-accessible-accordion', 'react-bootstrap/Dropdown', 'react-intersection-observer', 'axios', 'react-horizontal-scrolling-menu', 'react-background-slideshow', 'react-slideshow-image', '@babel/runtime/helpers/extends', 'react-router-dom', 'react-icons/bi', 'react-icons/ri', 'react-notifications'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._assertThisInitialized, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._defineProperty, global.Cookies, global.ai, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FacebookLogin, global.fa, global._toConsumableArray, global.reactBootstrap, global.io5, global.imagekitioReact, global.hi, global.go, global.bs, global.fi, global.md, global.io, global.cg, null, null, null, global.reactAccessibleAccordion, global.Dropdown, global.reactIntersectionObserver, null, global.reactHorizontalScrollingMenu, global.BackgroundSlideshow, global.reactSlideshowImage, global._extends, global.reactRouterDom, global.bi, global.ri));
5
- })(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _assertThisInitialized, _inherits, _possibleConstructorReturn, _getPrototypeOf, _defineProperty, Cookies, ai, reactCssfxLoading, glamor, google, jwtDecode, FacebookLogin, fa, _toConsumableArray, reactBootstrap, io5, imagekitioReact, hi, go, bs, fi, md, io, cg, reactTextareaAutosize, reactSelect, gr, reactAccessibleAccordion, Dropdown, reactIntersectionObserver, axios, reactHorizontalScrollingMenu, BackgroundSlideshow, reactSlideshowImage, _extends, reactRouterDom, bi, ri) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@babel/runtime/helpers/slicedToArray'), require('react'), require('@babel/runtime/helpers/classCallCheck'), require('@babel/runtime/helpers/createClass'), require('@babel/runtime/helpers/assertThisInitialized'), require('@babel/runtime/helpers/inherits'), require('@babel/runtime/helpers/possibleConstructorReturn'), require('@babel/runtime/helpers/getPrototypeOf'), require('@babel/runtime/helpers/defineProperty'), require('universal-cookie'), require('react-icons/ai'), require('react-cssfx-loading'), require('glamor'), require('@react-oauth/google'), require('jwt-decode'), require('react-facebook-login/dist/facebook-login-render-props'), require('react-icons/fa'), require('@babel/runtime/helpers/toConsumableArray'), require('react-bootstrap'), require('react-icons/io5'), require('imagekitio-react'), require('react-icons/hi'), require('react-icons/go'), require('react-icons/bs'), require('react-icons/fi'), require('react-icons/md'), require('react-icons/io'), require('react-icons/cg'), require('react-textarea-autosize'), require('react-icons/gr'), require('react-accessible-accordion'), require('react-bootstrap/Dropdown'), require('react-intersection-observer'), require('axios'), require('react-horizontal-scrolling-menu'), require('react-background-slideshow'), require('react-slideshow-image'), require('@babel/runtime/helpers/extends'), require('react-router-dom'), require('react-icons/bi'), require('react-icons/ri'), require('react-notifications')) :
3
+ typeof define === 'function' && define.amd ? define(['@babel/runtime/helpers/slicedToArray', 'react', '@babel/runtime/helpers/classCallCheck', '@babel/runtime/helpers/createClass', '@babel/runtime/helpers/assertThisInitialized', '@babel/runtime/helpers/inherits', '@babel/runtime/helpers/possibleConstructorReturn', '@babel/runtime/helpers/getPrototypeOf', '@babel/runtime/helpers/defineProperty', 'universal-cookie', 'react-icons/ai', 'react-cssfx-loading', 'glamor', '@react-oauth/google', 'jwt-decode', 'react-facebook-login/dist/facebook-login-render-props', 'react-icons/fa', '@babel/runtime/helpers/toConsumableArray', 'react-bootstrap', 'react-icons/io5', 'imagekitio-react', 'react-icons/hi', 'react-icons/go', 'react-icons/bs', 'react-icons/fi', 'react-icons/md', 'react-icons/io', 'react-icons/cg', 'react-textarea-autosize', 'react-icons/gr', 'react-accessible-accordion', 'react-bootstrap/Dropdown', 'react-intersection-observer', 'axios', 'react-horizontal-scrolling-menu', 'react-background-slideshow', 'react-slideshow-image', '@babel/runtime/helpers/extends', 'react-router-dom', 'react-icons/bi', 'react-icons/ri', 'react-notifications'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.tabexseriescomponents = factory(global._slicedToArray, global.React, global._classCallCheck, global._createClass, global._assertThisInitialized, global._inherits, global._possibleConstructorReturn, global._getPrototypeOf, global._defineProperty, global.Cookies, global.ai, global.reactCssfxLoading, global.glamor, global.google, global.jwtDecode, global.FacebookLogin, global.fa, global._toConsumableArray, global.reactBootstrap, global.io5, global.imagekitioReact, global.hi, global.go, global.bs, global.fi, global.md, global.io, global.cg, global.TextareaAutosize, global.gr, global.reactAccessibleAccordion, global.Dropdown, global.reactIntersectionObserver, null, global.reactHorizontalScrollingMenu, global.BackgroundSlideshow, global.reactSlideshowImage, global._extends, global.reactRouterDom, global.bi, global.ri));
5
+ })(this, (function (_slicedToArray, React, _classCallCheck, _createClass, _assertThisInitialized, _inherits, _possibleConstructorReturn, _getPrototypeOf, _defineProperty, Cookies, ai, reactCssfxLoading, glamor, google, jwtDecode, FacebookLogin, fa, _toConsumableArray, reactBootstrap, io5, imagekitioReact, hi, go, bs, fi, md, io, cg, TextareaAutosize, gr, reactAccessibleAccordion, Dropdown, reactIntersectionObserver, axios, reactHorizontalScrollingMenu, BackgroundSlideshow, reactSlideshowImage, _extends, reactRouterDom, bi, ri) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -19,6 +19,7 @@
19
19
  var jwtDecode__default = /*#__PURE__*/_interopDefaultLegacy(jwtDecode);
20
20
  var FacebookLogin__default = /*#__PURE__*/_interopDefaultLegacy(FacebookLogin);
21
21
  var _toConsumableArray__default = /*#__PURE__*/_interopDefaultLegacy(_toConsumableArray);
22
+ var TextareaAutosize__default = /*#__PURE__*/_interopDefaultLegacy(TextareaAutosize);
22
23
  var Dropdown__default = /*#__PURE__*/_interopDefaultLegacy(Dropdown);
23
24
  var BackgroundSlideshow__default = /*#__PURE__*/_interopDefaultLegacy(BackgroundSlideshow);
24
25
  var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
@@ -443,9 +444,9 @@
443
444
  }));
444
445
  };
445
446
 
446
- 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; }
447
+ 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; }
447
448
 
448
- function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$15(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$15(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
449
+ function _objectSpread$17(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$17(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$17(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
449
450
 
450
451
  var Login = function Login(props) {
451
452
  var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
@@ -491,7 +492,7 @@
491
492
  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) {
492
493
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
493
494
  });
494
- setsectionproperties(_objectSpread$15({}, secpropobj));
495
+ setsectionproperties(_objectSpread$17({}, secpropobj));
495
496
  }
496
497
  }, [StatePagePropertiesContext]);
497
498
 
@@ -605,10 +606,10 @@
605
606
  className: "".concat(loginstyles.form_control, " ").concat(loginstyles2.form_control),
606
607
  value: payloadobj.email,
607
608
  onChange: function onChange(event) {
608
- var temppayloadobj = _objectSpread$15({}, payloadobj);
609
+ var temppayloadobj = _objectSpread$17({}, payloadobj);
609
610
 
610
611
  temppayloadobj.email = event.target.value;
611
- setpayloadobj(_objectSpread$15({}, temppayloadobj));
612
+ setpayloadobj(_objectSpread$17({}, temppayloadobj));
612
613
  }
613
614
  }), /*#__PURE__*/React__default["default"].createElement("span", {
614
615
  className: langdetect == 'en' ? loginstyles.login_input_icon : loginstyles.login_input_icontrans
@@ -626,10 +627,10 @@
626
627
  textplaceholder: "",
627
628
  value: payloadobj.password,
628
629
  onChange: function onChange(event) {
629
- var temppayloadobj = _objectSpread$15({}, payloadobj);
630
+ var temppayloadobj = _objectSpread$17({}, payloadobj);
630
631
 
631
632
  temppayloadobj.password = event.target.value;
632
- setpayloadobj(_objectSpread$15({}, temppayloadobj));
633
+ setpayloadobj(_objectSpread$17({}, temppayloadobj));
633
634
  }
634
635
  }), /*#__PURE__*/React__default["default"].createElement("span", {
635
636
  className: langdetect == 'en' ? loginstyles.login_input_icon : loginstyles.login_input_icontrans
@@ -752,9 +753,9 @@
752
753
  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"};
753
754
  styleInject(css_248z$v);
754
755
 
755
- 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; }
756
+ 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; }
756
757
 
757
- function _objectSpread$14(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$14(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$14(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
758
+ function _objectSpread$16(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$16(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$16(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
758
759
  // import { useMutation, useQuery, useQueryClient } from 'react-query';
759
760
  // import { useHistory, Link } from 'react-router-dom';
760
761
  // import { LanguageContext } from '../../../../../../../Contexts/LanguageContext';
@@ -862,7 +863,7 @@
862
863
  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) {
863
864
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
864
865
  });
865
- setsectionproperties(_objectSpread$14({}, secpropobj));
866
+ setsectionproperties(_objectSpread$16({}, secpropobj));
866
867
  setnavigationstyle('Upper Navigation'); // }
867
868
  // }
868
869
  }, [CurrentPageId]);
@@ -1018,9 +1019,9 @@
1018
1019
  }))))));
1019
1020
  };
1020
1021
 
1021
- 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; }
1022
+ 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; }
1022
1023
 
1023
- function _objectSpread$13(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$13(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$13(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1024
+ function _objectSpread$15(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$15(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$15(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1024
1025
 
1025
1026
  var Ordershistory = function Ordershistory(props) {
1026
1027
  var _bgimagesarray$, _bgimagesarray$2;
@@ -1065,10 +1066,10 @@
1065
1066
 
1066
1067
  React.useEffect(function () {
1067
1068
  if ((authdetailsContext === null || authdetailsContext === void 0 ? void 0 : authdetailsContext.loggedin) == true) {
1068
- var tempFetchQueriesEngineContext = _objectSpread$13({}, FetchQueriesEngineContext);
1069
+ var tempFetchQueriesEngineContext = _objectSpread$15({}, FetchQueriesEngineContext);
1069
1070
 
1070
1071
  tempFetchQueriesEngineContext.orderhistory = true;
1071
- setFetchQueriesEngineContext(_objectSpread$13({}, tempFetchQueriesEngineContext));
1072
+ setFetchQueriesEngineContext(_objectSpread$15({}, tempFetchQueriesEngineContext));
1072
1073
  } else {
1073
1074
  routingcountext('');
1074
1075
  }
@@ -1094,7 +1095,7 @@
1094
1095
  StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
1095
1096
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1096
1097
  });
1097
- setsectionproperties(_objectSpread$13({}, secpropobj));
1098
+ setsectionproperties(_objectSpread$15({}, secpropobj));
1098
1099
  }
1099
1100
  }, [StatePagePropertiesContext]);
1100
1101
  var orderhistory_cssstyles = {
@@ -1878,9 +1879,9 @@
1878
1879
  var wishliststyles = {"wishlist_card":"wishlist-module_wishlist_card__sUXul","image_container":"wishlist-module_image_container__FuptA","floatbtn":"wishlist-module_floatbtn__PZDvQ"};
1879
1880
  styleInject(css_248z$u);
1880
1881
 
1881
- 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; }
1882
+ 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; }
1882
1883
 
1883
- function _objectSpread$12(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$12(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$12(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1884
+ function _objectSpread$14(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$14(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$14(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
1884
1885
 
1885
1886
  var Wishlist = function Wishlist(props) {
1886
1887
  var _bgimagesarray$, _bgimagesarray$2;
@@ -1917,7 +1918,7 @@
1917
1918
  StatePagePropertiesContext.pageobj.pageproperties.forEach(function (arrayItem, arrayindex) {
1918
1919
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1919
1920
  });
1920
- setsectionproperties(_objectSpread$12({}, secpropobj));
1921
+ setsectionproperties(_objectSpread$14({}, secpropobj));
1921
1922
  }
1922
1923
  }, [StatePagePropertiesContext]);
1923
1924
 
@@ -1927,10 +1928,10 @@
1927
1928
  _useState2[1];
1928
1929
 
1929
1930
  React.useEffect(function () {
1930
- var tempFetchQueriesEngineContext = _objectSpread$12({}, FetchQueriesEngineContext);
1931
+ var tempFetchQueriesEngineContext = _objectSpread$14({}, FetchQueriesEngineContext);
1931
1932
 
1932
1933
  tempFetchQueriesEngineContext.fetchfavoriteproducts = true;
1933
- setFetchQueriesEngineContext(_objectSpread$12({}, tempFetchQueriesEngineContext));
1934
+ setFetchQueriesEngineContext(_objectSpread$14({}, tempFetchQueriesEngineContext));
1934
1935
  }, []);
1935
1936
 
1936
1937
  var _useState3 = React.useState(''),
@@ -1962,7 +1963,7 @@
1962
1963
  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) {
1963
1964
  secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
1964
1965
  });
1965
- setsectionproperties(_objectSpread$12({}, secpropobj));
1966
+ setsectionproperties(_objectSpread$14({}, secpropobj));
1966
1967
  }
1967
1968
  }, [StatePagePropertiesContext]);
1968
1969
  var wishlist_cssstyles = {
@@ -2398,658 +2399,1161 @@
2398
2399
  };
2399
2400
 
2400
2401
  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";
2402
+ 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-"};
2401
2403
  styleInject(css_248z$t);
2402
2404
 
2405
+ 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; }
2406
+
2407
+ function _objectSpread$13(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$13(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$13(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2408
+ var defaultstyles = {
2409
+ option: function option(provided, state) {
2410
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2411
+ borderBottom: '1px solid #e6e6e6',
2412
+ backgroundColor: state.isSelected ? '' : '',
2413
+ padding: 5,
2414
+ textTransform: 'capitalize',
2415
+ color: state.isSelected ? '#eac435' : '#022648',
2416
+ transition: '.3s',
2417
+ '&:hover': {
2418
+ // color: '#eac435',
2419
+ cursor: 'pointer'
2420
+ }
2421
+ });
2422
+ },
2423
+ control: function control() {
2424
+ return {
2425
+ borderBottom: '1px solid #ccc',
2426
+ backgroundColor: 'white',
2427
+ display: 'flex',
2428
+ cursor: 'pointer',
2429
+ padding: 0,
2430
+ transition: '.3s',
2431
+ '&:hover': {// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
2432
+ // borderRadius: '10px',
2433
+ }
2434
+ };
2435
+ },
2436
+ dropdownIndicator: function dropdownIndicator(provided) {
2437
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2438
+ '&:hover': {// color: '#eac435',
2439
+ }
2440
+ });
2441
+ }
2442
+ };
2443
+ var defaultstylestranslated = {
2444
+ option: function option(provided, state) {
2445
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2446
+ borderBottom: '1px solid #e6e6e6',
2447
+ backgroundColor: state.isSelected ? '' : '',
2448
+ padding: 5,
2449
+ textTransform: 'capitalize',
2450
+ // color: state.isSelected ? '#eac435' : '#022648',
2451
+ transition: '.3s',
2452
+ textAlign: 'right',
2453
+ '&:hover': {
2454
+ // color: '#eac435',
2455
+ cursor: 'pointer'
2456
+ }
2457
+ });
2458
+ },
2459
+ control: function control() {
2460
+ return {
2461
+ borderBottom: '1px solid #ccc',
2462
+ backgroundColor: 'white',
2463
+ display: 'flex',
2464
+ cursor: 'pointer',
2465
+ padding: 0,
2466
+ transition: '.3s',
2467
+ textAlign: 'right',
2468
+ '&:hover': {// boxShadow: '0px 9px 20px rgba(75, 72, 72, 0.3)',
2469
+ // borderRadius: '10px',
2470
+ }
2471
+ };
2472
+ },
2473
+ dropdownIndicator: function dropdownIndicator(provided) {
2474
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2475
+ '&:hover': {// color: '#eac435',
2476
+ }
2477
+ });
2478
+ },
2479
+ placeholder: function placeholder(provided, state) {
2480
+ return _objectSpread$13(_objectSpread$13({}, provided), {}, {
2481
+ textAlign: 'right'
2482
+ });
2483
+ }
2484
+ };
2485
+
2486
+ 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; }
2487
+
2488
+ function _objectSpread$12(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$12(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$12(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
2489
+ var Select = /*#__PURE__*/React__default["default"].lazy(function () {
2490
+ return import('react-select');
2491
+ });
2492
+
2403
2493
  var Checkout = function Checkout(props) {
2404
- // const [timer, settimer] = useState(null);
2405
- // const langdetect = props.actions.langdetect;
2406
- // const lang = props.actions.lang;
2407
- // const StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2408
- // const routingcountext = props.actions.routingcountext;
2409
- // const ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
2410
- // const CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
2411
- // const StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2412
- // const templatepropcontext = props.actions.templatepropcontext;
2413
- // const fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
2414
- // const FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
2415
- // const setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
2416
- // const fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
2417
- // const fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
2418
- // const FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
2419
- // const setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
2420
- // const ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
2421
- // const fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
2422
- // const AddOrderMutationContext = props.actions.AddOrderMutationContext;
2423
- // const fetchAuthorizationQueryContext = props.actions.fetchAuthorizationQueryContext;
2424
- // const authdetailsContext = props.actions.authdetailsContext;
2425
- // const NotificationManager = props.actions.NotificationManager;
2426
- // const queryClient = props.actions.queryClient;
2427
- // const [sectionproperties, setsectionproperties] = useState('');
2428
- // const [CurrentPageId, setCurrentPageId] = useState('');
2429
- // useEffect(() => {
2430
- // var cartindex = templatepropcontext?.pagesnprop?.findIndex((x) => x.staticpageid == '6218bccb82af8');
2431
- // if (cartindex >= 0) {
2432
- // setCurrentPageId(cartindex);
2433
- // }
2434
- // }, []);
2435
- // useEffect(() => {
2436
- // var secpropobj = {};
2437
- // templatepropcontext?.pagesnprop[CurrentPageId]?.pageproperties?.forEach(function (arrayItem, arrayindex) {
2438
- // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2439
- // });
2440
- // setsectionproperties({ ...secpropobj });
2441
- // }, [CurrentPageId]);
2442
- // useEffect(() => {
2443
- // if (CurrentSrcTypeContext == 'workplace') {
2444
- // if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2445
- // var secpropobj = {};
2446
- // StatePagePropertiesContext?.pageobj?.pageproperties?.forEach(function (arrayItem, arrayindex) {
2447
- // secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2448
- // });
2449
- // setsectionproperties({ ...secpropobj });
2450
- // }
2451
- // }
2452
- // }, [StatePagePropertiesContext]);
2453
- // useEffect(() => {
2454
- // // if (authdetailsContext.loggedin == true) {
2455
- // var tempFetchQueriesEngineContext = { ...FetchQueriesEngineContext };
2456
- // tempFetchQueriesEngineContext.fetchtabexcountries = true;
2457
- // setFetchQueriesEngineContext({ ...tempFetchQueriesEngineContext });
2458
- // var tempFetchTabexStatesPayloadobjContext = { ...FetchTabexStatesPayloadobjContext };
2459
- // if (
2460
- // // Aya
2461
- // !fetchcustomercartQueryContext.isFetching &&
2462
- // fetchcustomercartQueryContext.isSuccess &&
2463
- // fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
2464
- // fetchcustomercartQueryContext?.data?.data?.customercart.countryid != null &&
2465
- // // End
2466
- // fetchcustomercartQueryContext?.data?.data?.customercart.countryid.length != 0
2467
- // ) {
2468
- // tempFetchTabexStatesPayloadobjContext.country_id = fetchcustomercartQueryContext?.data?.data?.customercart.countryid;
2469
- // }
2470
- // if (
2471
- // // aya
2472
- // !fetchcustomercartQueryContext.isFetching &&
2473
- // fetchcustomercartQueryContext.isSuccess &&
2474
- // fetchcustomercartQueryContext?.data?.data?.customercart != undefined &&
2475
- // fetchcustomercartQueryContext?.data?.data?.customercart.stateid != null &&
2476
- // // end
2477
- // fetchcustomercartQueryContext?.data?.data?.customercart.stateid.length != 0
2478
- // ) {
2479
- // tempFetchTabexStatesPayloadobjContext.state_id = fetchcustomercartQueryContext?.data?.data?.customercart.stateid;
2480
- // }
2481
- // setFetchTabexStatesPayloadobjContext({ ...tempFetchTabexStatesPayloadobjContext });
2482
- // // } else {
2483
- // // routingcountext('');
2484
- // // }
2485
- // }, []);
2486
- // const cartinfoupdater = (key, value) => {
2487
- // var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2488
- // cartarr.data.customercart[key] = value;
2489
- // queryClient.setQueryData('fetchcustomercart_API', cartarr);
2490
- // var payloadobj = {
2491
- // stateid: fetchcustomercartQueryContext?.data?.data?.customercart.stateid,
2492
- // countryid: fetchcustomercartQueryContext?.data?.data?.customercart.countryid,
2493
- // cityid: fetchcustomercartQueryContext?.data?.data?.customercart.cityid,
2494
- // address: fetchcustomercartQueryContext?.data?.data?.customercart.address,
2495
- // paymentmethod: fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod,
2496
- // name: fetchcustomercartQueryContext?.data?.data?.customercart.name,
2497
- // email: fetchcustomercartQueryContext?.data?.data?.customercart.email,
2498
- // mobile: fetchcustomercartQueryContext?.data?.data?.customercart.mobile,
2499
- // };
2500
- // if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email') {
2501
- // clearTimeout(timer);
2502
- // settimer(
2503
- // setTimeout(() => {
2504
- // ChooseState_CountryMutationContext.mutate(payloadobj);
2505
- // }, 1500),
2506
- // );
2507
- // } else {
2508
- // ChooseState_CountryMutationContext.mutate(payloadobj);
2509
- // }
2510
- // };
2511
- // const checkoutstyles = {
2512
- // Salepricestyless: css({
2513
- // fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2514
- // fontWeight: sectionproperties.prodsalePriceFontWeight,
2515
- // color: sectionproperties.prodsalePriceColor,
2516
- // show: sectionproperties.prodsalePriceshow,
2517
- // transition: '.3s',
2518
- // }),
2519
- // userinfo_iconcont: css({
2520
- // width: sectionproperties.userinfo_iconwidth + 'px',
2521
- // height: sectionproperties.userinfo_iconheight + 'px',
2522
- // background: sectionproperties.userinfo_iconbg,
2523
- // borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
2524
- // color: sectionproperties.userinfo_iconcolor,
2525
- // }),
2526
- // userinfotextstyles: css({
2527
- // color: sectionproperties.userinfo_color,
2528
- // fontWeight: sectionproperties.userinfo_fontweight,
2529
- // fontSize: sectionproperties.userinfo_fontsize + 'px',
2530
- // }),
2531
- // input_label_name: css({
2532
- // color: sectionproperties.form_labelcolor,
2533
- // textTransform: sectionproperties.form_labeltexttransform,
2534
- // fontWeight: sectionproperties.form_labelfontweight,
2535
- // fontSize: sectionproperties.form_labelfontsize + 'px',
2536
- // }),
2537
- // checkbox: css({
2538
- // color: sectionproperties.checkbox_color,
2539
- // textTransform: sectionproperties.form_labeltexttransform,
2540
- // fontWeight: sectionproperties.form_labelfontweight,
2541
- // fontSize: sectionproperties.form_labelfontsize + 'px',
2542
- // transition: '.3s',
2543
- // ':hover': {
2544
- // color: sectionproperties.checkbox_texthovercolor,
2545
- // },
2546
- // 'input:checked': {
2547
- // color: sectionproperties.checkbox_checkedcolor,
2548
- // },
2549
- // }),
2550
- // checkboxinputstyles: css({
2551
- // ':hover:not(:checked)': {
2552
- // boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor,
2553
- // },
2554
- // ':checked': {
2555
- // boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor,
2556
- // },
2557
- // }),
2558
- // svgstyles: css({
2559
- // stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')',
2560
- // }),
2561
- // innersectiontitlestyles: css({
2562
- // color: sectionproperties.innersection_titlecolor,
2563
- // fontSize: sectionproperties.innersection_titlefontsize + 'px',
2564
- // fontWeight: sectionproperties.innersection_titlefontweight,
2565
- // textTransform: sectionproperties.innersection_titletextTransform,
2566
- // }),
2567
- // summarysectionstyles: css({
2568
- // fontSize: sectionproperties.summary_fontsize + 'px',
2569
- // color: sectionproperties.summary_textcolor,
2570
- // fontWeight: sectionproperties.summary_textfontweight,
2571
- // textTransform: sectionproperties.summary_texttransform,
2572
- // textAlign: langdetect == 'en' ? 'left' : 'right',
2573
- // }),
2574
- // checkoutbtnstyles: css({
2575
- // background: sectionproperties.checkoutBtnbgColor,
2576
- // width: sectionproperties.checkoutBtnWidth,
2577
- // height: sectionproperties.checkoutBtnHeight,
2578
- // borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
2579
- // color: sectionproperties.checkoutBtnTextcolor,
2580
- // textTransform: sectionproperties.checkoutBtnTexttransform,
2581
- // fontWeight: sectionproperties.checkoutBtnTextfontweight,
2582
- // fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
2583
- // border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
2584
- // transition: '.3s',
2585
- // ':hover': {
2586
- // background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
2587
- // color: sectionproperties.checkoutBtnTextcoloronhover,
2588
- // },
2589
- // }),
2590
- // productNameStyles: css({
2591
- // color: sectionproperties.prodNameColor,
2592
- // fontSize: sectionproperties.prodNameFontSize + 'px',
2593
- // textTransform: sectionproperties.prodNameTextTranform,
2594
- // fontWeight: sectionproperties.prodNameFontWeight,
2595
- // }),
2596
- // productPricestyles: css({
2597
- // color: sectionproperties.prodPriceColor,
2598
- // fontSize: sectionproperties.prodpriceFontSize + 'px',
2599
- // fontWeight: sectionproperties.prodPriceFontWeight,
2600
- // }),
2601
- // productSalePricestyles: css({
2602
- // color: sectionproperties.prodsalePriceColor,
2603
- // fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2604
- // fontWeight: sectionproperties.prodsalePriceFontWeight,
2605
- // }),
2606
- // imagecont: css({
2607
- // width: '8vh',
2608
- // height: '8vh',
2609
- // border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
2610
- // backgroundColor: sectionproperties.prodimage_bgcolor,
2611
- // borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
2612
- // borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
2613
- // borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
2614
- // borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
2615
- // display: 'flex',
2616
- // alignItems: 'center',
2617
- // justifyContent: 'center',
2618
- // backgroundRepeat: 'no-repeat',
2619
- // backgroundSize: 'cover',
2620
- // backgroundPosition: 'center',
2621
- // position: 'relative',
2622
- // }),
2623
- // applybtnstyles: css({
2624
- // width: sectionproperties.applybtn_width + 'px',
2625
- // height: sectionproperties.applybtn_height + 'px',
2626
- // borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
2627
- // textTransform: sectionproperties.applybtn_texttransform,
2628
- // fontSize: sectionproperties.applybtn_fontsize + 'px',
2629
- // color: sectionproperties.applybtn_textColor,
2630
- // fontWeight: sectionproperties.applybtn_Textfontweight,
2631
- // background: sectionproperties.applybtn_bgColor,
2632
- // border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
2633
- // transition: '.3s',
2634
- // ':hover': {
2635
- // background: sectionproperties.applybtn_bgColoronhover,
2636
- // color: sectionproperties.applybtn_Textcoloronhover,
2637
- // },
2638
- // }),
2639
- // inputfiledstyles: css({}),
2640
- // checkorderbtnstyles: css({
2641
- // background: sectionproperties.generalbtn_bgColor,
2642
- // width: sectionproperties.generalbtn_width,
2643
- // height: sectionproperties.generalbtn_height,
2644
- // borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
2645
- // borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
2646
- // borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
2647
- // borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
2648
- // color: sectionproperties.generalbtn_textColor,
2649
- // textTransform: sectionproperties.generalbtn_texttransform,
2650
- // fontWeight: sectionproperties.generalbtn_fontweight,
2651
- // fontSize: sectionproperties.generalbtn_fontsize + 'px',
2652
- // border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
2653
- // transition: '.3s',
2654
- // ':hover': {
2655
- // background: sectionproperties.generalbtn_bgColoronhover,
2656
- // color: sectionproperties.generalbtn_textColoronhover,
2657
- // },
2658
- // }),
2659
- // input_label_name: css({
2660
- // color: sectionproperties.form_labelcolor,
2661
- // textTransform: sectionproperties.form_labeltexttransform,
2662
- // fontWeight: sectionproperties.form_labelfontweight,
2663
- // fontSize: sectionproperties.form_labelfontsize + 'px',
2664
- // }),
2665
- // };
2666
- // const Mycart = () => {
2667
- // return (
2668
- // <div className="row m-0 w-100">
2669
- // <div className="col-lg-12 d-flex align-items-center p-0">
2670
- // <p
2671
- // style={{
2672
- // fontSize: sectionproperties.sectionTitleFontSize + 'px',
2673
- // color: sectionproperties.sectionTitleColor,
2674
- // marginTop: sectionproperties.sectionTitleMarginTop + 'px',
2675
- // marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
2676
- // textTransform: sectionproperties.sectionTitleTextTransform,
2677
- // fontWeight: sectionproperties.sectionTitleFontWeight,
2678
- // }}
2679
- // >
2680
- // {lang.mycart}
2681
- // </p>
2682
- // </div>
2683
- // {ChooseState_CountryMutationContext.isLoading && <CircularProgress />}
2684
- // {!ChooseState_CountryMutationContext.isLoading && (
2685
- // <div className="row m-0 w-100">
2686
- // <div className="col-lg-12 p-0">
2687
- // {fetchcustomercartQueryContext?.data?.data?.customercart.cartitems.map((item, index) => {
2688
- // return (
2689
- // <div
2690
- // 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'}
2691
- // style={{
2692
- // background: sectionproperties.summary_sectionbgcolor,
2693
- // borderRadius: sectionproperties.summary_sectionborderbottomleftradius + 'px',
2694
- // border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
2695
- // }}
2696
- // >
2697
- // <div className="row m-0 w-100 d-flex">
2698
- // <div className={`${checkoutstyles.imagecont}`}>
2699
- // <IKImage
2700
- // urlEndpoint={IKurlEndpoint}
2701
- // publicKey={IKpublicKey}
2702
- // path={
2703
- // item.productinfo.hasvariants == 0
2704
- // ? '/tr:w-300,h-300/' + item.productinfo.productmainimage
2705
- // : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl
2706
- // }
2707
- // style={{
2708
- // width: '100%',
2709
- // height: '100%',
2710
- // objectFit: 'cover',
2711
- // }}
2712
- // loading="lazy"
2713
- // />
2714
- // </div>
2715
- // <div className="col-lg-7 col-md-7 col-sm-7">
2716
- // <div className="row m-0 w-100">
2717
- // <div className="col-lg-12 col-md-12 col-sm-12 p-0">
2718
- // <p className={`${checkoutstyles.productNameStyles}` + ' m-0 p-0 d-flex justify-content-start '}>
2719
- // {langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar}
2720
- // </p>
2721
- // </div>
2722
- // <div className="col-lg-12 p-0">
2723
- // <p className="m-0 p-0 font-weight-500 text-light d-flex justify-content-start">
2724
- // {lang.qty}: {item.quantity}
2725
- // </p>
2726
- // </div>
2727
- // {item.productinfo.hasvariants == 1 &&
2728
- // item.productinfo.variantinfo.variantoptions.map((variantitem, variantindex) => {
2729
- // return (
2730
- // <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex">
2731
- // <p className={'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '}>{variantitem.optionname}:</p>
2732
- // <p className={' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '}>{variantitem.optionvalue}</p>
2733
- // </div>
2734
- // );
2735
- // })}
2736
- // </div>
2737
- // </div>
2738
- // <div className="col-lg-3 col-md-3 col-sm-2 p-0">
2739
- // <div className="row m-0 w-100 h-100">
2740
- // <div className="col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto">
2741
- // {item.productinfo.hasvariants == 0 && (
2742
- // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2743
- // {item.productinfo.hassale == 0 && (
2744
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2745
- // <p
2746
- // className={
2747
- // langdetect == 'en'
2748
- // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2749
- // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2750
- // }
2751
- // >
2752
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
2753
- // </p>
2754
- // </div>
2755
- // )}
2756
- // {item.productinfo.hassale == 1 && (
2757
- // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2758
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2759
- // <p
2760
- // className={
2761
- // langdetect == 'en'
2762
- // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2763
- // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2764
- // }
2765
- // >
2766
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultsaleprice} {langdetect == 'en' ? '' : 'ج.م'}
2767
- // </p>
2768
- // </div>
2769
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2770
- // <p
2771
- // className={
2772
- // langdetect == 'en'
2773
- // ? `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-right '
2774
- // : `${checkoutstyles.Salepricestyless}` + ' linethrough mb-0 p-0 wordbreak text-left '
2775
- // }
2776
- // >
2777
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.defaultprice} {langdetect == 'en' ? '' : 'ج.م'}
2778
- // </p>
2779
- // </div>
2780
- // </div>
2781
- // )}
2782
- // </div>
2783
- // )}
2784
- // {item.productinfo.hasvariants == 1 && (
2785
- // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2786
- // {item.productinfo.variantinfo.hassale == 0 && (
2787
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2788
- // <p
2789
- // className={
2790
- // langdetect == 'en'
2791
- // ? `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-right '
2792
- // : `${checkoutstyles.productPricestyles}` + ' m-0 p-0 wordbreak text-left '
2793
- // }
2794
- // >
2795
- // {langdetect == 'en' ? 'EGP' : 'ج.م'} {item.productinfo.variantinfo.variantprice}
2796
- // </p>
2797
- // </div>
2798
- // )}
2799
- // {item.productinfo.variantinfo.hassale == 1 && (
2800
- // <div className="row m-0 w-100 d-flex flex-column justify-content-end">
2801
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2802
- // <p
2803
- // className={
2804
- // langdetect == 'en'
2805
- // ? `${checkoutstyles.productPricestyles}` +
2806
- // ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
2807
- // : `${checkoutstyles.productPricestyles}` +
2808
- // ' m-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
2809
- // }
2810
- // >
2811
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantsaleprice}
2812
- // {langdetect == 'en' ? '' : 'ج.م'}
2813
- // </p>
2814
- // </div>
2815
- // <div className="col-lg-12 p-0 d-flex justify-content-end">
2816
- // <p
2817
- // className={
2818
- // langdetect == 'en'
2819
- // ? `${checkoutstyles.Salepricestyless}` +
2820
- // ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-right '
2821
- // : `${checkoutstyles.Salepricestyless}` +
2822
- // ' linethrough mb-0 p-0 wordbreak d-flex align-items-center justify-content-end text-left '
2823
- // }
2824
- // >
2825
- // {langdetect == 'en' ? 'EGP' : ''} {item.productinfo.variantinfo.variantprice} {langdetect == 'en' ? '' : 'ج.م'}
2826
- // </p>
2827
- // </div>
2828
- // </div>
2829
- // )}
2830
- // </div>
2831
- // )}
2832
- // </div>
2833
- // </div>
2834
- // </div>
2835
- // </div>
2836
- // </div>
2837
- // );
2838
- // })}
2839
- // <div
2840
- // className={' row m-0 w-100 p-3'}
2841
- // style={{
2842
- // background: sectionproperties.summary_sectionbgcolor,
2843
- // borderRadius: sectionproperties.summary_sectionborderradius + 'px',
2844
- // border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor,
2845
- // }}
2846
- // >
2847
- // <div className="col-lg-12 p-0 mb-1">
2848
- // <div className="col-lg-12 p-0 mb-4">
2849
- // <label className={`${checkoutstyles.input_label_name}` + ' m-0 p-0 mb-2 d-flex justify-content-start '}>{lang.doyouhavepromocode}</label>
2850
- // <div className={' row m-0 w-100 d-flex justify-content-center align-items-center '}>
2851
- // <div className={'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'}>
2852
- // <input
2853
- // type="text"
2854
- // className={`${formstyles.form_control}`}
2855
- // style={{
2856
- // borderRadius: sectionproperties.inputfieldborderradius + 'px',
2857
- // fontSize: sectionproperties.inputfieldfontsize + 'px',
2858
- // color: sectionproperties.inputfieldcolor,
2859
- // backgroundColor: sectionproperties.input_bgcolor,
2860
- // }}
2861
- // placeholder={lang.giftcarddicountcode}
2862
- // value={fetchcustomercartQueryContext?.data?.data?.customercart.couponname}
2863
- // onChange={(event) => {
2864
- // var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2865
- // cartarr.data.customercart.couponname = event.target.value;
2866
- // queryClient.setQueryData('fetchcustomercart_API', cartarr);
2867
- // }}
2868
- // disabled={fetchcustomercartQueryContext?.data?.data?.customercart.couponexists ? true : false}
2869
- // />
2870
- // </div>
2871
- // <div className="col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center">
2872
- // <button
2873
- // className={` ${checkoutstyles.applybtnstyles}`}
2874
- // onClick={() => {
2875
- // if (!fetchcustomercartQueryContext?.data?.data?.customercart.couponexists) {
2876
- // var payloadobj = {
2877
- // couponname: fetchcustomercartQueryContext?.data?.data?.customercart.couponname,
2878
- // functype: 'add',
2879
- // };
2880
- // if (fetchcustomercartQueryContext?.data?.data?.customercart.couponname.length != 0) {
2881
- // ApplyPromoCodeMutationContext.mutate(payloadobj);
2882
- // } else {
2883
- // NotificationManager.warning('', 'Please Type Promo Code');
2884
- // }
2885
- // } else {
2886
- // var payloadobj = {
2887
- // functype: 'delete',
2888
- // };
2889
- // ApplyPromoCodeMutationContext.mutate(payloadobj);
2890
- // }
2891
- // }}
2892
- // disabled={ApplyPromoCodeMutationContext.isLoading ? true : false}
2893
- // >
2894
- // <span className={ApplyPromoCodeMutationContext.isLoading ? `${generalstyles.fadeOutButton}` : `${generalstyles.fadeInButton}`}>
2895
- // {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists
2896
- // ? langdetect == 'en'
2897
- // ? 'Remove'
2898
- // : 'حذف'
2899
- // : langdetect == 'en'
2900
- // ? 'Apply'
2901
- // : 'تطبيق'}
2902
- // </span>
2903
- // <div
2904
- // className={
2905
- // ApplyPromoCodeMutationContext.isLoading
2906
- // ? `${generalstyles.fadeInButton} ${generalstyles.btn_preloader}` + ' d-flex align-items-center justify-content-center '
2907
- // : `${generalstyles.fadeOutButton}` + ' align-items-center justify-content-center '
2908
- // }
2909
- // >
2910
- // <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />
2911
- // </div>
2912
- // </button>
2913
- // </div>
2914
- // </div>
2915
- // </div>
2916
- // <div className="row m-0 w-100">
2917
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2918
- // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-center wordbreak '}>{lang.subtotal}</p>
2919
- // </div>
2920
- // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2921
- // <p
2922
- // className={
2923
- // langdetect == 'en'
2924
- // ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
2925
- // : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
2926
- // }
2927
- // >
2928
- // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.totalprice} {langdetect == 'en' ? '' : 'ج.م'}
2929
- // </p>
2930
- // </div>
2931
- // </div>
2932
- // </div>
2933
- // {fetchcustomercartQueryContext?.data?.data?.customercart.couponexists && fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
2934
- // <div className="col-lg-12 p-0 mb-1">
2935
- // <div className="row m-0 w-100">
2936
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2937
- // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '}>{lang.discount}</p>
2938
- // </div>
2939
- // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2940
- // <p
2941
- // className={
2942
- // langdetect == 'en'
2943
- // ? `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-right '
2944
- // : `${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 text-danger wordbreak text-left '
2945
- // }
2946
- // >
2947
- // {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice != 0 && (
2948
- // <span>
2949
- // - {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice}{' '}
2950
- // {langdetect == 'en' ? '' : 'ج.م'}
2951
- // </span>
2952
- // )}
2953
- // {fetchcustomercartQueryContext?.data?.data?.customercart.discountprice == 0 && <span>0</span>}
2954
- // </p>
2955
- // </div>
2956
- // </div>
2957
- // </div>
2958
- // )}
2959
- // <div className="col-lg-12 p-0">
2960
- // <div className="row m-0 w-100">
2961
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2962
- // <p className={`${checkoutstyles.summarysectionstyles} ` + ' m-0 p-0 d-flex align-items-start wordbreak '}>{lang.shippingfees}</p>
2963
- // </div>
2964
- // {fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
2965
- // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2966
- // <p
2967
- // className={
2968
- // langdetect == 'en'
2969
- // ? `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-right '
2970
- // : `${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 wordbreak text-left '
2971
- // }
2972
- // >
2973
- // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.zoneprice} {langdetect == 'en' ? '' : 'ج.م'}
2974
- // </p>
2975
- // </div>
2976
- // )}
2977
- // {!fetchcustomercartQueryContext?.data?.data?.customercart.zoneexists && (
2978
- // <div className="col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0">
2979
- // <p className={`${checkoutstyles.summarysectionstyles}` + ' m-0 p-0 d-flex align-items-start wordbreak '} style={{ color: 'red' }}>
2980
- // {lang.outofzone}
2981
- // </p>
2982
- // </div>
2983
- // )}
2984
- // </div>
2985
- // </div>
2986
- // <div className="col-lg-12 p-0">
2987
- // <hr className="mt-2 mb-2" />
2988
- // </div>
2989
- // <div className="col-lg-12 p-0">
2990
- // <div className="row m-0 w-100">
2991
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
2992
- // <p
2993
- // className="d-flex align-items-start"
2994
- // style={{
2995
- // fontSize: sectionproperties.total_fontsize + 'px',
2996
- // fontWeight: sectionproperties.total_fontweight,
2997
- // textTransform: sectionproperties.total_texttransform,
2998
- // color: sectionproperties.total_color,
2999
- // }}
3000
- // >
3001
- // {lang.total}
3002
- // </p>
3003
- // </div>
3004
- // <div className="col-lg-6 col-md-6 col-sm-6 p-0">
3005
- // <div className="row m-0 w-100">
3006
- // <div className="col-lg-12 p-0 d-flex justify-content-end ">
3007
- // <p
3008
- // className={langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left '}
3009
- // style={{
3010
- // fontSize: sectionproperties.total_fontsize + 'px',
3011
- // fontWeight: sectionproperties.total_fontweight,
3012
- // textTransform: sectionproperties.total_texttransform,
3013
- // color: sectionproperties.total_color,
3014
- // }}
3015
- // >
3016
- // {langdetect == 'en' ? 'EGP' : ''} {fetchcustomercartQueryContext?.data?.data?.customercart.totalpriceafterdiscount}{' '}
3017
- // {langdetect == 'en' ? '' : 'ج.م'}
3018
- // </p>
3019
- // </div>
3020
- // </div>
3021
- // </div>
3022
- // </div>
3023
- // </div>
3024
- // <div className="col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3">
3025
- // <button
3026
- // className={` ${checkoutstyles.checkoutbtnstyles}` + ' d-flex align-items-center justify-content-center '}
3027
- // onClick={() => {
3028
- // var payloadobj = {};
3029
- // AddOrderMutationContext.mutate(payloadobj);
3030
- // }}
3031
- // disabled={AddOrderMutationContext.isLoading ? true : false}
3032
- // >
3033
- // {AddOrderMutationContext.isLoading && <CircularProgress color="#fff" width="20px" height="20px" duration="1s" />}
3034
- // {!AddOrderMutationContext.isLoading
3035
- // ? fetchcustomercartQueryContext?.data?.data?.customercart.paymentmethod == 'onlinepayment'
3036
- // ? lang.continuetopayment
3037
- // : authdetailsContext.loggedin
3038
- // ? lang.confirmorder
3039
- // : lang.confirmorder + ' ' + lang.asaguest
3040
- // : ''}
3041
- // </button>
3042
- // </div>
3043
- // </div>
3044
- // </div>
3045
- // </div>
3046
- // )}
3047
- // </div>
3048
- // );
3049
- // };
3050
- return /*#__PURE__*/React__default["default"].createElement("div", {
3051
- className: 'row m-0 w-100 mb-3 d-flex justify-content-center p-sm-0 mt-sm-3'
3052
- }, "adsdss");
2494
+ var _fetchcustomercartQue69, _fetchcustomercartQue70, _fetchcustomercartQue71, _fetchcustomercartQue72, _fetchcustomercartQue73, _fetchcustomercartQue74, _fetchcustomercartQue83, _fetchcustomercartQue84, _fetchcustomercartQue85, _fetchcustomercartQue86, _fetchcustomercartQue89, _fetchcustomercartQue90, _fetchcustomercartQue93, _fetchcustomercartQue94, _fetchcustomercartQue97, _fetchcustomercartQue98;
2495
+
2496
+ var _useState = React.useState(null),
2497
+ _useState2 = _slicedToArray__default["default"](_useState, 2),
2498
+ timer = _useState2[0],
2499
+ settimer = _useState2[1];
2500
+
2501
+ var langdetect = props.actions.langdetect;
2502
+ var lang = props.actions.lang;
2503
+ var StaticPagesLinksContext = props.actions.StaticPagesLinksContext;
2504
+ var routingcountext = props.actions.routingcountext;
2505
+ var ApplyPromoCodeMutationContext = props.actions.ApplyPromoCodeMutationContext;
2506
+ var CurrentSrcTypeContext = props.actions.CurrentSrcTypeContext;
2507
+ var StatePagePropertiesContext = props.actions.StatePagePropertiesContext;
2508
+ var templatepropcontext = props.actions.templatepropcontext;
2509
+ var fetchcustomercartQueryContext = props.actions.fetchcustomercartQueryContext;
2510
+ var FetchQueriesEngineContext = props.actions.FetchQueriesEngineContext;
2511
+ var setFetchQueriesEngineContext = props.actions.setFetchQueriesEngineContext;
2512
+ var fetchTabexCountriesQueryContext = props.actions.fetchTabexCountriesQueryContext;
2513
+ var fetchTabexStatesQueryContext = props.actions.fetchTabexStatesQueryContext;
2514
+ var FetchTabexStatesPayloadobjContext = props.actions.FetchTabexStatesPayloadobjContext;
2515
+ var setFetchTabexStatesPayloadobjContext = props.actions.setFetchTabexStatesPayloadobjContext;
2516
+ var ChooseState_CountryMutationContext = props.actions.ChooseState_CountryMutationContext;
2517
+ var fetchTabexCitiesQueryContext = props.actions.fetchTabexCitiesQueryContext;
2518
+ var AddOrderMutationContext = props.actions.AddOrderMutationContext;
2519
+ props.actions.fetchAuthorizationQueryContext;
2520
+ var authdetailsContext = props.actions.authdetailsContext;
2521
+ var NotificationManager = props.actions.NotificationManager;
2522
+ var queryClient = props.actions.queryClient;
2523
+
2524
+ var _useState3 = React.useState(''),
2525
+ _useState4 = _slicedToArray__default["default"](_useState3, 2),
2526
+ sectionproperties = _useState4[0],
2527
+ setsectionproperties = _useState4[1];
2528
+
2529
+ var _useState5 = React.useState(''),
2530
+ _useState6 = _slicedToArray__default["default"](_useState5, 2),
2531
+ CurrentPageId = _useState6[0],
2532
+ setCurrentPageId = _useState6[1];
2533
+
2534
+ React.useEffect(function () {
2535
+ var _templatepropcontext$;
2536
+
2537
+ var cartindex = templatepropcontext === null || templatepropcontext === void 0 ? void 0 : (_templatepropcontext$ = templatepropcontext.pagesnprop) === null || _templatepropcontext$ === void 0 ? void 0 : _templatepropcontext$.findIndex(function (x) {
2538
+ return x.staticpageid == '6218bccb82af8';
2539
+ });
2540
+
2541
+ if (cartindex >= 0) {
2542
+ setCurrentPageId(cartindex);
2543
+ }
2544
+ }, []);
2545
+ React.useEffect(function () {
2546
+ var _templatepropcontext$2, _templatepropcontext$3;
2547
+
2548
+ var secpropobj = {};
2549
+ 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) {
2550
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2551
+ });
2552
+ setsectionproperties(_objectSpread$12({}, secpropobj));
2553
+ }, [CurrentPageId]);
2554
+ React.useEffect(function () {
2555
+ if (CurrentSrcTypeContext == 'workplace') {
2556
+ if (StatePagePropertiesContext != null && StatePagePropertiesContext != undefined && StatePagePropertiesContext.length != 0) {
2557
+ var _StatePagePropertiesC, _StatePagePropertiesC2;
2558
+
2559
+ var secpropobj = {};
2560
+ 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) {
2561
+ secpropobj[arrayItem.property_css_name] = arrayItem.property_value;
2562
+ });
2563
+ setsectionproperties(_objectSpread$12({}, secpropobj));
2564
+ }
2565
+ }
2566
+ }, [StatePagePropertiesContext]);
2567
+ React.useEffect(function () {
2568
+ var _fetchcustomercartQue, _fetchcustomercartQue2, _fetchcustomercartQue3, _fetchcustomercartQue4, _fetchcustomercartQue5, _fetchcustomercartQue6, _fetchcustomercartQue9, _fetchcustomercartQue10, _fetchcustomercartQue11, _fetchcustomercartQue12, _fetchcustomercartQue13, _fetchcustomercartQue14;
2569
+
2570
+ // if (authdetailsContext.loggedin == true) {
2571
+ var tempFetchQueriesEngineContext = _objectSpread$12({}, FetchQueriesEngineContext);
2572
+
2573
+ tempFetchQueriesEngineContext.fetchtabexcountries = true;
2574
+ setFetchQueriesEngineContext(_objectSpread$12({}, tempFetchQueriesEngineContext));
2575
+
2576
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
2577
+
2578
+ if ( // Aya
2579
+ !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
2580
+ (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) {
2581
+ var _fetchcustomercartQue7, _fetchcustomercartQue8;
2582
+
2583
+ 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;
2584
+ }
2585
+
2586
+ if ( // aya
2587
+ !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
2588
+ (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) {
2589
+ var _fetchcustomercartQue15, _fetchcustomercartQue16;
2590
+
2591
+ 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;
2592
+ }
2593
+
2594
+ setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext)); // } else {
2595
+ // routingcountext('');
2596
+ // }
2597
+ }, []);
2598
+
2599
+ var cartinfoupdater = function cartinfoupdater(key, value) {
2600
+ var _fetchcustomercartQue17, _fetchcustomercartQue18, _fetchcustomercartQue19, _fetchcustomercartQue20, _fetchcustomercartQue21, _fetchcustomercartQue22, _fetchcustomercartQue23, _fetchcustomercartQue24, _fetchcustomercartQue25, _fetchcustomercartQue26, _fetchcustomercartQue27, _fetchcustomercartQue28, _fetchcustomercartQue29, _fetchcustomercartQue30, _fetchcustomercartQue31, _fetchcustomercartQue32;
2601
+
2602
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2603
+ cartarr.data.customercart[key] = value;
2604
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
2605
+ var payloadobj = {
2606
+ 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,
2607
+ 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,
2608
+ 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,
2609
+ 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,
2610
+ 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,
2611
+ 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,
2612
+ 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,
2613
+ 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
2614
+ };
2615
+
2616
+ if (key == 'address' || key == 'name' || key == 'mobile' || key == 'email') {
2617
+ clearTimeout(timer);
2618
+ settimer(setTimeout(function () {
2619
+ ChooseState_CountryMutationContext.mutate(payloadobj);
2620
+ }, 1500));
2621
+ } else {
2622
+ ChooseState_CountryMutationContext.mutate(payloadobj);
2623
+ }
2624
+ };
2625
+
2626
+ var checkoutstyles = _defineProperty__default["default"]({
2627
+ Salepricestyless: glamor.css({
2628
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2629
+ fontWeight: sectionproperties.prodsalePriceFontWeight,
2630
+ color: sectionproperties.prodsalePriceColor,
2631
+ show: sectionproperties.prodsalePriceshow,
2632
+ transition: '.3s'
2633
+ }),
2634
+ userinfo_iconcont: glamor.css({
2635
+ width: sectionproperties.userinfo_iconwidth + 'px',
2636
+ height: sectionproperties.userinfo_iconheight + 'px',
2637
+ background: sectionproperties.userinfo_iconbg,
2638
+ borderRadius: sectionproperties.userinfo_iconborderbottomleftradius + 'px',
2639
+ color: sectionproperties.userinfo_iconcolor
2640
+ }),
2641
+ userinfotextstyles: glamor.css({
2642
+ color: sectionproperties.userinfo_color,
2643
+ fontWeight: sectionproperties.userinfo_fontweight,
2644
+ fontSize: sectionproperties.userinfo_fontsize + 'px'
2645
+ }),
2646
+ input_label_name: glamor.css({
2647
+ color: sectionproperties.form_labelcolor,
2648
+ textTransform: sectionproperties.form_labeltexttransform,
2649
+ fontWeight: sectionproperties.form_labelfontweight,
2650
+ fontSize: sectionproperties.form_labelfontsize + 'px'
2651
+ }),
2652
+ checkbox: glamor.css({
2653
+ color: sectionproperties.checkbox_color,
2654
+ textTransform: sectionproperties.form_labeltexttransform,
2655
+ fontWeight: sectionproperties.form_labelfontweight,
2656
+ fontSize: sectionproperties.form_labelfontsize + 'px',
2657
+ transition: '.3s',
2658
+ ':hover': {
2659
+ color: sectionproperties.checkbox_texthovercolor
2660
+ },
2661
+ 'input:checked': {
2662
+ color: sectionproperties.checkbox_checkedcolor
2663
+ }
2664
+ }),
2665
+ checkboxinputstyles: glamor.css({
2666
+ ':hover:not(:checked)': {
2667
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_texthovercolor
2668
+ },
2669
+ ':checked': {
2670
+ boxShadow: 'inset 0 0 0 2px ' + sectionproperties.checkbox_checkedcolor
2671
+ }
2672
+ }),
2673
+ svgstyles: glamor.css({
2674
+ stroke: 'var(--stroke, ' + sectionproperties.checkbox_checkedcolor + ')'
2675
+ }),
2676
+ innersectiontitlestyles: glamor.css({
2677
+ color: sectionproperties.innersection_titlecolor,
2678
+ fontSize: sectionproperties.innersection_titlefontsize + 'px',
2679
+ fontWeight: sectionproperties.innersection_titlefontweight,
2680
+ textTransform: sectionproperties.innersection_titletextTransform
2681
+ }),
2682
+ summarysectionstyles: glamor.css({
2683
+ fontSize: sectionproperties.summary_fontsize + 'px',
2684
+ color: sectionproperties.summary_textcolor,
2685
+ fontWeight: sectionproperties.summary_textfontweight,
2686
+ textTransform: sectionproperties.summary_texttransform,
2687
+ textAlign: langdetect == 'en' ? 'left' : 'right'
2688
+ }),
2689
+ checkoutbtnstyles: glamor.css({
2690
+ background: sectionproperties.checkoutBtnbgColor,
2691
+ width: sectionproperties.checkoutBtnWidth,
2692
+ height: sectionproperties.checkoutBtnHeight,
2693
+ borderRadius: sectionproperties.checkout_borderBottomLeftRadius + 'px',
2694
+ color: sectionproperties.checkoutBtnTextcolor,
2695
+ textTransform: sectionproperties.checkoutBtnTexttransform,
2696
+ fontWeight: sectionproperties.checkoutBtnTextfontweight,
2697
+ fontSize: sectionproperties.checkoutBtnTextfontsize + 'px',
2698
+ border: sectionproperties.checkoutBtn_borderwidth + 'px solid ' + sectionproperties.checkoutBtn_bordercolor,
2699
+ transition: '.3s',
2700
+ ':hover': {
2701
+ background: sectionproperties.checkoutBtnbgColoronhover_tranparent == 'Transparent' ? 'transparent' : sectionproperties.checkoutBtnbgColoronhover,
2702
+ color: sectionproperties.checkoutBtnTextcoloronhover
2703
+ }
2704
+ }),
2705
+ productNameStyles: glamor.css({
2706
+ color: sectionproperties.prodNameColor,
2707
+ fontSize: sectionproperties.prodNameFontSize + 'px',
2708
+ textTransform: sectionproperties.prodNameTextTranform,
2709
+ fontWeight: sectionproperties.prodNameFontWeight
2710
+ }),
2711
+ productPricestyles: glamor.css({
2712
+ color: sectionproperties.prodPriceColor,
2713
+ fontSize: sectionproperties.prodpriceFontSize + 'px',
2714
+ fontWeight: sectionproperties.prodPriceFontWeight
2715
+ }),
2716
+ productSalePricestyles: glamor.css({
2717
+ color: sectionproperties.prodsalePriceColor,
2718
+ fontSize: sectionproperties.prodsalepriceFontSize + 'px',
2719
+ fontWeight: sectionproperties.prodsalePriceFontWeight
2720
+ }),
2721
+ imagecont: glamor.css({
2722
+ width: '8vh',
2723
+ height: '8vh',
2724
+ border: sectionproperties.prodimage_borderwidth + 'px solid ' + sectionproperties.prodimage_color,
2725
+ backgroundColor: sectionproperties.prodimage_bgcolor,
2726
+ borderBottomLeftRadius: sectionproperties.prodimage__borderBottomLeftRadius + 'px',
2727
+ borderBottomRightRadius: sectionproperties.prodimage__borderBottomRightRadius + 'px',
2728
+ borderTopLeftRadius: sectionproperties.prodimage__borderTopLeftRadius + 'px',
2729
+ borderTopRightRadius: sectionproperties.prodimage__borderTopRightRadius + 'px',
2730
+ display: 'flex',
2731
+ alignItems: 'center',
2732
+ justifyContent: 'center',
2733
+ backgroundRepeat: 'no-repeat',
2734
+ backgroundSize: 'cover',
2735
+ backgroundPosition: 'center',
2736
+ position: 'relative'
2737
+ }),
2738
+ applybtnstyles: glamor.css({
2739
+ width: sectionproperties.applybtn_width + 'px',
2740
+ height: sectionproperties.applybtn_height + 'px',
2741
+ borderRadius: sectionproperties.applybtn_borderBottomLeftRadius + 'px',
2742
+ textTransform: sectionproperties.applybtn_texttransform,
2743
+ fontSize: sectionproperties.applybtn_fontsize + 'px',
2744
+ color: sectionproperties.applybtn_textColor,
2745
+ fontWeight: sectionproperties.applybtn_Textfontweight,
2746
+ background: sectionproperties.applybtn_bgColor,
2747
+ border: sectionproperties.applybtnborderwidth + 'px solid ' + sectionproperties.applybtnbordercolor,
2748
+ transition: '.3s',
2749
+ ':hover': {
2750
+ background: sectionproperties.applybtn_bgColoronhover,
2751
+ color: sectionproperties.applybtn_Textcoloronhover
2752
+ }
2753
+ }),
2754
+ inputfiledstyles: glamor.css({}),
2755
+ checkorderbtnstyles: glamor.css({
2756
+ background: sectionproperties.generalbtn_bgColor,
2757
+ width: sectionproperties.generalbtn_width,
2758
+ height: sectionproperties.generalbtn_height,
2759
+ borderBottomLeftRadius: sectionproperties.generalbtn_borderbottomleftradius + 'px',
2760
+ borderBottomRightRadius: sectionproperties.generalbtn_borderbottomrightradius + 'px',
2761
+ borderTopLeftRadius: sectionproperties.generalbtn_bordertopleftradius + 'px',
2762
+ borderTopRightRadius: sectionproperties.generalbtn_bordertoprightradius + 'px',
2763
+ color: sectionproperties.generalbtn_textColor,
2764
+ textTransform: sectionproperties.generalbtn_texttransform,
2765
+ fontWeight: sectionproperties.generalbtn_fontweight,
2766
+ fontSize: sectionproperties.generalbtn_fontsize + 'px',
2767
+ border: sectionproperties.generalbtn_borderwidth + 'px solid ' + sectionproperties.generalbtn_bordercolor,
2768
+ transition: '.3s',
2769
+ ':hover': {
2770
+ background: sectionproperties.generalbtn_bgColoronhover,
2771
+ color: sectionproperties.generalbtn_textColoronhover
2772
+ }
2773
+ })
2774
+ }, "input_label_name", glamor.css({
2775
+ color: sectionproperties.form_labelcolor,
2776
+ textTransform: sectionproperties.form_labeltexttransform,
2777
+ fontWeight: sectionproperties.form_labelfontweight,
2778
+ fontSize: sectionproperties.form_labelfontsize + 'px'
2779
+ }));
2780
+
2781
+ var Mycart = function Mycart() {
2782
+ 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;
2783
+
2784
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2785
+ className: "row m-0 w-100"
2786
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2787
+ className: "col-lg-12 d-flex align-items-center p-0"
2788
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2789
+ style: {
2790
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
2791
+ color: sectionproperties.sectionTitleColor,
2792
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
2793
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
2794
+ textTransform: sectionproperties.sectionTitleTextTransform,
2795
+ fontWeight: sectionproperties.sectionTitleFontWeight
2796
+ }
2797
+ }, lang.mycart)), ChooseState_CountryMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, null), !ChooseState_CountryMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement("div", {
2798
+ className: "row m-0 w-100"
2799
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2800
+ className: "col-lg-12 p-0"
2801
+ }, 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) {
2802
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2803
+ 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',
2804
+ style: {
2805
+ background: sectionproperties.summary_sectionbgcolor,
2806
+ borderRadius: sectionproperties.summary_sectionborderbottomleftradius + 'px',
2807
+ border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor
2808
+ }
2809
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2810
+ className: "row m-0 w-100 d-flex"
2811
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2812
+ className: "".concat(checkoutstyles.imagecont)
2813
+ }, /*#__PURE__*/React__default["default"].createElement(imagekitioReact.IKImage, {
2814
+ urlEndpoint: IKurlEndpoint,
2815
+ publicKey: IKpublicKey,
2816
+ path: item.productinfo.hasvariants == 0 ? '/tr:w-300,h-300/' + item.productinfo.productmainimage : '/tr:w-300,h-300/' + item.productinfo.variantinfo.variantimageurl,
2817
+ style: {
2818
+ width: '100%',
2819
+ height: '100%',
2820
+ objectFit: 'cover'
2821
+ },
2822
+ loading: "lazy"
2823
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
2824
+ className: "col-lg-7 col-md-7 col-sm-7"
2825
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2826
+ className: "row m-0 w-100"
2827
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2828
+ className: "col-lg-12 col-md-12 col-sm-12 p-0"
2829
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2830
+ className: "".concat(checkoutstyles.productNameStyles) + ' m-0 p-0 d-flex justify-content-start '
2831
+ }, langdetect == 'en' ? item.productinfo.name_en : item.productinfo.name_ar)), /*#__PURE__*/React__default["default"].createElement("div", {
2832
+ className: "col-lg-12 p-0"
2833
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2834
+ className: "m-0 p-0 font-weight-500 text-light d-flex justify-content-start"
2835
+ }, lang.qty, ": ", item.quantity)), item.productinfo.hasvariants == 1 && item.productinfo.variantinfo.variantoptions.map(function (variantitem, variantindex) {
2836
+ return /*#__PURE__*/React__default["default"].createElement("div", {
2837
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex"
2838
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2839
+ className: 'text-capitalize text-dark m-0 p-0 font-weight-500 font-13 m-0 p-0 '
2840
+ }, variantitem.optionname, ":"), /*#__PURE__*/React__default["default"].createElement("p", {
2841
+ className: ' text-capitalize text-dark font-weight-500 m-0 p-0 ml-1 mr-1 '
2842
+ }, variantitem.optionvalue));
2843
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
2844
+ className: "col-lg-3 col-md-3 col-sm-2 p-0"
2845
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2846
+ className: "row m-0 w-100 h-100"
2847
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2848
+ className: "col-lg-12 col-md-12 col-sm-12 p-0 d-flex align-items-center justify-content-end mb-auto"
2849
+ }, item.productinfo.hasvariants == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2850
+ className: "row m-0 w-100 d-flex flex-column justify-content-end"
2851
+ }, item.productinfo.hassale == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2852
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2853
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2854
+ className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2855
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')), item.productinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2856
+ className: "row m-0 w-100 d-flex flex-column justify-content-end"
2857
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2858
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2859
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2860
+ className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2861
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultsaleprice, " ", langdetect == 'en' ? '' : 'ج.م')), /*#__PURE__*/React__default["default"].createElement("div", {
2862
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2863
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2864
+ 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 '
2865
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.defaultprice, " ", langdetect == 'en' ? '' : 'ج.م')))), item.productinfo.hasvariants == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2866
+ className: "row m-0 w-100 d-flex flex-column justify-content-end"
2867
+ }, item.productinfo.variantinfo.hassale == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2868
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2869
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2870
+ className: langdetect == 'en' ? "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.productPricestyles) + ' m-0 p-0 wordbreak text-left '
2871
+ }, langdetect == 'en' ? 'EGP' : 'ج.م', " ", item.productinfo.variantinfo.variantprice)), item.productinfo.variantinfo.hassale == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
2872
+ className: "row m-0 w-100 d-flex flex-column justify-content-end"
2873
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2874
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2875
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2876
+ 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 '
2877
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.variantinfo.variantsaleprice, langdetect == 'en' ? '' : 'ج.م')), /*#__PURE__*/React__default["default"].createElement("div", {
2878
+ className: "col-lg-12 p-0 d-flex justify-content-end"
2879
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2880
+ 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 '
2881
+ }, langdetect == 'en' ? 'EGP' : '', " ", item.productinfo.variantinfo.variantprice, " ", langdetect == 'en' ? '' : 'ج.م')))))))));
2882
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
2883
+ className: ' row m-0 w-100 p-3',
2884
+ style: {
2885
+ background: sectionproperties.summary_sectionbgcolor,
2886
+ borderRadius: sectionproperties.summary_sectionborderradius + 'px',
2887
+ border: sectionproperties.summary_sectionborderwidth + 'px solid ' + sectionproperties.summary_sectionbordercolor
2888
+ }
2889
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2890
+ className: "col-lg-12 p-0 mb-1"
2891
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2892
+ className: "col-lg-12 p-0 mb-4"
2893
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
2894
+ className: "".concat(checkoutstyles.input_label_name) + ' m-0 p-0 mb-2 d-flex justify-content-start '
2895
+ }, lang.doyouhavepromocode), /*#__PURE__*/React__default["default"].createElement("div", {
2896
+ className: ' row m-0 w-100 d-flex justify-content-center align-items-center '
2897
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2898
+ className: 'col-lg-12 col-md-12 col-sm-12 p-0 mb-3'
2899
+ }, /*#__PURE__*/React__default["default"].createElement("input", {
2900
+ type: "text",
2901
+ className: "".concat(formstyles.form_control),
2902
+ style: {
2903
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
2904
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
2905
+ color: sectionproperties.inputfieldcolor,
2906
+ backgroundColor: sectionproperties.input_bgcolor
2907
+ },
2908
+ placeholder: lang.giftcarddicountcode,
2909
+ 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,
2910
+ onChange: function onChange(event) {
2911
+ var cartarr = queryClient.getQueryData('fetchcustomercart_API');
2912
+ cartarr.data.customercart.couponname = event.target.value;
2913
+ queryClient.setQueryData('fetchcustomercart_API', cartarr);
2914
+ },
2915
+ 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
2916
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
2917
+ className: "col-lg-12 col-md-12 col-sm-12 d-flex align-items-center justify-content-center"
2918
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
2919
+ className: " ".concat(checkoutstyles.applybtnstyles),
2920
+ onClick: function onClick() {
2921
+ var _fetchcustomercartQue39, _fetchcustomercartQue40;
2922
+
2923
+ if (!(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue39 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue39 !== void 0 && (_fetchcustomercartQue40 = _fetchcustomercartQue39.data) !== null && _fetchcustomercartQue40 !== void 0 && _fetchcustomercartQue40.customercart.couponexists)) {
2924
+ var _fetchcustomercartQue41, _fetchcustomercartQue42, _fetchcustomercartQue43, _fetchcustomercartQue44;
2925
+
2926
+ var payloadobj = {
2927
+ 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,
2928
+ functype: 'add'
2929
+ };
2930
+
2931
+ 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) {
2932
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
2933
+ } else {
2934
+ NotificationManager.warning('', 'Please Type Promo Code');
2935
+ }
2936
+ } else {
2937
+ var payloadobj = {
2938
+ functype: 'delete'
2939
+ };
2940
+ ApplyPromoCodeMutationContext.mutate(payloadobj);
2941
+ }
2942
+ },
2943
+ disabled: ApplyPromoCodeMutationContext.isLoading ? true : false
2944
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
2945
+ className: ApplyPromoCodeMutationContext.isLoading ? "".concat(generalstyles.fadeOutButton) : "".concat(generalstyles.fadeInButton)
2946
+ }, fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue45 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue45 !== void 0 && (_fetchcustomercartQue46 = _fetchcustomercartQue45.data) !== null && _fetchcustomercartQue46 !== void 0 && _fetchcustomercartQue46.customercart.couponexists ? langdetect == 'en' ? 'Remove' : 'حذف' : langdetect == 'en' ? 'Apply' : 'تطبيق'), /*#__PURE__*/React__default["default"].createElement("div", {
2947
+ 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 '
2948
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
2949
+ color: "#fff",
2950
+ width: "20px",
2951
+ height: "20px",
2952
+ duration: "1s"
2953
+ })))))), /*#__PURE__*/React__default["default"].createElement("div", {
2954
+ className: "row m-0 w-100"
2955
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2956
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
2957
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2958
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-center wordbreak '
2959
+ }, lang.subtotal)), /*#__PURE__*/React__default["default"].createElement("div", {
2960
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
2961
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2962
+ className: langdetect == 'en' ? "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-right ' : "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 wordbreak text-left '
2963
+ }, langdetect == 'en' ? 'EGP' : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue47 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue47 === void 0 ? void 0 : (_fetchcustomercartQue48 = _fetchcustomercartQue47.data) === null || _fetchcustomercartQue48 === void 0 ? void 0 : _fetchcustomercartQue48.customercart.totalprice, " ", langdetect == 'en' ? '' : 'ج.م')))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue49 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue49 === void 0 ? void 0 : (_fetchcustomercartQue50 = _fetchcustomercartQue49.data) === null || _fetchcustomercartQue50 === void 0 ? void 0 : _fetchcustomercartQue50.customercart.couponexists) && (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue51 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue51 === void 0 ? void 0 : (_fetchcustomercartQue52 = _fetchcustomercartQue51.data) === null || _fetchcustomercartQue52 === void 0 ? void 0 : _fetchcustomercartQue52.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("div", {
2964
+ className: "col-lg-12 p-0 mb-1"
2965
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2966
+ className: "row m-0 w-100"
2967
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2968
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
2969
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2970
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 text-danger d-flex align-items-start wordbreak '
2971
+ }, lang.discount)), /*#__PURE__*/React__default["default"].createElement("div", {
2972
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
2973
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2974
+ 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 '
2975
+ }, (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue53 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue53 === void 0 ? void 0 : (_fetchcustomercartQue54 = _fetchcustomercartQue53.data) === null || _fetchcustomercartQue54 === void 0 ? void 0 : _fetchcustomercartQue54.customercart.discountprice) != 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "- ", langdetect == 'en' ? 'EGP' : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue55 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue55 === void 0 ? void 0 : (_fetchcustomercartQue56 = _fetchcustomercartQue55.data) === null || _fetchcustomercartQue56 === void 0 ? void 0 : _fetchcustomercartQue56.customercart.discountprice, ' ', langdetect == 'en' ? '' : 'ج.م'), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue57 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue57 === void 0 ? void 0 : (_fetchcustomercartQue58 = _fetchcustomercartQue57.data) === null || _fetchcustomercartQue58 === void 0 ? void 0 : _fetchcustomercartQue58.customercart.discountprice) == 0 && /*#__PURE__*/React__default["default"].createElement("span", null, "0"))))), /*#__PURE__*/React__default["default"].createElement("div", {
2976
+ className: "col-lg-12 p-0"
2977
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2978
+ className: "row m-0 w-100"
2979
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
2980
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
2981
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2982
+ className: "".concat(checkoutstyles.summarysectionstyles, " ") + ' m-0 p-0 d-flex align-items-start wordbreak '
2983
+ }, lang.shippingfees)), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue59 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue59 === void 0 ? void 0 : (_fetchcustomercartQue60 = _fetchcustomercartQue59.data) === null || _fetchcustomercartQue60 === void 0 ? void 0 : _fetchcustomercartQue60.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
2984
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
2985
+ }, /*#__PURE__*/React__default["default"].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 : (_fetchcustomercartQue61 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue61 === void 0 ? void 0 : (_fetchcustomercartQue62 = _fetchcustomercartQue61.data) === null || _fetchcustomercartQue62 === void 0 ? void 0 : _fetchcustomercartQue62.customercart.zoneprice, " ", langdetect == 'en' ? '' : 'ج.م')), !(fetchcustomercartQueryContext !== null && fetchcustomercartQueryContext !== void 0 && (_fetchcustomercartQue63 = fetchcustomercartQueryContext.data) !== null && _fetchcustomercartQue63 !== void 0 && (_fetchcustomercartQue64 = _fetchcustomercartQue63.data) !== null && _fetchcustomercartQue64 !== void 0 && _fetchcustomercartQue64.customercart.zoneexists) && /*#__PURE__*/React__default["default"].createElement("div", {
2988
+ className: "col-lg-6 col-md-6 col-sm-6 d-flex justify-content-end p-0"
2989
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
2990
+ className: "".concat(checkoutstyles.summarysectionstyles) + ' m-0 p-0 d-flex align-items-start wordbreak ',
2991
+ style: {
2992
+ color: 'red'
2993
+ }
2994
+ }, lang.outofzone)))), /*#__PURE__*/React__default["default"].createElement("div", {
2995
+ className: "col-lg-12 p-0"
2996
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
2997
+ className: "mt-2 mb-2"
2998
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
2999
+ className: "col-lg-12 p-0"
3000
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3001
+ className: "row m-0 w-100"
3002
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3003
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
3004
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3005
+ className: "d-flex align-items-start",
3006
+ style: {
3007
+ fontSize: sectionproperties.total_fontsize + 'px',
3008
+ fontWeight: sectionproperties.total_fontweight,
3009
+ textTransform: sectionproperties.total_texttransform,
3010
+ color: sectionproperties.total_color
3011
+ }
3012
+ }, lang.total)), /*#__PURE__*/React__default["default"].createElement("div", {
3013
+ className: "col-lg-6 col-md-6 col-sm-6 p-0"
3014
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3015
+ className: "row m-0 w-100"
3016
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3017
+ className: "col-lg-12 p-0 d-flex justify-content-end "
3018
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3019
+ className: langdetect == 'en' ? ' wordbreak text-right ' : 'wordbreak text-left ',
3020
+ style: {
3021
+ fontSize: sectionproperties.total_fontsize + 'px',
3022
+ fontWeight: sectionproperties.total_fontweight,
3023
+ textTransform: sectionproperties.total_texttransform,
3024
+ color: sectionproperties.total_color
3025
+ }
3026
+ }, langdetect == 'en' ? 'EGP' : '', " ", fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue65 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue65 === void 0 ? void 0 : (_fetchcustomercartQue66 = _fetchcustomercartQue65.data) === null || _fetchcustomercartQue66 === void 0 ? void 0 : _fetchcustomercartQue66.customercart.totalpriceafterdiscount, ' ', langdetect == 'en' ? '' : 'ج.م')))))), /*#__PURE__*/React__default["default"].createElement("div", {
3027
+ className: "col-lg-12 d-flex align-items-center justify-content-center mb-2 mt-sm-3"
3028
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
3029
+ className: " ".concat(checkoutstyles.checkoutbtnstyles) + ' d-flex align-items-center justify-content-center ',
3030
+ onClick: function onClick() {
3031
+ var payloadobj = {};
3032
+ AddOrderMutationContext.mutate(payloadobj);
3033
+ },
3034
+ disabled: AddOrderMutationContext.isLoading ? true : false
3035
+ }, AddOrderMutationContext.isLoading && /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3036
+ color: "#fff",
3037
+ width: "20px",
3038
+ height: "20px",
3039
+ duration: "1s"
3040
+ }), !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 : ''))))));
3041
+ };
3042
+
3043
+ return /*#__PURE__*/React__default["default"].createElement("div", {
3044
+ className: 'row m-0 w-100 mb-3 d-flex justify-content-center p-sm-0 mt-sm-3'
3045
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3046
+ className: 'col-lg-12 w-100 d-flex justify-content-center pl-md-3 pr-md-3 pl-sm-2 pr-sm-2',
3047
+ style: {
3048
+ marginTop: sectionproperties.marginTop + 'px',
3049
+ marginBottom: sectionproperties.marginBottom + 'px',
3050
+ paddingLeft: sectionproperties.paddingLeft + 'px',
3051
+ paddingRight: sectionproperties.paddingRight + 'px',
3052
+ paddingTop: sectionproperties.paddingTop + 'px',
3053
+ paddingBottom: sectionproperties.paddingBottom + 'px',
3054
+ background: sectionproperties.backgroundColor,
3055
+ borderBottomLeftRadius: sectionproperties.borderBottomLeftRadius + 'px',
3056
+ borderBottomRightRadius: sectionproperties.borderBottomRightRadius + 'px',
3057
+ borderTopLeftRadius: sectionproperties.borderTopLeftRadius + 'px',
3058
+ borderTopRightRadius: sectionproperties.borderTopRightRadius + 'px'
3059
+ }
3060
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3061
+ className: 'row m-0 w-100 justify-content-center '
3062
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3063
+ 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 '
3064
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3065
+ className: "col-lg-12 d-flex align-items-center p-0"
3066
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3067
+ style: {
3068
+ fontSize: sectionproperties.sectionTitleFontSize + 'px',
3069
+ color: sectionproperties.sectionTitleColor,
3070
+ marginTop: sectionproperties.sectionTitleMarginTop + 'px',
3071
+ marginBottom: sectionproperties.sectionTitleMarginBottom + 'px',
3072
+ textTransform: sectionproperties.sectionTitleTextTransform,
3073
+ fontWeight: sectionproperties.sectionTitleFontWeight
3074
+ }
3075
+ }, lang.checkout)), authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement("div", {
3076
+ className: "col-lg-12 p-0"
3077
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3078
+ className: "pl-3 pr-3 pt-2 pb-2",
3079
+ style: {
3080
+ background: sectionproperties.userinfo_sectionbgcolor,
3081
+ borderRadius: sectionproperties.userinfo_borderradius + 'px',
3082
+ marginTop: sectionproperties.userinfo_sectionmarginTop + 'px',
3083
+ marginBottom: sectionproperties.userinfo_sectionmarginbottom + 'px',
3084
+ border: sectionproperties.userinfo_borderwidth + 'px solid ' + sectionproperties.usserinfo_sectionbordercolor
3085
+ }
3086
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3087
+ className: "row m-0 w-100"
3088
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3089
+ className: "".concat(checkoutstyles.userinfo_iconcont) + ' d-flex align-items-center justify-content-center '
3090
+ }, /*#__PURE__*/React__default["default"].createElement(bs.BsCheck2Circle, {
3091
+ size: 20
3092
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3093
+ className: "col-lg-11 col-md-10 col-sm-10 p-0"
3094
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3095
+ className: "row m-0 w-100"
3096
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3097
+ className: "col-lg-12 d-flex align-items-center pl-2 pr-2",
3098
+ style: {
3099
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
3100
+ color: sectionproperties.userinfo_titlecolor,
3101
+ fontWeight: sectionproperties.userinfo_titlefontweight
3102
+ }
3103
+ }, lang.loggedinas), /*#__PURE__*/React__default["default"].createElement("div", {
3104
+ className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 text-capitalize '
3105
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3106
+ className: "m-0 p-0 d-flex align-items-center"
3107
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
3108
+ className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3109
+ style: {
3110
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3111
+ color: sectionproperties.userinfotext_iconcolor,
3112
+ marginRight: langdetect == 'en' ? '5px' : 0,
3113
+ marginLeft: langdetect == 'en' ? 0 : '5px'
3114
+ }
3115
+ }, /*#__PURE__*/React__default["default"].createElement(hi.HiUser, null)), /*#__PURE__*/React__default["default"].createElement("p", {
3116
+ className: "m-0 p-0 wordbreak"
3117
+ }, authdetailsContext.customerinfo.name))), /*#__PURE__*/React__default["default"].createElement("div", {
3118
+ className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
3119
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3120
+ className: "m-0 p-0 d-flex align-items-center"
3121
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
3122
+ className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3123
+ style: {
3124
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3125
+ color: sectionproperties.userinfotext_iconcolor,
3126
+ marginRight: langdetect == 'en' ? '5px' : 0,
3127
+ marginLeft: langdetect == 'en' ? 0 : '5px'
3128
+ }
3129
+ }, /*#__PURE__*/React__default["default"].createElement(bs.BsFillTelephoneFill, null)), /*#__PURE__*/React__default["default"].createElement("p", {
3130
+ className: "m-0 p-0 wordbreak"
3131
+ }, authdetailsContext.customerinfo.mobile))), /*#__PURE__*/React__default["default"].createElement("div", {
3132
+ className: "".concat(checkoutstyles.userinfotextstyles) + ' col-lg-4 col-md-6 col-sm-12 d-flex align-items-center pl-1 pr-1 '
3133
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3134
+ className: "m-0 p-0 d-flex align-items-center"
3135
+ }, /*#__PURE__*/React__default["default"].createElement("i", {
3136
+ className: "h-100 d-flex align-items-center justify-content-center mb-auto mt-1",
3137
+ style: {
3138
+ fontSize: sectionproperties.userinfotext_iconfontsize + 'px',
3139
+ color: sectionproperties.userinfotext_iconcolor,
3140
+ marginRight: langdetect == 'en' ? '5px' : 0,
3141
+ marginLeft: langdetect == 'en' ? 0 : '5px'
3142
+ }
3143
+ }, /*#__PURE__*/React__default["default"].createElement(gr.GrMail, null)), /*#__PURE__*/React__default["default"].createElement("p", {
3144
+ className: "m-0 p-0 wordbreak"
3145
+ }, authdetailsContext.customerinfo.email))))), /*#__PURE__*/React__default["default"].createElement("div", {
3146
+ className: "col-lg-12 justify-content-end float-right pl-2 pr-2",
3147
+ style: {
3148
+ fontSize: sectionproperties.userinfo_titlefontsize + 'px',
3149
+ color: sectionproperties.userinfo_titlecolor,
3150
+ fontWeight: sectionproperties.userinfo_titlefontweight,
3151
+ textAlign: 'right',
3152
+ textDecoration: 'underline',
3153
+ cursor: 'pointer',
3154
+ position: 'absolute',
3155
+ right: 10,
3156
+ top: 10
3157
+ },
3158
+ onClick: function onClick() {
3159
+ routingcountext(StaticPagesLinksContext.accountinfo);
3160
+ }
3161
+ }, lang.update)))), /*#__PURE__*/React__default["default"].createElement("div", {
3162
+ className: "col-lg-12 p-0"
3163
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3164
+ style: {
3165
+ marginTop: sectionproperties.contactinfo_sectionmarginTop + 'px',
3166
+ marginBottom: sectionproperties.contactinfo_sectionmarginbottom + 'px',
3167
+ background: sectionproperties.contactinfo_sectionbgcolor,
3168
+ borderRadius: sectionproperties.contactinfo_sectionborderradius + 'px',
3169
+ border: sectionproperties.contactinfo_borderwidth + 'px solid ' + sectionproperties.contactinfo_sectionbordercolor
3170
+ }
3171
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3172
+ className: "col-lg-12 pl-3 pr-3 pt-2"
3173
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3174
+ className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3175
+ }, authdetailsContext.loggedin ? lang.addressdetails : lang.contactdetails)), /*#__PURE__*/React__default["default"].createElement("div", {
3176
+ className: "col-lg-12 p-0"
3177
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
3178
+ className: "mt-2 mb-2"
3179
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3180
+ className: "row m-0 w-100 mb-3 pl-3 pr-3 pb-3"
3181
+ }, !authdetailsContext.loggedin && /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
3182
+ className: "col-lg-4 col-md-12 mb-3"
3183
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3184
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3185
+ }, lang.name), /*#__PURE__*/React__default["default"].createElement("input", {
3186
+ type: 'text',
3187
+ className: "".concat(formstyles.form_control),
3188
+ 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,
3189
+ onChange: function onChange(event) {
3190
+ cartinfoupdater('name', event.target.value);
3191
+ },
3192
+ style: {
3193
+ resize: 'none',
3194
+ fontWeight: sectionproperties.inputtextfontweight,
3195
+ background: sectionproperties.input_bgcolor,
3196
+ color: sectionproperties.inputfieldcolor,
3197
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3198
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
3199
+ boxShadow: 'none'
3200
+ }
3201
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3202
+ className: "col-lg-4 col-md-12 mb-3"
3203
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3204
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3205
+ }, langdetect == 'en' ? 'Phone Number' : 'رقم الهاتف'), /*#__PURE__*/React__default["default"].createElement("input", {
3206
+ type: 'text',
3207
+ className: "".concat(formstyles.form_control),
3208
+ 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,
3209
+ onChange: function onChange(event) {
3210
+ cartinfoupdater('mobile', event.target.value);
3211
+ },
3212
+ style: {
3213
+ resize: 'none',
3214
+ fontWeight: sectionproperties.inputtextfontweight,
3215
+ background: sectionproperties.input_bgcolor,
3216
+ color: sectionproperties.inputfieldcolor,
3217
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3218
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
3219
+ boxShadow: 'none'
3220
+ }
3221
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3222
+ className: "col-lg-4 col-md-12 mb-3"
3223
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3224
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3225
+ }, lang.email), /*#__PURE__*/React__default["default"].createElement("input", {
3226
+ type: 'text',
3227
+ className: "".concat(formstyles.form_control),
3228
+ 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,
3229
+ onChange: function onChange(event) {
3230
+ cartinfoupdater('email', event.target.value);
3231
+ },
3232
+ style: {
3233
+ resize: 'none',
3234
+ fontWeight: sectionproperties.inputtextfontweight,
3235
+ background: sectionproperties.input_bgcolor,
3236
+ color: sectionproperties.inputfieldcolor,
3237
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3238
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
3239
+ boxShadow: 'none'
3240
+ }
3241
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
3242
+ className: "col-lg-4 col-md-12 mb-3"
3243
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3244
+ className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3245
+ }, " ", lang.country), fetchTabexCountriesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
3246
+ className: "w-100"
3247
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3248
+ color: "black",
3249
+ width: "20px",
3250
+ height: "20px",
3251
+ duration: "1s"
3252
+ })), !fetchTabexCountriesQueryContext.isFetching && fetchTabexCountriesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
3253
+ options: fetchTabexCountriesQueryContext.data.data.countries,
3254
+ getOptionLabel: function getOptionLabel(option) {
3255
+ return option.name;
3256
+ },
3257
+ getOptionValue: function getOptionValue(option) {
3258
+ return option.id;
3259
+ },
3260
+ value: fetchTabexCountriesQueryContext.data.data.countries.filter(function (option) {
3261
+ var _fetchcustomercartQue75, _fetchcustomercartQue76;
3262
+
3263
+ 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);
3264
+ }),
3265
+ onChange: function onChange(option) {
3266
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
3267
+
3268
+ tempFetchTabexStatesPayloadobjContext.functype = 'states';
3269
+ tempFetchTabexStatesPayloadobjContext.country_id = option.id;
3270
+ setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext));
3271
+ cartinfoupdater('countryid', option.id);
3272
+ },
3273
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3274
+ placeholder: lang.choosecountry,
3275
+ isSearchable: true
3276
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3277
+ className: "col-lg-4 col-md-12 mb-3"
3278
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3279
+ className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3280
+ }, lang.stategov), fetchTabexStatesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
3281
+ className: "w-100"
3282
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3283
+ color: "black",
3284
+ width: "20px",
3285
+ height: "20px",
3286
+ duration: "1s"
3287
+ })), !fetchTabexStatesQueryContext.isFetching && fetchTabexStatesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
3288
+ options: fetchTabexStatesQueryContext.data.data.states,
3289
+ getOptionLabel: function getOptionLabel(option) {
3290
+ return option.name;
3291
+ },
3292
+ getOptionValue: function getOptionValue(option) {
3293
+ return option.id;
3294
+ },
3295
+ value: fetchTabexStatesQueryContext.data.data.states.filter(function (option) {
3296
+ var _fetchcustomercartQue77, _fetchcustomercartQue78;
3297
+
3298
+ 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);
3299
+ }),
3300
+ onChange: function onChange(option) {
3301
+ var _fetchcustomercartQue79, _fetchcustomercartQue80;
3302
+
3303
+ 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) {
3304
+ var tempFetchTabexStatesPayloadobjContext = _objectSpread$12({}, FetchTabexStatesPayloadobjContext);
3305
+
3306
+ tempFetchTabexStatesPayloadobjContext.functype = 'cities';
3307
+ tempFetchTabexStatesPayloadobjContext.state_id = option.id;
3308
+ setFetchTabexStatesPayloadobjContext(_objectSpread$12({}, tempFetchTabexStatesPayloadobjContext));
3309
+ cartinfoupdater('stateid', option.id);
3310
+ } else {
3311
+ NotificationManager.warning('', 'Please Choose Country Or State');
3312
+ }
3313
+ },
3314
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3315
+ placeholder: lang.choosestategov,
3316
+ isSearchable: true
3317
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3318
+ className: "col-lg-4 col-md-12 mb-3"
3319
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3320
+ className: "".concat(checkoutstyles.input_label_name) + ' m-0 d-flex align-items-start '
3321
+ }, lang.city), fetchTabexCitiesQueryContext.isFetching && /*#__PURE__*/React__default["default"].createElement("div", {
3322
+ className: "w-100"
3323
+ }, /*#__PURE__*/React__default["default"].createElement(reactCssfxLoading.CircularProgress, {
3324
+ color: "black",
3325
+ width: "20px",
3326
+ height: "20px",
3327
+ duration: "1s"
3328
+ })), !fetchTabexCitiesQueryContext.isFetching && fetchTabexCitiesQueryContext.isSuccess && /*#__PURE__*/React__default["default"].createElement(Select, {
3329
+ options: fetchTabexCitiesQueryContext.data.data.cities,
3330
+ getOptionLabel: function getOptionLabel(option) {
3331
+ return option.name;
3332
+ },
3333
+ getOptionValue: function getOptionValue(option) {
3334
+ return option.id;
3335
+ },
3336
+ value: fetchTabexCitiesQueryContext.data.data.cities.filter(function (option) {
3337
+ var _fetchcustomercartQue81, _fetchcustomercartQue82;
3338
+
3339
+ 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);
3340
+ }),
3341
+ onChange: function onChange(option) {
3342
+ cartinfoupdater('cityid', option.id);
3343
+ },
3344
+ styles: langdetect == 'en' ? defaultstyles : defaultstylestranslated,
3345
+ placeholder: lang.choosecity,
3346
+ isSearchable: true
3347
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3348
+ className: "col-lg-12 mb-3"
3349
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3350
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3351
+ }, lang.shippingaddress), /*#__PURE__*/React__default["default"].createElement(TextareaAutosize__default["default"], {
3352
+ type: 'text',
3353
+ className: "".concat(formstyles.form_control),
3354
+ 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,
3355
+ onChange: function onChange(event) {
3356
+ cartinfoupdater('address', event.target.value);
3357
+ },
3358
+ style: {
3359
+ resize: 'none',
3360
+ fontWeight: sectionproperties.inputtextfontweight,
3361
+ background: sectionproperties.input_bgcolor,
3362
+ color: sectionproperties.inputfieldcolor,
3363
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3364
+ borderRadius: sectionproperties.inputfieldborderradius + 'px',
3365
+ boxShadow: 'none'
3366
+ }
3367
+ }))))), /*#__PURE__*/React__default["default"].createElement("div", {
3368
+ className: "col-lg-12 p-0 w-100"
3369
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3370
+ style: {
3371
+ background: sectionproperties.payment_sectionbgcolor,
3372
+ borderRadius: sectionproperties.payment_borderradius + 'px',
3373
+ border: sectionproperties.payment_borderwidth + 'px solid ' + sectionproperties.payment_sectionbordercolor
3374
+ }
3375
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3376
+ className: "col-lg-12 pl-3 pr-3 pt-2"
3377
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3378
+ className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3379
+ }, lang.paymentmethod)), /*#__PURE__*/React__default["default"].createElement("div", {
3380
+ className: "col-lg-12 p-0"
3381
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
3382
+ className: "mt-2 mb-2"
3383
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3384
+ className: "row m-0 w-100 mb-3 pl-3 pr-3"
3385
+ }, authdetailsContext.instinfo.acceptCOD == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
3386
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3387
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3388
+ className: langdetect == 'en' ? "".concat(formstyles.checkbox, " ").concat(checkoutstyles.checkbox, " ") + ' d-flex mb-0 ' : "".concat(formstyles.checkbox, " ").concat(formstyles.checkboxtranslated) + ' d-flex mb-0 ',
3389
+ "for": "codcheckbox"
3390
+ }, /*#__PURE__*/React__default["default"].createElement("input", {
3391
+ id: 'codcheckbox',
3392
+ type: "checkbox",
3393
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3394
+ 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,
3395
+ onChange: function onChange() {
3396
+ var _fetchcustomercartQue87, _fetchcustomercartQue88;
3397
+
3398
+ 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') {
3399
+ cartinfoupdater('paymentmethod', 'cod');
3400
+ }
3401
+ }
3402
+ }), /*#__PURE__*/React__default["default"].createElement("svg", {
3403
+ viewBox: "0 0 21 21",
3404
+ className: checkoutstyles.svgstyles + ' h-100 '
3405
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3406
+ 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"
3407
+ })), /*#__PURE__*/React__default["default"].createElement("p", {
3408
+ className: ' ml-2 mb-0 cursor-pointer wordbreak mr-2',
3409
+ style: {}
3410
+ }, lang.cod))), authdetailsContext.instinfo.acceptCardOnDelivery == 1 && /*#__PURE__*/React__default["default"].createElement("div", {
3411
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3412
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3413
+ 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 '
3414
+ }, /*#__PURE__*/React__default["default"].createElement("input", {
3415
+ type: "checkbox",
3416
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3417
+ 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,
3418
+ onChange: function onChange() {
3419
+ var _fetchcustomercartQue91, _fetchcustomercartQue92;
3420
+
3421
+ 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') {
3422
+ cartinfoupdater('paymentmethod', 'cardondelivery');
3423
+ }
3424
+ }
3425
+ }), /*#__PURE__*/React__default["default"].createElement("svg", {
3426
+ viewBox: "0 0 21 21",
3427
+ className: checkoutstyles.svgstyles + ' h-100 '
3428
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3429
+ 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"
3430
+ })), /*#__PURE__*/React__default["default"].createElement("p", {
3431
+ className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
3432
+ }, " ", lang.cardondelivery))), authdetailsContext.instinfo.acceptOnlineCardPayment == 0 && /*#__PURE__*/React__default["default"].createElement("div", {
3433
+ className: "col-xl-4 col-lg-4 col-md-12 mb-3"
3434
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3435
+ 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 '
3436
+ }, /*#__PURE__*/React__default["default"].createElement("input", {
3437
+ type: "checkbox",
3438
+ className: checkoutstyles.checkboxinputstyles + ' mt-auto mb-auto ',
3439
+ 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,
3440
+ onChange: function onChange() {
3441
+ var _fetchcustomercartQue95, _fetchcustomercartQue96;
3442
+
3443
+ 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') {
3444
+ cartinfoupdater('paymentmethod', 'onlinepayment');
3445
+ }
3446
+ }
3447
+ }), /*#__PURE__*/React__default["default"].createElement("svg", {
3448
+ viewBox: "0 0 21 21",
3449
+ className: checkoutstyles.svgstyles + ' h-100 '
3450
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
3451
+ 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"
3452
+ })), /*#__PURE__*/React__default["default"].createElement("p", {
3453
+ className: "".concat(formstyles.checkbox_label) + ' ml-2 mb-0 wordbreak cursor-pointer mr-2 '
3454
+ }, " ", lang.onlinepayment)))))), (fetchcustomercartQueryContext === null || fetchcustomercartQueryContext === void 0 ? void 0 : (_fetchcustomercartQue97 = fetchcustomercartQueryContext.data) === null || _fetchcustomercartQue97 === void 0 ? void 0 : (_fetchcustomercartQue98 = _fetchcustomercartQue97.data) === null || _fetchcustomercartQue98 === void 0 ? void 0 : _fetchcustomercartQue98.customercart.paymentmethod) == 'onlinepayment1' && /*#__PURE__*/React__default["default"].createElement("div", {
3455
+ className: "col-lg-12 p-0 w-100 mb-3"
3456
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3457
+ style: {
3458
+ background: sectionproperties.payment_sectionbgcolor,
3459
+ borderRadius: sectionproperties.payment_borderradius + 'px',
3460
+ borderColor: sectionproperties.payment_sectionbordercolor
3461
+ }
3462
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3463
+ className: "col-lg-12 pl-3 pr-3 pt-2"
3464
+ }, /*#__PURE__*/React__default["default"].createElement("p", {
3465
+ className: checkoutstyles.innersectiontitlestyles + ' m-0 p-0 d-flex align-items-start '
3466
+ }, lang.paymentcardinformation)), /*#__PURE__*/React__default["default"].createElement("div", {
3467
+ className: "col-lg-12 p-0"
3468
+ }, /*#__PURE__*/React__default["default"].createElement("hr", {
3469
+ className: "mt-2 mb-2"
3470
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3471
+ className: "w-100 row m-0 pl-3 pr-3 pt-2 pb-2"
3472
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3473
+ className: "col-lg-12 col-md-12 col-sm-12 mb-3 p-sm-0"
3474
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3475
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3476
+ }, lang.cardnumber), /*#__PURE__*/React__default["default"].createElement("input", {
3477
+ className: formstyles.form_controlcheckout,
3478
+ type: "text",
3479
+ textplaceholder: "",
3480
+ onChange: function onChange(event) {},
3481
+ style: {
3482
+ fontWeight: sectionproperties.inputtextfontweight,
3483
+ background: sectionproperties.input_bgcolor,
3484
+ color: sectionproperties.inputfieldcolor,
3485
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3486
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3487
+ }
3488
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3489
+ className: "w-100 row m-0"
3490
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
3491
+ className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3492
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3493
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3494
+ }, lang.year), /*#__PURE__*/React__default["default"].createElement("input", {
3495
+ className: formstyles.form_controlcheckout,
3496
+ type: "text",
3497
+ textplaceholder: "",
3498
+ onChange: function onChange(event) {},
3499
+ style: {
3500
+ fontWeight: sectionproperties.inputtextfontweight,
3501
+ background: sectionproperties.input_bgcolor,
3502
+ color: sectionproperties.inputfieldcolor,
3503
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3504
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3505
+ }
3506
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3507
+ className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3508
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3509
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3510
+ }, lang.month), /*#__PURE__*/React__default["default"].createElement("input", {
3511
+ className: formstyles.form_controlcheckout,
3512
+ type: "text",
3513
+ textplaceholder: "",
3514
+ onChange: function onChange(event) {},
3515
+ style: {
3516
+ fontWeight: sectionproperties.inputtextfontweight,
3517
+ background: sectionproperties.input_bgcolor,
3518
+ color: sectionproperties.inputfieldcolor,
3519
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3520
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3521
+ }
3522
+ })), /*#__PURE__*/React__default["default"].createElement("div", {
3523
+ className: "col-lg-4 col-md-12 col-sm-12 p-sm-0 mb-3"
3524
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3525
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3526
+ }, lang.cvv), /*#__PURE__*/React__default["default"].createElement("input", {
3527
+ className: formstyles.form_controlcheckout,
3528
+ type: "text",
3529
+ textplaceholder: "",
3530
+ onChange: function onChange(event) {},
3531
+ style: {
3532
+ fontWeight: sectionproperties.inputtextfontweight,
3533
+ background: sectionproperties.input_bgcolor,
3534
+ color: sectionproperties.inputfieldcolor,
3535
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3536
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3537
+ }
3538
+ }))), /*#__PURE__*/React__default["default"].createElement("div", {
3539
+ className: "col-lg-12 col-md-12 col-sm-12 mb-2 p-sm-0 mb-3"
3540
+ }, /*#__PURE__*/React__default["default"].createElement("label", {
3541
+ className: "".concat(checkoutstyles.input_label_name) + ' mb-2 d-flex align-items-start '
3542
+ }, lang.nameoncard), /*#__PURE__*/React__default["default"].createElement("input", {
3543
+ className: formstyles.form_controlcheckout,
3544
+ type: "text",
3545
+ textplaceholder: "",
3546
+ onChange: function onChange(event) {},
3547
+ style: {
3548
+ fontWeight: sectionproperties.inputtextfontweight,
3549
+ background: sectionproperties.input_bgcolor,
3550
+ color: sectionproperties.inputfieldcolor,
3551
+ fontSize: sectionproperties.inputfieldfontsize + 'px',
3552
+ borderRadius: sectionproperties.inputfieldborderradius + 'px'
3553
+ }
3554
+ })))))), /*#__PURE__*/React__default["default"].createElement("div", {
3555
+ className: langdetect == 'en' ? 'col-lg-4 col-md-12 pr-0' : 'col-lg-4 col-md-12 pl-0'
3556
+ }, Mycart()))));
3053
3557
  };
3054
3558
 
3055
3559
  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";