ordering-ui-external 4.0.6 → 5.0.0

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.
Files changed (87) hide show
  1. package/_bundles/{0.ordering-ui.2b6bfdaa8b236eb288fa.js → 0.ordering-ui.dc2501dcf51ed5b7b821.js} +1 -1
  2. package/_bundles/{1.ordering-ui.2b6bfdaa8b236eb288fa.js → 1.ordering-ui.dc2501dcf51ed5b7b821.js} +1 -1
  3. package/_bundles/{2.ordering-ui.2b6bfdaa8b236eb288fa.js → 2.ordering-ui.dc2501dcf51ed5b7b821.js} +1 -1
  4. package/_bundles/{4.ordering-ui.2b6bfdaa8b236eb288fa.js → 4.ordering-ui.dc2501dcf51ed5b7b821.js} +1 -1
  5. package/_bundles/{5.ordering-ui.2b6bfdaa8b236eb288fa.js → 5.ordering-ui.dc2501dcf51ed5b7b821.js} +1 -1
  6. package/_bundles/{6.ordering-ui.2b6bfdaa8b236eb288fa.js → 6.ordering-ui.dc2501dcf51ed5b7b821.js} +1 -1
  7. package/_bundles/{7.ordering-ui.2b6bfdaa8b236eb288fa.js → 7.ordering-ui.dc2501dcf51ed5b7b821.js} +2 -2
  8. package/_bundles/{8.ordering-ui.2b6bfdaa8b236eb288fa.js → 8.ordering-ui.dc2501dcf51ed5b7b821.js} +1 -1
  9. package/_bundles/{9.ordering-ui.2b6bfdaa8b236eb288fa.js → 9.ordering-ui.dc2501dcf51ed5b7b821.js} +1 -1
  10. package/_bundles/{ordering-ui.2b6bfdaa8b236eb288fa.js → ordering-ui.dc2501dcf51ed5b7b821.js} +2 -2
  11. package/_modules/components/BusinessBasicInformation/index.js +4 -4
  12. package/_modules/components/BusinessBasicInformation/styles.js +4 -1
  13. package/_modules/components/UserProfileForm/styles.js +1 -1
  14. package/_modules/themes/callcenterOriginal/src/components/AddressList/index.js +4 -5
  15. package/_modules/themes/callcenterOriginal/src/components/AddressList/styles.js +2 -6
  16. package/_modules/themes/callcenterOriginal/src/components/Checkout/index.js +1 -1
  17. package/_modules/themes/callcenterOriginal/src/components/Header/index.js +23 -43
  18. package/_modules/themes/callcenterOriginal/src/components/Header/styles.js +14 -12
  19. package/_modules/themes/callcenterOriginal/src/components/SidebarMenu/index.js +16 -1
  20. package/_modules/themes/callcenterOriginal/src/components/SidebarMenu/styles.js +11 -3
  21. package/_modules/themes/callcenterOriginal/src/components/UserDetails/index.js +1 -1
  22. package/_modules/themes/callcenterOriginal/src/components/UserDetails/styles.js +2 -2
  23. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +58 -55
  24. package/_modules/themes/five/src/components/BusinessInformation/index.js +1 -1
  25. package/_modules/themes/five/src/components/BusinessInformation/styles.js +9 -5
  26. package/_modules/themes/five/src/components/BusinessItemAccordion/styles.js +1 -1
  27. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +2 -3
  28. package/_modules/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +8 -4
  29. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +18 -14
  30. package/_modules/themes/five/src/components/Checkout/index.js +6 -6
  31. package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +5 -2
  32. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +44 -39
  33. package/_modules/themes/five/src/components/OrderContextUI/index.js +61 -7
  34. package/_modules/themes/five/src/components/OrderContextUI/styles.js +1 -1
  35. package/_modules/themes/five/src/components/PageBanner/index.js +3 -3
  36. package/_modules/themes/five/src/components/PhoneAutocomplete/styles.js +1 -1
  37. package/_modules/themes/five/src/components/ProductForm/index.js +20 -18
  38. package/_modules/themes/five/src/components/ProductShare/index.js +1 -1
  39. package/_modules/themes/five/src/components/ProductShare/styles.js +2 -2
  40. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +5 -3
  41. package/_modules/themes/five/src/components/ResetPassword/index.js +6 -7
  42. package/_modules/themes/five/src/components/ScheduleAccordion/styles.js +1 -1
  43. package/_modules/themes/five/src/components/SingleOrderCard/index.js +4 -2
  44. package/_modules/themes/five/src/components/SingleOrderCard/styles.js +18 -15
  45. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +3 -2
  46. package/_modules/themes/five/src/components/TaxInformation/styles.js +1 -1
  47. package/package.json +2 -2
  48. package/src/components/BusinessBasicInformation/index.js +7 -10
  49. package/src/components/BusinessBasicInformation/styles.js +13 -0
  50. package/src/components/UserProfileForm/styles.js +0 -1
  51. package/src/themes/callcenterOriginal/src/components/AddressList/index.js +2 -2
  52. package/src/themes/callcenterOriginal/src/components/AddressList/styles.js +6 -5
  53. package/src/themes/callcenterOriginal/src/components/Checkout/index.js +1 -1
  54. package/src/themes/callcenterOriginal/src/components/Header/index.js +2 -40
  55. package/src/themes/callcenterOriginal/src/components/Header/styles.js +6 -3
  56. package/src/themes/callcenterOriginal/src/components/SidebarMenu/index.js +19 -1
  57. package/src/themes/callcenterOriginal/src/components/SidebarMenu/styles.js +27 -0
  58. package/src/themes/callcenterOriginal/src/components/UserDetails/index.js +1 -1
  59. package/src/themes/callcenterOriginal/src/components/UserDetails/styles.js +5 -1
  60. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +7 -0
  61. package/src/themes/five/src/components/BusinessInformation/index.js +2 -0
  62. package/src/themes/five/src/components/BusinessInformation/styles.js +10 -1
  63. package/src/themes/five/src/components/BusinessItemAccordion/styles.js +3 -0
  64. package/src/themes/five/src/components/BusinessProductsCategories/index.js +1 -2
  65. package/src/themes/five/src/components/BusinessProductsList/layouts/groceries/index.js +5 -1
  66. package/src/themes/five/src/components/BusinessProductsListing/index.js +5 -1
  67. package/src/themes/five/src/components/Checkout/index.js +2 -1
  68. package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +16 -10
  69. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +16 -1
  70. package/src/themes/five/src/components/OrderContextUI/index.js +47 -3
  71. package/src/themes/five/src/components/OrderContextUI/styles.js +3 -0
  72. package/src/themes/five/src/components/PageBanner/index.js +3 -3
  73. package/src/themes/five/src/components/PhoneAutocomplete/styles.js +4 -0
  74. package/src/themes/five/src/components/ProductForm/index.js +28 -24
  75. package/src/themes/five/src/components/ProductShare/index.js +1 -1
  76. package/src/themes/five/src/components/ProductShare/styles.js +1 -3
  77. package/src/themes/five/src/components/RenderProductsLayout/index.js +8 -4
  78. package/src/themes/five/src/components/ResetPassword/index.js +1 -1
  79. package/src/themes/five/src/components/ScheduleAccordion/styles.js +4 -0
  80. package/src/themes/five/src/components/SidebarMenu/index.js +3 -2
  81. package/src/themes/five/src/components/SingleOrderCard/index.js +4 -4
  82. package/src/themes/five/src/components/SingleOrderCard/styles.js +1 -1
  83. package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +3 -2
  84. package/src/themes/five/src/components/TaxInformation/styles.js +3 -0
  85. package/template/pages/BusinessProductsList/index.js +1 -0
  86. /package/_bundles/{7.ordering-ui.2b6bfdaa8b236eb288fa.js.LICENSE.txt → 7.ordering-ui.dc2501dcf51ed5b7b821.js.LICENSE.txt} +0 -0
  87. /package/_bundles/{ordering-ui.2b6bfdaa8b236eb288fa.js.LICENSE.txt → ordering-ui.dc2501dcf51ed5b7b821.js.LICENSE.txt} +0 -0
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.WrapperSearch = exports.WrapperFloatingSearch = exports.WrapperBusinessLogo = exports.TitleWrapper = exports.SocialList = exports.SearchWrapper = exports.SearchIconWrapper = exports.SearchComponentContainer = exports.RibbonBox = exports.IconWrapper = exports.CategorySelectedContainer = exports.BusinessMoreDetail = exports.BusinessLogo = exports.BusinessInfoWrapper = exports.BusinessInfoItem = exports.BusinessInfoContent = exports.BusinessInfoContainer = exports.BusinessInfo = exports.BusinessDetail = exports.BusinessContent = exports.BusinessContainer = exports.BackButton = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30, _templateObject31, _templateObject32, _templateObject33, _templateObject34, _templateObject35, _templateObject36, _templateObject37, _templateObject38, _templateObject39, _templateObject40, _templateObject41, _templateObject42, _templateObject43, _templateObject44, _templateObject45, _templateObject46, _templateObject47, _templateObject48, _templateObject49, _templateObject50, _templateObject51, _templateObject52, _templateObject53, _templateObject54, _templateObject55;
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -58,53 +58,56 @@ var BusinessInfoItem = _styledComponents.default.div(_templateObject11 || (_temp
58
58
  return isInfoShrunken && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n color: #FFFFFF;\n span, p, h5, svg {\n color: #FFFFFF !important;\n }\n "])));
59
59
  });
60
60
  exports.BusinessInfoItem = BusinessInfoItem;
61
- var BusinessInfoContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: ", ";\n padding-top: 40px;\n padding-left: 5px;\n padding-right: 5px;\n display: flex;\n justify-content: ", ";\n flex-direction: column;\n box-sizing: border-box;\n align-items: ", ";\n\n @media (min-width: 576px) {\n padding-top: 0px;\n padding-left: 0px;\n padding-right: 0px;\n margin-top: 10px;\n }\n\n @media (min-width: 768px) {\n flex-direction: row;\n margin-bottom: 25px;\n margin-left: ", ";\n }\n"])), function (props) {
61
+ var BusinessInfoContainer = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n width: ", ";\n padding-top: 40px;\n padding-left: 5px;\n padding-right: 5px;\n display: flex;\n justify-content: ", ";\n flex-direction: column;\n box-sizing: border-box;\n align-items: ", ";\n\n #business_name {\n ", "\n }\n\n @media (min-width: 576px) {\n padding-top: 0px;\n padding-left: 0px;\n padding-right: 0px;\n margin-top: 10px;\n }\n\n @media (min-width: 768px) {\n flex-direction: row;\n margin-bottom: 25px;\n margin-left: ", ";\n }\n"])), function (props) {
62
62
  return props.isChew && '100%';
63
63
  }, function (props) {
64
64
  return props.isFlexEnd ? 'flex-end' : 'space-between';
65
65
  }, function (props) {
66
66
  return props.isFlexEnd ? 'flex-end' : 'space-between';
67
+ }, function (_ref2) {
68
+ var isChew = _ref2.isChew;
69
+ return isChew && (0, _styledComponents.css)(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n background: none;\n "])));
67
70
  }, function (props) {
68
71
  return props.isChew && '25px';
69
72
  });
70
73
  exports.BusinessInfoContainer = BusinessInfoContainer;
71
- var BusinessInfoContent = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
74
+ var BusinessInfoContent = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n width: 100%;\n"])));
72
75
  exports.BusinessInfoContent = BusinessInfoContent;
73
- var SearchWrapper = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n"])));
76
+ var SearchWrapper = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n"])));
74
77
  exports.SearchWrapper = SearchWrapper;
75
- var WrapperSearch = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin: 15px 0px 0px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n box-sizing: border-box;\n z-index: 1002;\n\n .search-bar {\n margin-right: 10px;\n ", "\n input {\n width: 100%;\n\n @media (min-width: 500px) {\n width: 250px;\n }\n }\n }\n\n div:last-child {\n text-align: right;\n\n ", "\n }\n\n #select-input {\n background-color: transparent !important;\n border: none;\n color: #748194 !important;\n\n #list {\n border-radius: 8px;\n }\n }\n &.fixed-search {\n position: fixed;\n top: 0;\n right: 0;\n z-index: 10001;\n width: fit-content;\n margin-top: 0px;\n background-color: ", ";\n padding: 10px;\n }\n\n @media (min-width: 993px) {\n &.fixed-search {\n left: 0;\n width: 100vw;\n z-index: 10000;\n }\n }\n"])), function (props) {
78
+ var WrapperSearch = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n margin: 15px 0px 0px;\n display: flex;\n align-items: center;\n justify-content: flex-end;\n box-sizing: border-box;\n z-index: 1002;\n\n .search-bar {\n margin-right: 10px;\n ", "\n input {\n width: 100%;\n\n @media (min-width: 500px) {\n width: 250px;\n }\n }\n }\n\n div:last-child {\n text-align: right;\n\n ", "\n }\n\n #select-input {\n background-color: transparent !important;\n border: none;\n color: #748194 !important;\n\n #list {\n border-radius: 8px;\n }\n }\n &.fixed-search {\n position: fixed;\n top: 0;\n right: 0;\n z-index: 10001;\n width: fit-content;\n margin-top: 0px;\n background-color: ", ";\n padding: 10px;\n }\n\n @media (min-width: 993px) {\n &.fixed-search {\n left: 0;\n width: 100vw;\n z-index: 10000;\n }\n }\n"])), function (props) {
76
79
  var _props$theme4;
77
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
80
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n margin-left: 10px;\n margin-right: 0;\n "])));
78
81
  }, function (props) {
79
82
  var _props$theme5;
80
- return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n text-align: left;\n "])));
83
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n text-align: left;\n "])));
81
84
  }, function (props) {
82
85
  return props.theme.colors.backgroundPage;
83
86
  });
84
87
  exports.WrapperSearch = WrapperSearch;
85
- var BusinessDetail = _styledComponents.default.div(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n h5 {\n font-size: 14px;\n color: #909BA9;\n margin: 0 5px 0 0;\n font-weight: normal;\n ", "\n\n span {\n margin-right: 5px;\n ", "\n }\n }\n\n .review {\n color: #909BA9;\n margin: 0;\n display: flex;\n align-items: center;\n\n svg {\n font-size: 15px;\n margin-bottom: 1px;\n margin-right: 5px;\n ", "\n }\n\n p {\n font-size: 14px;\n margin: 0px;\n }\n }\n\n .dot {\n color: #909BA9;\n font-size: 12px;\n margin-right: 5px;\n ", "\n }\n\n ", "\n"])), function (props) {
88
+ var BusinessDetail = _styledComponents.default.div(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n\n h5 {\n font-size: 14px;\n color: #909BA9;\n margin: 0 5px 0 0;\n font-weight: normal;\n ", "\n\n span {\n margin-right: 5px;\n ", "\n }\n }\n\n .review {\n color: #909BA9;\n margin: 0;\n display: flex;\n align-items: center;\n\n svg {\n font-size: 15px;\n margin-bottom: 1px;\n margin-right: 5px;\n ", "\n }\n\n p {\n font-size: 14px;\n margin: 0px;\n }\n }\n\n .dot {\n color: #909BA9;\n font-size: 12px;\n margin-right: 5px;\n ", "\n }\n\n ", "\n"])), function (props) {
86
89
  var _props$theme6;
87
- return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
90
+ return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
88
91
  }, function (props) {
89
92
  var _props$theme7;
90
- return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
93
+ return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
91
94
  }, function (props) {
92
95
  var _props$theme8;
93
- return ((_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.rtl) && (0, _styledComponents.css)(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
96
+ return ((_props$theme8 = props.theme) === null || _props$theme8 === void 0 ? void 0 : _props$theme8.rtl) && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
94
97
  }, function (props) {
95
98
  var _props$theme9;
96
- return ((_props$theme9 = props.theme) === null || _props$theme9 === void 0 ? void 0 : _props$theme9.rtl) && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
97
- }, function (_ref2) {
98
- var isSkeleton = _ref2.isSkeleton;
99
- return isSkeleton && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n > span {\n display: flex;\n margin-right: 5px;\n ", "\n }\n "])), function (props) {
99
+ return ((_props$theme9 = props.theme) === null || _props$theme9 === void 0 ? void 0 : _props$theme9.rtl) && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
100
+ }, function (_ref3) {
101
+ var isSkeleton = _ref3.isSkeleton;
102
+ return isSkeleton && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n > span {\n display: flex;\n margin-right: 5px;\n ", "\n }\n "])), function (props) {
100
103
  var _props$theme10;
101
- return ((_props$theme10 = props.theme) === null || _props$theme10 === void 0 ? void 0 : _props$theme10.rtl) && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
104
+ return ((_props$theme10 = props.theme) === null || _props$theme10 === void 0 ? void 0 : _props$theme10.rtl) && (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0px;\n "])));
102
105
  });
103
106
  });
104
107
  exports.BusinessDetail = BusinessDetail;
105
- var BusinessMoreDetail = _styledComponents.default.div(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n ", "\n position: ", ";\n min-width: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n svg {\n font-size: 24px;\n color: ", ";\n }\n"])), function (_ref3) {
106
- var position = _ref3.position;
107
- return position ? (0, _styledComponents.css)(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n width: 100% !important;\n justify-content: flex-end !important;\n top: 0px;\n right: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n top: 30px;\n right: 30px;\n "])));
108
+ var BusinessMoreDetail = _styledComponents.default.div(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n ", "\n position: ", ";\n min-width: 24px;\n width: 24px;\n height: 24px;\n display: flex;\n justify-content: center;\n align-items: center;\n cursor: pointer;\n\n svg {\n font-size: 24px;\n color: ", ";\n }\n"])), function (_ref4) {
109
+ var position = _ref4.position;
110
+ return position ? (0, _styledComponents.css)(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n width: 100% !important;\n justify-content: flex-end !important;\n top: 0px;\n right: 0px;\n "]))) : (0, _styledComponents.css)(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n top: 30px;\n right: 30px;\n "])));
108
111
  }, function (props) {
109
112
  var _props$position;
110
113
  return (_props$position = props.position) !== null && _props$position !== void 0 ? _props$position : 'absolute';
@@ -112,80 +115,80 @@ var BusinessMoreDetail = _styledComponents.default.div(_templateObject28 || (_te
112
115
  return props.position ? 'black' : 'white';
113
116
  });
114
117
  exports.BusinessMoreDetail = BusinessMoreDetail;
115
- var TitleWrapper = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n\n h2 {\n font-size: 24px;\n line-height: 36px;\n margin: 0 0 10px 0;\n font-weight: 600;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n background: ", ";\n &.fixed-name {\n z-index: 10001;\n position: fixed;\n top: 0;\n padding: 10px 0;\n font-size: 18px;\n ", "\n }\n @media (min-width: 768px) {\n font-size: 32px;\n }\n }\n"])), function (_ref4) {
118
+ var TitleWrapper = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n\n h2 {\n font-size: 24px;\n line-height: 36px;\n margin: 0 0 10px 0;\n font-weight: 600;\n width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n background: ", ";\n &.fixed-name {\n z-index: 10001;\n position: fixed;\n top: 0;\n padding: 10px 0;\n font-size: 18px;\n ", "\n }\n @media (min-width: 768px) {\n font-size: 32px;\n }\n }\n"])), function (_ref5) {
116
119
  var _theme$colors;
117
- var theme = _ref4.theme;
120
+ var theme = _ref5.theme;
118
121
  return theme === null || theme === void 0 ? void 0 : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.white;
119
- }, function (_ref5) {
120
- var isCustomLayout = _ref5.isCustomLayout;
121
- return !isCustomLayout ? (0, _styledComponents.css)(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n width: calc(100vw - 200px);\n ", "\n "])), function (props) {
122
+ }, function (_ref6) {
123
+ var isCustomLayout = _ref6.isCustomLayout;
124
+ return !isCustomLayout ? (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n width: calc(100vw - 200px);\n ", "\n "])), function (props) {
122
125
  var _props$theme11;
123
- return (_props$theme11 = props.theme) !== null && _props$theme11 !== void 0 && _props$theme11.rtl ? (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n right: 50px;\n "]))) : (0, _styledComponents.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n left: 50px;\n "])));
124
- }) : (0, _styledComponents.css)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n ", "\n "])), function (props) {
126
+ return (_props$theme11 = props.theme) !== null && _props$theme11 !== void 0 && _props$theme11.rtl ? (0, _styledComponents.css)(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n right: 50px;\n "]))) : (0, _styledComponents.css)(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n left: 50px;\n "])));
127
+ }) : (0, _styledComponents.css)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n ", "\n "])), function (props) {
125
128
  var _props$theme12;
126
- return (_props$theme12 = props.theme) !== null && _props$theme12 !== void 0 && _props$theme12.rtl ? (0, _styledComponents.css)(_templateObject36 || (_templateObject36 = _taggedTemplateLiteral(["\n right: 10px;\n "]))) : (0, _styledComponents.css)(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n left: 10px;\n "])));
129
+ return (_props$theme12 = props.theme) !== null && _props$theme12 !== void 0 && _props$theme12.rtl ? (0, _styledComponents.css)(_templateObject37 || (_templateObject37 = _taggedTemplateLiteral(["\n right: 10px;\n "]))) : (0, _styledComponents.css)(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n left: 10px;\n "])));
127
130
  });
128
131
  });
129
132
  exports.TitleWrapper = TitleWrapper;
130
- var RibbonBox = _styledComponents.default.div(_templateObject38 || (_templateObject38 = _taggedTemplateLiteral(["\n padding: 2px 8px;\n box-sizing: border-box;\n z-index: 10;\n color: ", ";\n font-weight: 400;\n font-size: 10px;\n line-height: 13px;\n background-color: ", ";\n max-width: 200px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n margin-left: 5px;\n margin-bottom: 10px;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
133
+ var RibbonBox = _styledComponents.default.div(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n padding: 2px 8px;\n box-sizing: border-box;\n z-index: 10;\n color: ", ";\n font-weight: 400;\n font-size: 10px;\n line-height: 13px;\n background-color: ", ";\n max-width: 200px;\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n margin-left: 5px;\n margin-bottom: 10px;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
131
134
  return props.theme.colors.colorTextSignForm;
132
135
  }, function (props) {
133
136
  return props.theme.colors.primary;
134
137
  }, function (props) {
135
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject39 || (_templateObject39 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: 5px;\n "])));
136
- }, function (_ref6) {
137
- var bgColor = _ref6.bgColor;
138
- return bgColor && (0, _styledComponents.css)(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
138
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject40 || (_templateObject40 = _taggedTemplateLiteral(["\n margin-left: 0px;\n margin-right: 5px;\n "])));
139
139
  }, function (_ref7) {
140
- var isRoundRect = _ref7.isRoundRect;
141
- return isRoundRect && (0, _styledComponents.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
140
+ var bgColor = _ref7.bgColor;
141
+ return bgColor && (0, _styledComponents.css)(_templateObject41 || (_templateObject41 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
142
142
  }, function (_ref8) {
143
- var isCapsule = _ref8.isCapsule;
144
- return isCapsule && (0, _styledComponents.css)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
143
+ var isRoundRect = _ref8.isRoundRect;
144
+ return isRoundRect && (0, _styledComponents.css)(_templateObject42 || (_templateObject42 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
145
145
  }, function (_ref9) {
146
- var colorText = _ref9.colorText;
147
- return colorText && (0, _styledComponents.css)(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n color: ", ";\n "])), colorText ? 'black' : 'white');
146
+ var isCapsule = _ref9.isCapsule;
147
+ return isCapsule && (0, _styledComponents.css)(_templateObject43 || (_templateObject43 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
148
148
  }, function (_ref10) {
149
- var borderRibbon = _ref10.borderRibbon;
150
- return borderRibbon && (0, _styledComponents.css)(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), borderRibbon ? 'black' : 'white');
149
+ var colorText = _ref10.colorText;
150
+ return colorText && (0, _styledComponents.css)(_templateObject44 || (_templateObject44 = _taggedTemplateLiteral(["\n color: ", ";\n "])), colorText ? 'black' : 'white');
151
+ }, function (_ref11) {
152
+ var borderRibbon = _ref11.borderRibbon;
153
+ return borderRibbon && (0, _styledComponents.css)(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n "])), borderRibbon ? 'black' : 'white');
151
154
  });
152
155
  exports.RibbonBox = RibbonBox;
153
- var SearchIconWrapper = _styledComponents.default.div(_templateObject45 || (_templateObject45 = _taggedTemplateLiteral(["\n cursor: pointer;\n background-color: ", ";\n width: 36px;\n height: 36px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n font-size: 18px;\n }\n"])), function (props) {
156
+ var SearchIconWrapper = _styledComponents.default.div(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["\n cursor: pointer;\n background-color: ", ";\n width: 36px;\n height: 36px;\n border-radius: 50%;\n display: flex;\n align-items: center;\n justify-content: center;\n\n svg {\n font-size: 18px;\n }\n"])), function (props) {
154
157
  return props.theme.colors.gray200;
155
158
  });
156
159
  exports.SearchIconWrapper = SearchIconWrapper;
157
- var SearchComponentContainer = _styledComponents.default.div(_templateObject46 || (_templateObject46 = _taggedTemplateLiteral(["\n position: absolute;\n top: 10px;\n right: 60px;\n color: ", ";\n #select-input {\n color: #FFFFFF !important;\n }\n svg {\n color: #FFFFFF;\n }\n"])), function (_ref11) {
158
- var theme = _ref11.theme;
160
+ var SearchComponentContainer = _styledComponents.default.div(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["\n position: absolute;\n top: 10px;\n right: 60px;\n color: ", ";\n #select-input {\n color: #FFFFFF !important;\n }\n svg {\n color: #FFFFFF;\n }\n"])), function (_ref12) {
161
+ var theme = _ref12.theme;
159
162
  return theme.colors.white;
160
163
  });
161
164
  exports.SearchComponentContainer = SearchComponentContainer;
162
- var SocialList = _styledComponents.default.div(_templateObject47 || (_templateObject47 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-left: -3px;\n ", "\n"])), function (props) {
163
- return props.theme.rtl && (0, _styledComponents.css)(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["\n margin-right: -3px;\n margin-left: 0px;\n "])));
165
+ var SocialList = _styledComponents.default.div(_templateObject48 || (_templateObject48 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin-left: -3px;\n ", "\n"])), function (props) {
166
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["\n margin-right: -3px;\n margin-left: 0px;\n "])));
164
167
  });
165
168
  exports.SocialList = SocialList;
166
- var CategorySelectedContainer = _styledComponents.default.div(_templateObject49 || (_templateObject49 = _taggedTemplateLiteral(["\n display: inline;\n margin-left: 10px;\n color: ", ";\n padding-right: 5px;\n cursor: pointer;\n p{\n margin: 0;\n }\n svg {\n position: relative;\n top: 2px;\n margin-right: 3px;\n width: 14px;\n height: 14px;\n }\n"])), function (_ref12) {
169
+ var CategorySelectedContainer = _styledComponents.default.div(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["\n display: inline;\n margin-left: 10px;\n color: ", ";\n padding-right: 5px;\n cursor: pointer;\n p{\n margin: 0;\n }\n svg {\n position: relative;\n top: 2px;\n margin-right: 3px;\n width: 14px;\n height: 14px;\n }\n"])), function (_ref13) {
167
170
  var _theme$colors2;
168
- var theme = _ref12.theme;
171
+ var theme = _ref13.theme;
169
172
  return theme === null || theme === void 0 ? void 0 : (_theme$colors2 = theme.colors) === null || _theme$colors2 === void 0 ? void 0 : _theme$colors2.primary;
170
173
  });
171
174
  exports.CategorySelectedContainer = CategorySelectedContainer;
172
- var IconWrapper = _styledComponents.default.a(_templateObject50 || (_templateObject50 = _taggedTemplateLiteral(["\n margin: 0px 3px 10px 3px;\n border-radius: 3px;\n border: 0.5px solid ", ";\n width: 27px;\n height: 27px;\n min-width: 27px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s linear;\n\n ", "\n\n svg {\n height: 18px;\n font-size: 18px;\n transition: all 0.2s ease-in;\n color: ", ";\n }\n &:hover {\n background-color: ", ";\n svg {\n transform: scale(1.07);\n }\n }\n"])), function (props) {
175
+ var IconWrapper = _styledComponents.default.a(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["\n margin: 0px 3px 10px 3px;\n border-radius: 3px;\n border: 0.5px solid ", ";\n width: 27px;\n height: 27px;\n min-width: 27px;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n transition: all 0.2s linear;\n\n ", "\n\n svg {\n height: 18px;\n font-size: 18px;\n transition: all 0.2s ease-in;\n color: ", ";\n }\n &:hover {\n background-color: ", ";\n svg {\n transform: scale(1.07);\n }\n }\n"])), function (props) {
173
176
  return props.theme.colors.gray200;
174
- }, function (_ref13) {
175
- var isSkeleton = _ref13.isSkeleton;
176
- return isSkeleton && (0, _styledComponents.css)(_templateObject51 || (_templateObject51 = _taggedTemplateLiteral(["\n border: none;\n "])));
177
+ }, function (_ref14) {
178
+ var isSkeleton = _ref14.isSkeleton;
179
+ return isSkeleton && (0, _styledComponents.css)(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["\n border: none;\n "])));
177
180
  }, function (props) {
178
181
  return props.theme.colors.headingColor;
179
182
  }, function (props) {
180
183
  return props.theme.colors.gray200;
181
184
  });
182
185
  exports.IconWrapper = IconWrapper;
183
- var BusinessInfoWrapper = _styledComponents.default.div(_templateObject52 || (_templateObject52 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n @media (min-width: 768px) {\n flex-direction: column;\n }\n"])));
186
+ var BusinessInfoWrapper = _styledComponents.default.div(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column-reverse;\n @media (min-width: 768px) {\n flex-direction: column;\n }\n"])));
184
187
  exports.BusinessInfoWrapper = BusinessInfoWrapper;
185
- var WrapperFloatingSearch = _styledComponents.default.div(_templateObject53 || (_templateObject53 = _taggedTemplateLiteral(["\n position: absolute;\n color: ", ";\n display: flex;\n background: rgba(0,0,0,0.2);\n top: 80px;\n right: 10px;\n width: 80%;\n border-bottom: 1px solid #FFFFFF;\n #select-input {\n color: #FFFFFF !important;\n background: transparent;\n }\n svg, span {\n color: #FFFFFF !important;\n }\n @media (min-width: 681px){\n top: 23px;\n right: 60px;\n width: 300px;\n input {\n width: 80%;\n }\n }\n"])), function (_ref14) {
186
- var theme = _ref14.theme;
188
+ var WrapperFloatingSearch = _styledComponents.default.div(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["\n position: absolute;\n color: ", ";\n display: flex;\n background: rgba(0,0,0,0.2);\n top: 80px;\n right: 10px;\n width: 80%;\n border-bottom: 1px solid #FFFFFF;\n #select-input {\n color: #FFFFFF !important;\n background: transparent;\n }\n svg, span {\n color: #FFFFFF !important;\n }\n @media (min-width: 681px){\n top: 23px;\n right: 60px;\n width: 300px;\n input {\n width: 80%;\n }\n }\n"])), function (_ref15) {
189
+ var theme = _ref15.theme;
187
190
  return theme.colors.white;
188
191
  });
189
192
  exports.WrapperFloatingSearch = WrapperFloatingSearch;
190
- var BackButton = _styledComponents.default.div(_templateObject54 || (_templateObject54 = _taggedTemplateLiteral(["\n button {\n display: flex;\n flex-direction: row;\n align-items: center;}\n margin-top: 10px;\n svg {\n margin-right: 10px;\n }\n }\n"])));
193
+ var BackButton = _styledComponents.default.div(_templateObject55 || (_templateObject55 = _taggedTemplateLiteral(["\n button {\n display: flex;\n flex-direction: row;\n align-items: center;}\n margin-top: 10px;\n svg {\n margin-right: 10px;\n }\n }\n"])));
191
194
  exports.BackButton = BackButton;
@@ -88,7 +88,7 @@ var BusinessInformationUI = function BusinessInformationUI(props) {
88
88
  apiKey: configs === null || configs === void 0 ? void 0 : (_configs$google_maps_ = configs.google_maps_api_key) === null || _configs$google_maps_ === void 0 ? void 0 : _configs$google_maps_.value,
89
89
  location: businessLocation.location,
90
90
  mapControls: businessLocation.googleMapsControls || business.googleMapsControls
91
- }))), !hideAddress && (business === null || business === void 0 ? void 0 : business.address) && /*#__PURE__*/_react.default.createElement(_styles.BusinessAddress, null, business === null || business === void 0 ? void 0 : business.address), /*#__PURE__*/_react.default.createElement(_styles.Divider, null)), (businessSchedule === null || businessSchedule === void 0 ? void 0 : businessSchedule.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !hideSchedule && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('OPENING_TIME', 'Opening time')), /*#__PURE__*/_react.default.createElement(_styles.ScheduleSection, null, /*#__PURE__*/_react.default.createElement(_styles.ScheduleContainer, null, businessSchedule.map(function (schedule, i) {
91
+ }))), !hideAddress && (business === null || business === void 0 ? void 0 : business.address) && /*#__PURE__*/_react.default.createElement(_styles.BusinessAddress, null, business === null || business === void 0 ? void 0 : business.address), (business === null || business === void 0 ? void 0 : business.address_notes) && /*#__PURE__*/_react.default.createElement(_styles.BusinessAddressNotes, null, business === null || business === void 0 ? void 0 : business.address_notes), /*#__PURE__*/_react.default.createElement(_styles.Divider, null)), (businessSchedule === null || businessSchedule === void 0 ? void 0 : businessSchedule.length) > 0 && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !hideSchedule && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.SectionTitle, null, t('OPENING_TIME', 'Opening time')), /*#__PURE__*/_react.default.createElement(_styles.ScheduleSection, null, /*#__PURE__*/_react.default.createElement(_styles.ScheduleContainer, null, businessSchedule.map(function (schedule, i) {
92
92
  return /*#__PURE__*/_react.default.createElement(_ScheduleAccordion.ScheduleAccordion, {
93
93
  key: i,
94
94
  weekIndex: i,
@@ -4,10 +4,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- exports.SectionTitle = exports.ScheduleSection = exports.ScheduleContainer = exports.ScheduleBlock = exports.ModalIcon = exports.Map = exports.Information = exports.ImageContainer = exports.HeaderImage = exports.Divider = exports.Description = exports.DeliveryInfo = exports.BussinessTitle = exports.BusinessTitle = exports.BusinessMediaContent = exports.BusinessLogo = exports.BusinessInformationContainer = exports.BusinessContent = exports.BusinessAddress = void 0;
7
+ exports.SectionTitle = exports.ScheduleSection = exports.ScheduleContainer = exports.ScheduleBlock = exports.ModalIcon = exports.Map = exports.Information = exports.ImageContainer = exports.HeaderImage = exports.Divider = exports.Description = exports.DeliveryInfo = exports.BussinessTitle = exports.BusinessTitle = exports.BusinessMediaContent = exports.BusinessLogo = exports.BusinessInformationContainer = exports.BusinessContent = exports.BusinessAddressNotes = exports.BusinessAddress = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
10
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25;
10
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26;
11
11
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
12
12
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -56,7 +56,7 @@ var ScheduleBlock = _styledComponents.default.div(_templateObject12 || (_templat
56
56
  return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n margin-left: 20px;\n margin-left: 0;\n "])));
57
57
  });
58
58
  exports.ScheduleBlock = ScheduleBlock;
59
- var DeliveryInfo = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-top: 10px;\n\n div {\n width: 100%;\n &:last-child {\n h5:not(:last-child) {\n margin-top: 0px;\n }\n }\n }\n\n @media (min-width: 769px) {\n flex-wrap: nowrap;\n div {\n width: 50%;\n &:last-child {\n h5:not(:last-child) {\n margin-top: 22.1776px;\n }\n }\n }\n }\n"])));
59
+ var DeliveryInfo = _styledComponents.default.div(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: wrap;\n justify-content: flex-start;\n margin-top: 10px;\n\n h5 {\n font-size: 16px;\n }\n\n div {\n width: 100%;\n &:last-child {\n h5:not(:last-child) {\n margin-top: 0px;\n }\n }\n }\n\n @media (min-width: 769px) {\n flex-wrap: nowrap;\n div {\n width: 50%;\n &:last-child {\n h5:not(:last-child) {\n margin-top: 22.1776px;\n }\n }\n }\n }\n"])));
60
60
  exports.DeliveryInfo = DeliveryInfo;
61
61
  var BusinessMediaContent = _styledComponents.default.div(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n padding-bottom: 20px;\n > div {\n display: flex;\n justify-content: flex-start;\n flex-wrap: wrap;\n\n > img,\n > iframe {\n object-fit: cover;\n border-radius: 10px;\n margin: 10px 10px;\n width: calc(100% - 12px);\n cursor: pointer;\n\n @media (min-width: 681px) {\n width: calc(50% - 20px);\n }\n\n @media (min-width: 993px) {\n width: calc(25% - 20px);\n }\n }\n }\n"])));
62
62
  exports.BusinessMediaContent = BusinessMediaContent;
@@ -85,9 +85,13 @@ var BusinessTitle = _styledComponents.default.h2(_templateObject22 || (_template
85
85
  return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n padding-right: 30px;\n padding-left: 0;\n "])));
86
86
  });
87
87
  exports.BusinessTitle = BusinessTitle;
88
- var BusinessAddress = _styledComponents.default.p(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n font-size: 14px;\n color: ", ";\n margin-bottom: 25px;\n"])), function (props) {
88
+ var BusinessAddress = _styledComponents.default.p(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n font-size: 14px;\n color: ", ";\n margin: 15px 0;\n"])), function (props) {
89
89
  return props.theme.colors.darkTextColor;
90
90
  });
91
91
  exports.BusinessAddress = BusinessAddress;
92
- var Divider = _styledComponents.default.div(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n background: #F8F9FA;\n height: 8px;\n width: calc(100% + 20px);\n margin-left: -10px;\n\n @media (min-width: 768px) {\n width: calc(100% + 40px);\n margin-left: -20px;\n }\n"])));
92
+ var BusinessAddressNotes = _styledComponents.default.p(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n font-size: 14px;\n color: ", ";\n margin: 15px 0 25px 0;\n"])), function (props) {
93
+ return props.theme.colors.darkTextColor;
94
+ });
95
+ exports.BusinessAddressNotes = BusinessAddressNotes;
96
+ var Divider = _styledComponents.default.div(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n background: #F8F9FA;\n height: 8px;\n width: calc(100% + 20px);\n margin-left: -10px;\n\n @media (min-width: 768px) {\n width: calc(100% + 40px);\n margin-left: -20px;\n }\n"])));
93
97
  exports.Divider = Divider;
@@ -61,7 +61,7 @@ var BusinessActions = _styledComponents.default.div(_templateObject14 || (_templ
61
61
  return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n margin-left: 5px;\n margin-right: 0;\n "])));
62
62
  });
63
63
  exports.BusinessActions = BusinessActions;
64
- var PriceContainer = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n button{ \n padding: 10px 30px;\n min-width: 150px;\n width: 50%;\n height: 50px;\n }\n"])));
64
+ var PriceContainer = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n h4 {\n font-size: 16px;\n }\n button{ \n padding: 10px 30px;\n min-width: 150px;\n width: 50%;\n height: 50px;\n }\n"])));
65
65
  exports.PriceContainer = PriceContainer;
66
66
  var BusinessLogoStyled = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n width: 75px;\n height: 75px;\n min-height: 75px;\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: contain;\n object-fit: contain;\n background-position: center;\n border-radius: 10px;\n"])));
67
67
  var BusinessLogo = function BusinessLogo(props) {
@@ -140,9 +140,8 @@ var BusinessProductsCategoriesUI = function BusinessProductsCategoriesUI(props)
140
140
  }
141
141
  };
142
142
  (0, _react.useEffect)(function () {
143
- var _Object$values;
144
- if (typeof useKioskApp === 'undefined') return;
145
- var styleSheet = document.getElementById('styles').sheet;
143
+ var _document$getElementB6, _Object$values;
144
+ var styleSheet = (_document$getElementB6 = document.getElementById('styles')) === null || _document$getElementB6 === void 0 ? void 0 : _document$getElementB6.sheet;
146
145
  if ((_Object$values = Object.values(styleSheet.cssRules)) !== null && _Object$values !== void 0 && _Object$values.length) {
147
146
  styleSheet === null || styleSheet === void 0 ? void 0 : styleSheet.deleteRule(0);
148
147
  }
@@ -48,7 +48,8 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
48
48
  categoriesState = props.categoriesState,
49
49
  onClickCategory = props.onClickCategory,
50
50
  currentCart = props.currentCart,
51
- handleUpdateProducts = props.handleUpdateProducts;
51
+ handleUpdateProducts = props.handleUpdateProducts,
52
+ isCustomerMode = props.isCustomerMode;
52
53
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
53
54
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
54
55
  t = _useLanguage2[1];
@@ -88,7 +89,8 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
88
89
  handleUpdateProducts: handleUpdateProducts,
89
90
  productAddedToCartLength: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products = currentCart.products) === null || _currentCart$products === void 0 ? void 0 : _currentCart$products.reduce(function (productsLength, Cproduct) {
90
91
  return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
91
- }, 0)
92
+ }, 0),
93
+ isCustomerMode: isCustomerMode
92
94
  });
93
95
  }))), !(category !== null && category !== void 0 && category.id) && categories.filter(function (category) {
94
96
  return (category === null || category === void 0 ? void 0 : category.id) === 'featured';
@@ -123,7 +125,8 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
123
125
  isCartOnProductsList: isCartOnProductsList,
124
126
  productAddedToCartLength: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products2 = currentCart.products) === null || _currentCart$products2 === void 0 ? void 0 : _currentCart$products2.reduce(function (productsLength, Cproduct) {
125
127
  return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
126
- }, 0)
128
+ }, 0),
129
+ isCustomerMode: isCustomerMode
127
130
  });
128
131
  }), !(business !== null && business !== void 0 && business.food) && !(categoryState !== null && categoryState !== void 0 && categoryState.loading) && (featProducts === null || featProducts === void 0 ? void 0 : featProducts.length) > 9 && /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
129
132
  useCustomFunctionality: true,
@@ -187,7 +190,8 @@ var BusinessProductsListUI = function BusinessProductsListUI(props) {
187
190
  isCartOnProductsList: isCartOnProductsList,
188
191
  productAddedToCartLength: currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products3 = currentCart.products) === null || _currentCart$products3 === void 0 ? void 0 : _currentCart$products3.reduce(function (productsLength, Cproduct) {
189
192
  return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === (product === null || product === void 0 ? void 0 : product.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
190
- }, 0)
193
+ }, 0),
194
+ isCustomerMode: isCustomerMode
191
195
  });
192
196
  }), !(business !== null && business !== void 0 && business.food) && !(categoryState !== null && categoryState !== void 0 && categoryState.loading) && (products === null || products === void 0 ? void 0 : products.length) > 9 && /*#__PURE__*/_react.default.createElement(_SingleProductCard.SingleProductCard, {
193
197
  useCustomFunctionality: true,
@@ -80,6 +80,7 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
80
80
  handleChangePriceFilterValues = props.handleChangePriceFilterValues,
81
81
  priceFilterValues = props.priceFilterValues,
82
82
  handleUpdateProfessionals = props.handleUpdateProfessionals,
83
+ isCustomerMode = props.isCustomerMode,
83
84
  isCustomLayout = props.isCustomLayout;
84
85
  var business = businessState.business,
85
86
  loading = businessState.loading,
@@ -181,12 +182,12 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
181
182
  };
182
183
  var onProductClick = /*#__PURE__*/function () {
183
184
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(product) {
184
- var _currentCart$products, isProductAddedToCart, productQuantity, addCurrentProduct, updateCurrentProduct, cartData, _business$professiona, _product$category;
185
+ var _currentCart$products, isProductAddedToCart, productQuantity, minimumPerOrder, addCurrentProduct, updateCurrentProduct, cartData, _business$professiona, _product$category;
185
186
  return _regeneratorRuntime().wrap(function _callee$(_context) {
186
187
  while (1) switch (_context.prev = _context.next) {
187
188
  case 0:
188
189
  if (!(product.extras.length === 0 && !product.inventoried && auth && isQuickAddProduct)) {
189
- _context.next = 17;
190
+ _context.next = 18;
190
191
  break;
191
192
  }
192
193
  setProductIdToLoading(product.id);
@@ -194,8 +195,9 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
194
195
  return Cproduct.id === product.id;
195
196
  });
196
197
  productQuantity = isProductAddedToCart === null || isProductAddedToCart === void 0 ? void 0 : isProductAddedToCart.quantity;
198
+ minimumPerOrder = (product === null || product === void 0 ? void 0 : product.minimum_per_order) || 1;
197
199
  addCurrentProduct = _objectSpread(_objectSpread({}, product), {}, {
198
- quantity: 1
200
+ quantity: minimumPerOrder
199
201
  });
200
202
  updateCurrentProduct = {
201
203
  id: product.id,
@@ -206,22 +208,22 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
206
208
  business_id: business.id
207
209
  };
208
210
  if (!isProductAddedToCart) {
209
- _context.next = 12;
211
+ _context.next = 13;
210
212
  break;
211
213
  }
212
- _context.next = 10;
214
+ _context.next = 11;
213
215
  return updateProduct(updateCurrentProduct, cartData, isQuickAddProduct);
214
- case 10:
215
- _context.next = 14;
216
+ case 11:
217
+ _context.next = 15;
216
218
  break;
217
- case 12:
218
- _context.next = 14;
219
+ case 13:
220
+ _context.next = 15;
219
221
  return addProduct(addCurrentProduct, cartData, isQuickAddProduct);
220
- case 14:
222
+ case 15:
221
223
  setProductIdToLoading(null);
222
- _context.next = 21;
224
+ _context.next = 22;
223
225
  break;
224
- case 17:
226
+ case 18:
225
227
  if (!((product === null || product === void 0 ? void 0 : product.type) === 'service' && (business === null || business === void 0 ? void 0 : (_business$professiona = business.professionals) === null || _business$professiona === void 0 ? void 0 : _business$professiona.length) > 0)) {
226
228
  if (site !== null && site !== void 0 && site.product_url_template) {
227
229
  onProductRedirect({
@@ -240,7 +242,7 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
240
242
  setCurProduct(product);
241
243
  setModalIsOpen(true);
242
244
  events.emit('product_clicked', product);
243
- case 21:
245
+ case 22:
244
246
  case "end":
245
247
  return _context.stop();
246
248
  }
@@ -474,7 +476,8 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
474
476
  priceFilterValues: priceFilterValues,
475
477
  handleChangePriceFilterValues: handleChangePriceFilterValues,
476
478
  productToIdLoading: productToIdLoading,
477
- handleUpdateProfessionals: handleUpdateProfessionals
479
+ handleUpdateProfessionals: handleUpdateProfessionals,
480
+ isCustomerMode: isCustomerMode
478
481
  }), isMounted && !loading && business && !Object.keys(business).length && /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
479
482
  content: t('NOT_FOUND_BUSINESS_PRODUCTS', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag7 = theme.defaultLanguages) === null || _theme$defaultLanguag7 === void 0 ? void 0 : _theme$defaultLanguag7.NOT_FOUND_BUSINESS_PRODUCTS) || 'No products to show at this business, please try with other business.'),
480
483
  btnTitle: t('SEARCH_REDIRECT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag8 = theme.defaultLanguages) === null || _theme$defaultLanguag8 === void 0 ? void 0 : _theme$defaultLanguag8.SEARCH_REDIRECT) || 'Go to Businesses'),
@@ -570,6 +573,7 @@ var BusinessProductsListingUI = function BusinessProductsListingUI(props) {
570
573
  productId: curProduct === null || curProduct === void 0 ? void 0 : curProduct.id,
571
574
  handleUpdateProducts: handleUpdateProducts,
572
575
  onSave: handlerProductAction,
576
+ isCustomerMode: isCustomerMode,
573
577
  productAddedToCartLength: (currentCart === null || currentCart === void 0 ? void 0 : (_currentCart$products8 = currentCart.products) === null || _currentCart$products8 === void 0 ? void 0 : _currentCart$products8.reduce(function (productsLength, Cproduct) {
574
578
  var _ref4;
575
579
  return productsLength + ((Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.id) === ((_ref4 = productModal.product || curProduct) === null || _ref4 === void 0 ? void 0 : _ref4.id) ? Cproduct === null || Cproduct === void 0 ? void 0 : Cproduct.quantity : 0);
@@ -62,7 +62,7 @@ var mapConfigs = {
62
62
  }
63
63
  };
64
64
  var CheckoutUI = function CheckoutUI(props) {
65
- var _businessDetails$busi, _businessDetails$busi2, _configs$table_numer_, _businessConfigs$find, _businessConfigs$find2, _configs$cash_wallet, _configs$wallet_enabl, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _validationFields$fie5, _validationFields$fie6, _cart$comment, _cardList$cards, _cartState$cart, _validationFields$fie7, _validationFields$fie8, _validationFields$fie9, _validationFields$fie10, _validationFields$fie11, _validationFields$fie12, _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _instructionsOptions$, _instructionsOptions$2, _theme$checkout, _theme$checkout$compo, _theme$checkout$compo2, _theme$checkout$compo3, _theme$checkout$compo4, _theme$checkout2, _theme$checkout2$comp, _theme$checkout2$comp2, _theme$checkout3, _theme$checkout3$comp, _theme$checkout3$comp2, _theme$checkout4, _theme$checkout4$comp, _theme$checkout4$comp2, _validationFields$fie13, _validationFields$fie14, _validationFields$fie15, _loyaltyPlansState$re, _creditPointPlan$busi, _options$address, _businessDetails$busi3, _theme$images, _theme$images$dummies, _configs$google_maps_, _customerState$user, _customerState$user2, _Object$values, _businessDetails$busi4, _businessDetails$busi5, _businessDetails$busi6, _businessDetails$busi7, _businessDetails$erro, _businessDetails$erro2, _businessDetails$busi8, _businessDetails$busi9, _businessDetails$busi10, _configs$driver_tip_t, _configs$driver_tip_u, _configs$driver_tip_t2, _cartState$cart$spot_, _cartState$cart2, _cart$business3, _cart$products2, _ref, _creditPointPlanOnBus, _configs$driver_tip_t3, _configs$driver_tip_u2, _configs$driver_tip_t4, _validationFields$fie24, _validationFields$fie25, _validationFields$fie26, _validationFields$fie27, _validationFields$fie28, _validationFields$fie29, _customerState$user3;
65
+ var _businessDetails$busi, _businessDetails$busi2, _configs$table_numer_, _businessConfigs$find, _businessConfigs$find2, _configs$cash_wallet, _configs$wallet_enabl, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _validationFields$fie5, _validationFields$fie6, _cart$comment, _cardList$cards, _cartState$cart, _validationFields$fie7, _validationFields$fie8, _validationFields$fie9, _validationFields$fie10, _validationFields$fie11, _validationFields$fie12, _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _instructionsOptions$, _instructionsOptions$2, _theme$checkout, _theme$checkout$compo, _theme$checkout$compo2, _theme$checkout$compo3, _theme$checkout$compo4, _theme$checkout2, _theme$checkout2$comp, _theme$checkout2$comp2, _theme$checkout3, _theme$checkout3$comp, _theme$checkout3$comp2, _theme$checkout4, _theme$checkout4$comp, _theme$checkout4$comp2, _validationFields$fie13, _validationFields$fie14, _validationFields$fie15, _loyaltyPlansState$re, _creditPointPlan$busi, _options$address, _businessDetails$busi3, _theme$images, _theme$images$dummies, _configs$google_maps_, _customerState$user, _customerState$user2, _Object$values, _businessDetails$busi4, _businessDetails$busi5, _businessDetails$busi6, _businessDetails$busi7, _businessDetails$busi8, _businessDetails$busi9, _businessDetails$erro, _businessDetails$erro2, _businessDetails$busi10, _businessDetails$busi11, _businessDetails$busi12, _configs$driver_tip_t, _configs$driver_tip_u, _configs$driver_tip_t2, _cartState$cart$spot_, _cartState$cart2, _cart$business3, _cart$products2, _ref, _creditPointPlanOnBus, _configs$driver_tip_t3, _configs$driver_tip_u2, _configs$driver_tip_t4, _validationFields$fie24, _validationFields$fie25, _validationFields$fie26, _validationFields$fie27, _validationFields$fie28, _validationFields$fie29, _customerState$user3;
66
66
  var cart = props.cart,
67
67
  errors = props.errors,
68
68
  placing = props.placing,
@@ -248,7 +248,7 @@ var CheckoutUI = function CheckoutUI(props) {
248
248
  var _validationFields$fie16, _validationFields$fie17, _validationFields$fie18, _validationFields$fie19, _validationFields$fie20, _validationFields$fie21, _validationFields$fie22, _configs$verification;
249
249
  setUserErrors([]);
250
250
  var errors = [];
251
- var notFields = ['coupon', 'driver_tip', 'mobile_phone', 'address', 'zipcode', 'address_notes'];
251
+ var notFields = ['coupon', 'driver_tip', 'mobile_phone', 'address', 'zipcode', 'address_notes', 'comments'];
252
252
  var userSelected = isCustomerMode ? customerState.user : user;
253
253
  var _requiredFields = [];
254
254
  Object.values(validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie16 = validationFields.fields) === null || _validationFields$fie16 === void 0 ? void 0 : _validationFields$fie16.checkout).map(function (field) {
@@ -444,7 +444,7 @@ var CheckoutUI = function CheckoutUI(props) {
444
444
  style: {
445
445
  marginBottom: '10px'
446
446
  }
447
- }))), !cartState.loading && (businessDetails === null || businessDetails === void 0 ? void 0 : businessDetails.business) && ((_Object$values = Object.values(businessDetails === null || businessDetails === void 0 ? void 0 : businessDetails.business)) === null || _Object$values === void 0 ? void 0 : _Object$values.length) > 0 && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h1", null, t('BUSINESS_DETAILS', 'Business Details')), /*#__PURE__*/_react.default.createElement("div", null, !hideBusinessAddress && /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi4 = businessDetails.business) === null || _businessDetails$busi4 === void 0 ? void 0 : _businessDetails$busi4.address), /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi5 = businessDetails.business) === null || _businessDetails$busi5 === void 0 ? void 0 : _businessDetails$busi5.name), /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi6 = businessDetails.business) === null || _businessDetails$busi6 === void 0 ? void 0 : _businessDetails$busi6.email), /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi7 = businessDetails.business) === null || _businessDetails$busi7 === void 0 ? void 0 : _businessDetails$busi7.cellphone))), (businessDetails === null || businessDetails === void 0 ? void 0 : businessDetails.error) && (businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$erro = businessDetails.error) === null || _businessDetails$erro === void 0 ? void 0 : _businessDetails$erro.length) > 0 && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h1", null, t('BUSINESS_DETAILS', 'Business Details')), /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
447
+ }))), !cartState.loading && (businessDetails === null || businessDetails === void 0 ? void 0 : businessDetails.business) && ((_Object$values = Object.values(businessDetails === null || businessDetails === void 0 ? void 0 : businessDetails.business)) === null || _Object$values === void 0 ? void 0 : _Object$values.length) > 0 && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h1", null, t('BUSINESS_DETAILS', 'Business Details')), /*#__PURE__*/_react.default.createElement("div", null, !hideBusinessAddress && /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi4 = businessDetails.business) === null || _businessDetails$busi4 === void 0 ? void 0 : _businessDetails$busi4.address), /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi5 = businessDetails.business) === null || _businessDetails$busi5 === void 0 ? void 0 : _businessDetails$busi5.name), /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi6 = businessDetails.business) === null || _businessDetails$busi6 === void 0 ? void 0 : _businessDetails$busi6.email), /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi7 = businessDetails.business) === null || _businessDetails$busi7 === void 0 ? void 0 : _businessDetails$busi7.cellphone), (businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi8 = businessDetails.business) === null || _businessDetails$busi8 === void 0 ? void 0 : _businessDetails$busi8.address_notes) && /*#__PURE__*/_react.default.createElement("p", null, businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi9 = businessDetails.business) === null || _businessDetails$busi9 === void 0 ? void 0 : _businessDetails$busi9.address_notes))), (businessDetails === null || businessDetails === void 0 ? void 0 : businessDetails.error) && (businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$erro = businessDetails.error) === null || _businessDetails$erro === void 0 ? void 0 : _businessDetails$erro.length) > 0 && /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement("h1", null, t('BUSINESS_DETAILS', 'Business Details')), /*#__PURE__*/_react.default.createElement(_NotFoundSource.NotFoundSource, {
448
448
  content: (businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$erro2 = businessDetails.error[0]) === null || _businessDetails$erro2 === void 0 ? void 0 : _businessDetails$erro2.message) || (businessDetails === null || businessDetails === void 0 ? void 0 : businessDetails.error[0])
449
449
  }))), /*#__PURE__*/_react.default.createElement(_styles.CheckOutDivider, null)) : /*#__PURE__*/_react.default.createElement(_styles.WrapperActionsInput, null, /*#__PURE__*/_react.default.createElement("h1", null, t('WHATS_YOUR_NAME', "What's your name?")), /*#__PURE__*/_react.default.createElement(_Inputs.Input, {
450
450
  placeholder: t('WRITE_YOUR_NAME', 'Write your name'),
@@ -479,9 +479,9 @@ var CheckoutUI = function CheckoutUI(props) {
479
479
  cart: cart,
480
480
  useKioskApp: useKioskApp,
481
481
  isDisabled: (cart === null || cart === void 0 ? void 0 : cart.status) === 2,
482
- businessId: !isGiftCardCart ? businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi8 = businessDetails.business) === null || _businessDetails$busi8 === void 0 ? void 0 : _businessDetails$busi8.id : -1,
482
+ businessId: !isGiftCardCart ? businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi10 = businessDetails.business) === null || _businessDetails$busi10 === void 0 ? void 0 : _businessDetails$busi10.id : -1,
483
483
  isLoading: !isGiftCardCart ? businessDetails.loading : false,
484
- paymethods: businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi9 = businessDetails.business) === null || _businessDetails$busi9 === void 0 ? void 0 : _businessDetails$busi9.paymethods,
484
+ paymethods: businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi11 = businessDetails.business) === null || _businessDetails$busi11 === void 0 ? void 0 : _businessDetails$busi11.paymethods,
485
485
  onPaymentChange: handlePaymethodChange,
486
486
  errorCash: errorCash,
487
487
  setErrorCash: setErrorCash,
@@ -494,7 +494,7 @@ var CheckoutUI = function CheckoutUI(props) {
494
494
  })), isWalletEnabled && !(businessDetails !== null && businessDetails !== void 0 && businessDetails.loading) && /*#__PURE__*/_react.default.createElement(_styles.WalletPaymentOptionContainer, null, /*#__PURE__*/_react.default.createElement(_PaymentOptionWallet.PaymentOptionWallet, {
495
495
  cart: cart,
496
496
  loyaltyPlansState: loyaltyPlansState,
497
- businessConfigs: businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi10 = businessDetails.business) === null || _businessDetails$busi10 === void 0 ? void 0 : _businessDetails$busi10.configs
497
+ businessConfigs: businessDetails === null || businessDetails === void 0 ? void 0 : (_businessDetails$busi12 = businessDetails.business) === null || _businessDetails$busi12 === void 0 ? void 0 : _businessDetails$busi12.configs
498
498
  })))), /*#__PURE__*/_react.default.createElement(_styles.WrapperRightContainer, null, !!(!isMultiDriverTips && driverTipsField) && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.DriverTipContainer, null, /*#__PURE__*/_react.default.createElement("h1", null, t('DRIVER_TIPS', 'Driver Tips')), /*#__PURE__*/_react.default.createElement("p", null, t('100%_OF_THE_TIP_YOUR_DRIVER', '100% of the tip goes to your driver')), /*#__PURE__*/_react.default.createElement(_DriverTips.DriverTips, {
499
499
  businessId: cart === null || cart === void 0 ? void 0 : cart.business_id,
500
500
  driverTipsOptions: driverTipsOptions,
@@ -9,6 +9,7 @@ var _styles = require("./styles");
9
9
  var _styles2 = require("../OrdersOption/styles");
10
10
  var _SingleOrderCard = require("../SingleOrderCard");
11
11
  var _Pagination = require("../Pagination");
12
+ var _AutoScroll = require("../AutoScroll");
12
13
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
14
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
15
  var HorizontalOrdersLayout = function HorizontalOrdersLayout(props) {
@@ -36,13 +37,15 @@ var HorizontalOrdersLayout = function HorizontalOrdersLayout(props) {
36
37
  activeOrders: true,
37
38
  ordersLength: (orders === null || orders === void 0 ? void 0 : orders.length) <= 1,
38
39
  isBusinessesPage: isBusinessesPage
39
- }, /*#__PURE__*/_react.default.createElement(_styles.CardWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.CardsContainer, null, orders.length > 0 && ordersToShow.map(function (order, i) {
40
+ }, /*#__PURE__*/_react.default.createElement(_styles.CardWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.CardsContainerWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.CardsContainer, null, /*#__PURE__*/_react.default.createElement(_AutoScroll.AutoScroll, {
41
+ scrollId: "orderScroll"
42
+ }, orders.length > 0 && ordersToShow.map(function (order, i) {
40
43
  var _order$id;
41
44
  return /*#__PURE__*/_react.default.createElement(_SingleOrderCard.SingleOrderCard, _extends({}, props, {
42
45
  key: order.id || ((_order$id = order.id) === null || _order$id === void 0 ? void 0 : _order$id[0]) || i,
43
46
  order: order
44
47
  }));
45
- })), orders.length > 0 && ordersToShow.length > 0 && /*#__PURE__*/_react.default.createElement(_Pagination.Pagination, {
48
+ })))), orders.length > 0 && ordersToShow.length > 0 && /*#__PURE__*/_react.default.createElement(_Pagination.Pagination, {
46
49
  currentPage: pagination.currentPage,
47
50
  totalPages: Math.ceil(pagination === null || pagination === void 0 ? void 0 : pagination.totalPages),
48
51
  handleChangePage: handleChangePage