ordering-ui-external 1.7.2 → 1.8.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 (171) hide show
  1. package/_bundles/{0.ordering-ui.f9c3deec77a8e21645ed.js → 0.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  2. package/_bundles/{1.ordering-ui.f9c3deec77a8e21645ed.js → 1.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  3. package/_bundles/2.ordering-ui.a7de4e953ec3c5879d9b.js +1 -0
  4. package/_bundles/{4.ordering-ui.f9c3deec77a8e21645ed.js → 4.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  5. package/_bundles/{5.ordering-ui.f9c3deec77a8e21645ed.js → 5.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  6. package/_bundles/{6.ordering-ui.f9c3deec77a8e21645ed.js → 6.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  7. package/_bundles/{7.ordering-ui.f9c3deec77a8e21645ed.js → 7.ordering-ui.a7de4e953ec3c5879d9b.js} +2 -2
  8. package/_bundles/{7.ordering-ui.f9c3deec77a8e21645ed.js.LICENSE.txt → 7.ordering-ui.a7de4e953ec3c5879d9b.js.LICENSE.txt} +0 -0
  9. package/_bundles/{8.ordering-ui.f9c3deec77a8e21645ed.js → 8.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  10. package/_bundles/{9.ordering-ui.f9c3deec77a8e21645ed.js → 9.ordering-ui.a7de4e953ec3c5879d9b.js} +1 -1
  11. package/_bundles/ordering-ui.a7de4e953ec3c5879d9b.js +2 -0
  12. package/_bundles/{ordering-ui.f9c3deec77a8e21645ed.js.LICENSE.txt → ordering-ui.a7de4e953ec3c5879d9b.js.LICENSE.txt} +0 -0
  13. package/_modules/components/BusinessInformation/index.js +4 -8
  14. package/_modules/components/OrdersOption/styles.js +4 -2
  15. package/_modules/components/Pagination/index.js +100 -0
  16. package/_modules/components/Pagination/styles.js +56 -0
  17. package/_modules/components/SmartAppBanner/index.js +2 -1
  18. package/_modules/components/VerticalOrdersLayout/SingleOrderCard/index.js +92 -0
  19. package/_modules/components/VerticalOrdersLayout/index.js +115 -41
  20. package/_modules/components/VerticalOrdersLayout/styles.js +25 -11
  21. package/_modules/index.js +7 -0
  22. package/_modules/themes/five/src/components/AccordionDropdown/index.js +15 -4
  23. package/_modules/themes/five/src/components/AccordionDropdown/styles.js +14 -4
  24. package/_modules/themes/five/src/components/AddressList/styles.js +2 -2
  25. package/_modules/themes/five/src/components/BusinessBasicInformation/index.js +17 -10
  26. package/_modules/themes/five/src/components/BusinessBasicInformation/styles.js +48 -42
  27. package/_modules/themes/five/src/components/BusinessListingSearch/index.js +5 -1
  28. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +0 -3
  29. package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +22 -13
  30. package/_modules/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +15 -7
  31. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +3 -0
  32. package/_modules/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
  33. package/_modules/themes/five/src/components/BusinessesListing/index.js +6 -13
  34. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +66 -40
  35. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +13 -7
  36. package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +16 -7
  37. package/_modules/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +21 -15
  38. package/_modules/themes/five/src/components/CardForm/index.js +17 -3
  39. package/_modules/themes/five/src/components/CardForm/styles.js +14 -6
  40. package/_modules/themes/five/src/components/CartPopover/index.js +6 -4
  41. package/_modules/themes/five/src/components/CartPopover/styles.js +4 -2
  42. package/_modules/themes/five/src/components/Footer/index.js +16 -6
  43. package/_modules/themes/five/src/components/Footer/styles.js +11 -9
  44. package/_modules/themes/five/src/components/Header/index.js +14 -9
  45. package/_modules/themes/five/src/components/Header/styles.js +64 -44
  46. package/_modules/themes/five/src/components/HeaderOption/index.js +9 -2
  47. package/_modules/themes/five/src/components/HeaderOption/styles.js +8 -2
  48. package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +9 -3
  49. package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +5 -3
  50. package/_modules/themes/five/src/components/HorizontalOrdersLayout/index.js +9 -19
  51. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +23 -19
  52. package/_modules/themes/five/src/components/InputPhoneNumber/index.js +1 -0
  53. package/_modules/themes/five/src/components/LoginForm/index.js +3 -2
  54. package/_modules/themes/five/src/components/MyOrders/index.js +24 -56
  55. package/_modules/themes/five/src/components/MyOrders/styles.js +1 -1
  56. package/_modules/themes/five/src/components/OrderDetails/index.js +5 -2
  57. package/_modules/themes/five/src/components/OrderDetails/styles.js +24 -24
  58. package/_modules/themes/five/src/components/OrderItAgain/styles.js +6 -2
  59. package/_modules/themes/five/src/components/OrdersOption/index.js +18 -18
  60. package/_modules/themes/five/src/components/OrdersOption/styles.js +2 -2
  61. package/_modules/themes/five/src/components/PageBanner/index.js +50 -0
  62. package/_modules/themes/five/src/components/PageBanner/styles.js +18 -0
  63. package/_modules/themes/five/src/components/Pagination/index.js +99 -0
  64. package/_modules/themes/five/src/components/Pagination/styles.js +56 -0
  65. package/_modules/themes/five/src/components/ProductForm/index.js +39 -23
  66. package/_modules/themes/five/src/components/ProductForm/styles.js +74 -38
  67. package/_modules/themes/five/src/components/Promotions/index.js +7 -2
  68. package/_modules/themes/five/src/components/Promotions/styles.js +16 -14
  69. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +31 -10
  70. package/_modules/themes/five/src/components/RenderProductsLayout/styles.js +19 -11
  71. package/_modules/themes/five/src/components/SidebarMenu/styles.js +1 -1
  72. package/_modules/themes/five/src/components/SignUpForm/index.js +3 -2
  73. package/_modules/themes/five/src/components/SingleOrderCard/index.js +7 -17
  74. package/_modules/themes/five/src/components/SingleProductCard/index.js +7 -298
  75. package/_modules/themes/five/src/components/SingleProductCard/layouts/original/index.js +310 -0
  76. package/_modules/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +36 -32
  77. package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +305 -0
  78. package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +143 -0
  79. package/_modules/themes/five/src/components/StripeElementsForm/index.js +1 -0
  80. package/_modules/themes/five/src/components/UserPopover/index.js +3 -1
  81. package/_modules/themes/five/src/components/UserPopover/styles.js +4 -3
  82. package/_modules/themes/five/src/components/UserProfileForm/styles.js +5 -8
  83. package/_modules/themes/six/src/components/BusinessController/index.js +81 -15
  84. package/_modules/themes/six/src/components/BusinessController/styles.js +58 -30
  85. package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +5 -3
  86. package/_modules/themes/six/src/components/BusinessesMap/styles.js +1 -1
  87. package/_modules/themes/six/src/components/SearchBar/index.js +19 -10
  88. package/_modules/themes/six/src/components/SearchBar/styles.js +44 -16
  89. package/index-template.js +3 -1
  90. package/package.json +2 -2
  91. package/src/components/BusinessInformation/index.js +3 -8
  92. package/src/components/OrdersOption/styles.js +5 -5
  93. package/src/components/Pagination/index.js +107 -0
  94. package/src/components/Pagination/styles.js +106 -0
  95. package/src/components/SmartAppBanner/index.js +1 -0
  96. package/src/components/VerticalOrdersLayout/SingleOrderCard/index.js +89 -0
  97. package/src/components/VerticalOrdersLayout/index.js +86 -48
  98. package/src/components/VerticalOrdersLayout/styles.js +66 -22
  99. package/src/index.js +2 -0
  100. package/src/themes/five/src/components/AccordionDropdown/index.js +19 -6
  101. package/src/themes/five/src/components/AccordionDropdown/styles.js +25 -1
  102. package/src/themes/five/src/components/AddressList/styles.js +2 -0
  103. package/src/themes/five/src/components/BusinessBasicInformation/index.js +21 -11
  104. package/src/themes/five/src/components/BusinessBasicInformation/styles.js +9 -3
  105. package/src/themes/five/src/components/BusinessListingSearch/index.js +1 -0
  106. package/src/themes/five/src/components/BusinessProductsCategories/index.js +0 -2
  107. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/index.js +23 -12
  108. package/src/themes/five/src/components/BusinessProductsCategories/layouts/groceries/styles.js +12 -4
  109. package/src/themes/five/src/components/BusinessProductsListing/index.js +3 -0
  110. package/src/themes/five/src/components/BusinessTypeFilter/index.js +15 -5
  111. package/src/themes/five/src/components/BusinessesListing/index.js +5 -5
  112. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +54 -25
  113. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/styles.js +40 -26
  114. package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/index.js +19 -6
  115. package/src/themes/five/src/components/BusinessesListing/layouts/StarbucksBusinessesListing/styles.js +38 -3
  116. package/src/themes/five/src/components/CardForm/index.js +49 -8
  117. package/src/themes/five/src/components/CardForm/styles.js +20 -2
  118. package/src/themes/five/src/components/CartPopover/index.js +2 -1
  119. package/src/themes/five/src/components/CartPopover/styles.js +3 -3
  120. package/src/themes/five/src/components/Footer/index.js +15 -6
  121. package/src/themes/five/src/components/Footer/styles.js +15 -14
  122. package/src/themes/five/src/components/Header/index.js +6 -4
  123. package/src/themes/five/src/components/Header/styles.js +14 -11
  124. package/src/themes/five/src/components/HeaderOption/index.js +13 -10
  125. package/src/themes/five/src/components/HeaderOption/styles.js +2 -2
  126. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +22 -10
  127. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/styles.js +8 -0
  128. package/src/themes/five/src/components/HorizontalOrdersLayout/index.js +24 -36
  129. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +12 -1
  130. package/src/themes/five/src/components/InputPhoneNumber/index.js +1 -0
  131. package/src/themes/five/src/components/LoginForm/index.js +2 -1
  132. package/src/themes/five/src/components/MyOrders/index.js +20 -62
  133. package/src/themes/five/src/components/MyOrders/styles.js +1 -2
  134. package/src/themes/five/src/components/OrderDetails/index.js +9 -0
  135. package/src/themes/five/src/components/OrderDetails/styles.js +0 -55
  136. package/src/themes/five/src/components/OrderItAgain/styles.js +18 -0
  137. package/src/themes/five/src/components/OrdersOption/index.js +10 -16
  138. package/src/themes/five/src/components/OrdersOption/styles.js +1 -3
  139. package/src/themes/five/src/components/PageBanner/index.js +58 -0
  140. package/src/themes/five/src/components/PageBanner/styles.js +58 -0
  141. package/src/themes/five/src/components/Pagination/index.js +106 -0
  142. package/src/themes/five/src/components/Pagination/styles.js +106 -0
  143. package/src/themes/five/src/components/ProductForm/index.js +108 -84
  144. package/src/themes/five/src/components/ProductForm/styles.js +94 -12
  145. package/src/themes/five/src/components/Promotions/index.js +22 -16
  146. package/src/themes/five/src/components/Promotions/styles.js +10 -4
  147. package/src/themes/five/src/components/RenderProductsLayout/index.js +94 -66
  148. package/src/themes/five/src/components/RenderProductsLayout/styles.js +23 -22
  149. package/src/themes/five/src/components/SidebarMenu/styles.js +1 -1
  150. package/src/themes/five/src/components/SignUpForm/index.js +2 -1
  151. package/src/themes/five/src/components/SingleOrderCard/index.js +0 -21
  152. package/src/themes/five/src/components/SingleProductCard/index.js +7 -300
  153. package/src/themes/five/src/components/SingleProductCard/layouts/original/index.js +312 -0
  154. package/src/themes/five/src/components/SingleProductCard/{styles.js → layouts/original/styles.js} +9 -5
  155. package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +313 -0
  156. package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/styles.js +353 -0
  157. package/src/themes/five/src/components/StripeElementsForm/index.js +1 -0
  158. package/src/themes/five/src/components/UserPopover/index.js +2 -0
  159. package/src/themes/five/src/components/UserPopover/styles.js +2 -2
  160. package/src/themes/five/src/components/UserProfileForm/styles.js +3 -11
  161. package/src/themes/six/src/components/BusinessController/index.js +163 -62
  162. package/src/themes/six/src/components/BusinessController/styles.js +53 -14
  163. package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -1
  164. package/src/themes/six/src/components/BusinessesMap/styles.js +1 -1
  165. package/src/themes/six/src/components/SearchBar/index.js +27 -8
  166. package/src/themes/six/src/components/SearchBar/styles.js +33 -2
  167. package/template/app.js +364 -364
  168. package/template/assets/images/chew_logo.png +0 -0
  169. package/template/components/HelmetTags/index.js +5 -4
  170. package/_bundles/2.ordering-ui.f9c3deec77a8e21645ed.js +0 -1
  171. package/_bundles/ordering-ui.f9c3deec77a8e21645ed.js +0 -2
@@ -0,0 +1,305 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.SingleProductCard = void 0;
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactLoadingSkeleton = _interopRequireDefault(require("react-loading-skeleton"));
10
+ var _orderingComponentsExternal = require("ordering-components-external");
11
+ var _utils = require("../../../../../../../utils");
12
+ var _useIntersectionObserver = require("../../../../../../../hooks/useIntersectionObserver");
13
+ var _reactBootstrapIcons = require("react-bootstrap-icons");
14
+ var _styledComponents = require("styled-components");
15
+ var _Modal = require("../../../Modal");
16
+ var _LoginForm = require("../../../LoginForm");
17
+ var _SignUpForm = require("../../../SignUpForm");
18
+ var _ForgotPasswordForm = require("../../../ForgotPasswordForm");
19
+ var _Confirm = require("../../../Confirm");
20
+ var _MdAddCircleOutline = _interopRequireDefault(require("@meronex/icons/ios/MdAddCircleOutline"));
21
+ var _styles = require("./styles");
22
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
+ 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); }
24
+ 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; }
25
+ function ownKeys(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; }
26
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
27
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
28
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
29
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
30
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
31
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
32
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
33
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
34
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
35
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
36
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
37
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
38
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0) { ; } } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
39
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
40
+ var SingleProductCardUI = function SingleProductCardUI(props) {
41
+ var _theme$business_view$, _theme$business_view, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4, _theme$business_view$5, _theme$images, _theme$images$dummies, _theme$images2, _theme$images2$dummie, _product$ribbon, _product$ribbon2, _product$ribbon3, _product$ribbon4, _product$ribbon5, _theme$images3, _theme$images3$dummie, _product$ribbon6, _theme$defaultLanguag, _theme$defaultLanguag2, _theme$defaultLanguag3, _theme$defaultLanguag4;
42
+ var product = props.product,
43
+ isSoldOut = props.isSoldOut,
44
+ isSkeleton = props.isSkeleton,
45
+ onProductClick = props.onProductClick,
46
+ isCartOnProductsList = props.isCartOnProductsList,
47
+ useCustomFunctionality = props.useCustomFunctionality,
48
+ onCustomClick = props.onCustomClick,
49
+ customText = props.customText,
50
+ customStyle = props.customStyle,
51
+ useKioskApp = props.useKioskApp,
52
+ productAddedToCartLength = props.productAddedToCartLength,
53
+ handleFavoriteProduct = props.handleFavoriteProduct,
54
+ isFavorite = props.isFavorite,
55
+ isPreviously = props.isPreviously;
56
+ var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
57
+ _useLanguage2 = _slicedToArray(_useLanguage, 2),
58
+ t = _useLanguage2[1];
59
+ var _useIntersectionObser = (0, _useIntersectionObserver.useIntersectionObserver)(),
60
+ _useIntersectionObser2 = _slicedToArray(_useIntersectionObser, 2),
61
+ $element = _useIntersectionObser2[0],
62
+ isObserved = _useIntersectionObser2[1];
63
+ var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
64
+ _useConfig2 = _slicedToArray(_useConfig, 1),
65
+ stateConfig = _useConfig2[0];
66
+ var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
67
+ _useUtils2 = _slicedToArray(_useUtils, 1),
68
+ _useUtils2$ = _useUtils2[0],
69
+ parsePrice = _useUtils2$.parsePrice,
70
+ optimizeImage = _useUtils2$.optimizeImage,
71
+ parseDate = _useUtils2$.parseDate;
72
+ var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
73
+ _useOrder2 = _slicedToArray(_useOrder, 1),
74
+ orderState = _useOrder2[0];
75
+ var _useSession = (0, _orderingComponentsExternal.useSession)(),
76
+ _useSession2 = _slicedToArray(_useSession, 2),
77
+ auth = _useSession2[0].auth,
78
+ login = _useSession2[1].login;
79
+ var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
80
+ _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
81
+ orderingTheme = _useOrderingTheme2[0];
82
+ var theme = (0, _styledComponents.useTheme)();
83
+ var favoriteRef = (0, _react.useRef)(null);
84
+ var _useState = (0, _react.useState)(false),
85
+ _useState2 = _slicedToArray(_useState, 2),
86
+ isModalOpen = _useState2[0],
87
+ setIsModalOpen = _useState2[1];
88
+ var _useState3 = (0, _react.useState)(null),
89
+ _useState4 = _slicedToArray(_useState3, 2),
90
+ modalPageToShow = _useState4[0],
91
+ setModalPageToShow = _useState4[1];
92
+ var _useState5 = (0, _react.useState)({
93
+ open: false,
94
+ content: []
95
+ }),
96
+ _useState6 = _slicedToArray(_useState5, 2),
97
+ alertState = _useState6[0],
98
+ setAlertState = _useState6[1];
99
+ var editMode = typeof (product === null || product === void 0 ? void 0 : product.code) !== 'undefined';
100
+ var isObservedValidation = isObserved || useKioskApp;
101
+ var removeToBalance = editMode ? product === null || product === void 0 ? void 0 : product.quantity : 0;
102
+ var cartProducts = Object.values(orderState.carts).reduce(function (products, _cart) {
103
+ return [].concat(_toConsumableArray(products), _toConsumableArray(_cart === null || _cart === void 0 ? void 0 : _cart.products));
104
+ }, []);
105
+ var productBalance = cartProducts.reduce(function (sum, _product) {
106
+ return sum + (_product.id === (product === null || product === void 0 ? void 0 : product.id) ? _product.quantity : 0);
107
+ }, 0);
108
+ var totalBalance = (productBalance || 0) - removeToBalance;
109
+ var maxCartProductConfig = (stateConfig.configs.max_product_amount ? parseInt(stateConfig.configs.max_product_amount) : 100) - totalBalance;
110
+ var hideAddButton = (_theme$business_view$ = theme === null || theme === void 0 ? void 0 : (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 ? void 0 : (_theme$business_view$2 = _theme$business_view.components) === null || _theme$business_view$2 === void 0 ? void 0 : (_theme$business_view$3 = _theme$business_view$2.products) === null || _theme$business_view$3 === void 0 ? void 0 : (_theme$business_view$4 = _theme$business_view$3.components) === null || _theme$business_view$4 === void 0 ? void 0 : (_theme$business_view$5 = _theme$business_view$4.add_to_cart_button) === null || _theme$business_view$5 === void 0 ? void 0 : _theme$business_view$5.hidden) !== null && _theme$business_view$ !== void 0 ? _theme$business_view$ : true;
111
+ // const productsRows = theme?.layouts?.business_view?.components?.products?.components?.layout?.rows
112
+
113
+ var maxCartProductInventory = (product !== null && product !== void 0 && product.inventoried ? product === null || product === void 0 ? void 0 : product.quantity : undefined) - totalBalance;
114
+ maxCartProductInventory = !isNaN(maxCartProductInventory) ? maxCartProductInventory : maxCartProductConfig;
115
+ var maxProductQuantity = Math.min(maxCartProductConfig, maxCartProductInventory);
116
+ var handleClickProduct = function handleClickProduct(e) {
117
+ var _favoriteRef$current, _product$business;
118
+ if (favoriteRef !== null && favoriteRef !== void 0 && (_favoriteRef$current = favoriteRef.current) !== null && _favoriteRef$current !== void 0 && _favoriteRef$current.contains(e.target)) return;
119
+ if (productAddedToCartLength && product !== null && product !== void 0 && product.maximum_per_order && productAddedToCartLength >= (product === null || product === void 0 ? void 0 : product.maximum_per_order)) {
120
+ setAlertState({
121
+ open: true,
122
+ content: [t('PRODUCT_ON_MAXIMUM_ORDER', 'The product is on maximum order')]
123
+ });
124
+ return;
125
+ }
126
+ if (isFavorite) {
127
+ onProductClick && onProductClick();
128
+ return;
129
+ }
130
+ !isSkeleton && !useCustomFunctionality && onProductClick && onProductClick(product, product === null || product === void 0 ? void 0 : (_product$business = product.business) === null || _product$business === void 0 ? void 0 : _product$business.slug) || useCustomFunctionality && onCustomClick && onCustomClick();
131
+ };
132
+ var closeAlert = function closeAlert() {
133
+ setAlertState({
134
+ open: false,
135
+ content: []
136
+ });
137
+ };
138
+ var handleChangeFavorite = function handleChangeFavorite() {
139
+ if (auth) {
140
+ handleFavoriteProduct && handleFavoriteProduct(!(product !== null && product !== void 0 && product.favorite));
141
+ } else {
142
+ setModalPageToShow('login');
143
+ setIsModalOpen(true);
144
+ }
145
+ };
146
+ var closeAuthModal = function closeAuthModal() {
147
+ setIsModalOpen(false);
148
+ setModalPageToShow(null);
149
+ };
150
+ var handleSuccessLogin = function handleSuccessLogin(user) {
151
+ if (user) {
152
+ closeAuthModal();
153
+ }
154
+ };
155
+ var handleCustomModalClick = function handleCustomModalClick(e, _ref) {
156
+ var page = _ref.page;
157
+ e.preventDefault();
158
+ setModalPageToShow(page);
159
+ };
160
+ var handleSuccessSignup = function handleSuccessSignup(user) {
161
+ var _user$session;
162
+ login({
163
+ user: user,
164
+ token: user === null || user === void 0 ? void 0 : (_user$session = user.session) === null || _user$session === void 0 ? void 0 : _user$session.access_token
165
+ });
166
+ };
167
+ return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.CardContainer, {
168
+ ref: $element,
169
+ soldOut: isSoldOut || maxProductQuantity <= 0,
170
+ onClick: handleClickProduct,
171
+ isCartOnProductsList: isCartOnProductsList,
172
+ style: useCustomFunctionality && customStyle,
173
+ className: "product-card",
174
+ isShowAddButt: !useCustomFunctionality && !hideAddButton && !isSkeleton
175
+ // productsRows={productsRows}
176
+ }, isObservedValidation ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", null, !useCustomFunctionality && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_styles.CardInfo, {
177
+ soldOut: isSoldOut || maxProductQuantity <= 0,
178
+ isBgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 ? void 0 : (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$dummies = _theme$images.dummies) === null || _theme$images$dummies === void 0 ? void 0 : _theme$images$dummies.product), 'h_86,c_limit'),
179
+ oneLine: isPreviously
180
+ }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, !isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.WrapLogo, {
181
+ isBgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 ? void 0 : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$dummie = _theme$images2.dummies) === null || _theme$images2$dummie === void 0 ? void 0 : _theme$images2$dummie.product), 'h_86,c_limit')
182
+ }, !isSkeleton && productAddedToCartLength > 0 && /*#__PURE__*/_react.default.createElement(_styles.QuantityContainer, null, /*#__PURE__*/_react.default.createElement("span", null, productAddedToCartLength)), (product === null || product === void 0 ? void 0 : (_product$ribbon = product.ribbon) === null || _product$ribbon === void 0 ? void 0 : _product$ribbon.enabled) && /*#__PURE__*/_react.default.createElement(_styles.RibbonBox, {
183
+ bgColor: product === null || product === void 0 ? void 0 : (_product$ribbon2 = product.ribbon) === null || _product$ribbon2 === void 0 ? void 0 : _product$ribbon2.color,
184
+ isRoundRect: (product === null || product === void 0 ? void 0 : (_product$ribbon3 = product.ribbon) === null || _product$ribbon3 === void 0 ? void 0 : _product$ribbon3.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.rectangleRound),
185
+ isCapsule: (product === null || product === void 0 ? void 0 : (_product$ribbon4 = product.ribbon) === null || _product$ribbon4 === void 0 ? void 0 : _product$ribbon4.shape) === (_utils.shape === null || _utils.shape === void 0 ? void 0 : _utils.shape.capsuleShape)
186
+ }, product === null || product === void 0 ? void 0 : (_product$ribbon5 = product.ribbon) === null || _product$ribbon5 === void 0 ? void 0 : _product$ribbon5.text), /*#__PURE__*/_react.default.createElement(_styles.CardLogo, {
187
+ className: "image",
188
+ soldOut: isSoldOut || maxProductQuantity <= 0,
189
+ bgimage: optimizeImage((product === null || product === void 0 ? void 0 : product.images) || (theme === null || theme === void 0 ? void 0 : (_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$dummie = _theme$images3.dummies) === null || _theme$images3$dummie === void 0 ? void 0 : _theme$images3$dummie.product), 'h_86,c_limit')
190
+ })) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
191
+ height: 75,
192
+ width: 75
193
+ }), !isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.PriceWrapper, null, /*#__PURE__*/_react.default.createElement("span", null, product !== null && product !== void 0 && product.price ? parsePrice(product === null || product === void 0 ? void 0 : product.price) : ''), !(isSoldOut || maxProductQuantity <= 0) && /*#__PURE__*/_react.default.createElement("span", {
194
+ className: "off-price"
195
+ }, product !== null && product !== void 0 && product.offer_price && product !== null && product !== void 0 && product.in_offer ? parsePrice(product === null || product === void 0 ? void 0 : product.offer_price) : '')) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
196
+ width: 100
197
+ }), !isSkeleton ? /*#__PURE__*/_react.default.createElement("h1", null, product === null || product === void 0 ? void 0 : product.name) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
198
+ width: 100
199
+ }), !useKioskApp && !isPreviously && (!isSkeleton ? /*#__PURE__*/_react.default.createElement("span", {
200
+ onClick: function onClick() {
201
+ return handleChangeFavorite();
202
+ },
203
+ ref: favoriteRef
204
+ }, product !== null && product !== void 0 && product.favorite ? /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.HeartFill, null) : /*#__PURE__*/_react.default.createElement(_reactBootstrapIcons.Heart, null)) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
205
+ width: 16,
206
+ height: 16
207
+ }))), isPreviously && (!isSkeleton ? /*#__PURE__*/_react.default.createElement(_styles.LastOrder, null, t('LAST_ORDERED_ON', 'Last ordered on'), " ", parseDate(product === null || product === void 0 ? void 0 : product.last_ordered_date, {
208
+ outputFormat: 'MMM DD, YYYY'
209
+ })) : /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
210
+ width: 80
211
+ }))), (isSoldOut || maxProductQuantity <= 0) && /*#__PURE__*/_react.default.createElement(_styles.SoldOut, {
212
+ isBottom: product === null || product === void 0 ? void 0 : (_product$ribbon6 = product.ribbon) === null || _product$ribbon6 === void 0 ? void 0 : _product$ribbon6.enabled
213
+ }, t('SOLD_OUT', 'SOLD OUT'))), useCustomFunctionality && customText && /*#__PURE__*/_react.default.createElement("span", {
214
+ style: {
215
+ fontSize: 16,
216
+ fontWeight: 500
217
+ }
218
+ }, customText)), !useCustomFunctionality && !hideAddButton && !isSkeleton && /*#__PURE__*/_react.default.createElement(_styles.AddButton, null, /*#__PURE__*/_react.default.createElement(_MdAddCircleOutline.default, {
219
+ disabled: productAddedToCartLength && (product === null || product === void 0 ? void 0 : product.maximum_per_order) && productAddedToCartLength >= (product === null || product === void 0 ? void 0 : product.maximum_per_order)
220
+ }))) : /*#__PURE__*/_react.default.createElement(_styles.SkeletonWrapper, null, /*#__PURE__*/_react.default.createElement(_styles.SkeletonCardLogo, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
221
+ height: 75,
222
+ width: 75
223
+ })), /*#__PURE__*/_react.default.createElement(_styles.SkeletonCardInfo, null, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
224
+ width: 100
225
+ }), /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
226
+ width: 100
227
+ }), /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
228
+ width: 100
229
+ })))), /*#__PURE__*/_react.default.createElement(_Modal.Modal, {
230
+ open: isModalOpen,
231
+ onRemove: function onRemove() {
232
+ return closeAuthModal();
233
+ },
234
+ onClose: function onClose() {
235
+ return closeAuthModal();
236
+ },
237
+ width: "50%",
238
+ authModal: true
239
+ }, modalPageToShow === 'login' && /*#__PURE__*/_react.default.createElement(_LoginForm.LoginForm, {
240
+ handleSuccessLogin: handleSuccessLogin,
241
+ elementLinkToSignup: /*#__PURE__*/_react.default.createElement("a", {
242
+ onClick: function onClick(e) {
243
+ return handleCustomModalClick(e, {
244
+ page: 'signup'
245
+ });
246
+ },
247
+ href: "#"
248
+ }, t('CREATE_ACCOUNT', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag = theme.defaultLanguages) === null || _theme$defaultLanguag === void 0 ? void 0 : _theme$defaultLanguag.CREATE_ACCOUNT) || 'Create account')),
249
+ elementLinkToForgotPassword: /*#__PURE__*/_react.default.createElement("a", {
250
+ onClick: function onClick(e) {
251
+ return handleCustomModalClick(e, {
252
+ page: 'forgotpassword'
253
+ });
254
+ },
255
+ href: "#"
256
+ }, t('RESET_PASSWORD', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag2 = theme.defaultLanguages) === null || _theme$defaultLanguag2 === void 0 ? void 0 : _theme$defaultLanguag2.RESET_PASSWORD) || 'Reset password')),
257
+ useLoginByCellphone: true,
258
+ isPopup: true
259
+ }), modalPageToShow === 'signup' && /*#__PURE__*/_react.default.createElement(_SignUpForm.SignUpForm, {
260
+ elementLinkToLogin: /*#__PURE__*/_react.default.createElement("a", {
261
+ onClick: function onClick(e) {
262
+ return handleCustomModalClick(e, {
263
+ page: 'login'
264
+ });
265
+ },
266
+ href: "#"
267
+ }, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag3 = theme.defaultLanguages) === null || _theme$defaultLanguag3 === void 0 ? void 0 : _theme$defaultLanguag3.LOGIN) || 'Login')),
268
+ useLoginByCellphone: true,
269
+ useChekoutFileds: true,
270
+ handleSuccessSignup: handleSuccessSignup,
271
+ isPopup: true,
272
+ closeModal: function closeModal() {
273
+ return closeAuthModal();
274
+ }
275
+ }), modalPageToShow === 'forgotpassword' && /*#__PURE__*/_react.default.createElement(_ForgotPasswordForm.ForgotPasswordForm, {
276
+ elementLinkToLogin: /*#__PURE__*/_react.default.createElement("a", {
277
+ onClick: function onClick(e) {
278
+ return handleCustomModalClick(e, {
279
+ page: 'login'
280
+ });
281
+ },
282
+ href: "#"
283
+ }, t('LOGIN', (theme === null || theme === void 0 ? void 0 : (_theme$defaultLanguag4 = theme.defaultLanguages) === null || _theme$defaultLanguag4 === void 0 ? void 0 : _theme$defaultLanguag4.LOGIN) || 'Login')),
284
+ isPopup: true
285
+ })), /*#__PURE__*/_react.default.createElement(_Confirm.Alert, {
286
+ title: t('PRODUCT', 'Product'),
287
+ content: alertState.content,
288
+ acceptText: t('ACCEPT', 'Accept'),
289
+ open: alertState.open,
290
+ onClose: function onClose() {
291
+ return closeAlert();
292
+ },
293
+ onAccept: function onAccept() {
294
+ return closeAlert();
295
+ },
296
+ closeOnBackdrop: false
297
+ }));
298
+ };
299
+ var SingleProductCard = function SingleProductCard(props) {
300
+ var singleProductCardProps = _objectSpread(_objectSpread({}, props), {}, {
301
+ UIComponent: SingleProductCardUI
302
+ });
303
+ return /*#__PURE__*/_react.default.createElement(_orderingComponentsExternal.SingleProductCard, singleProductCardProps);
304
+ };
305
+ exports.SingleProductCard = SingleProductCard;
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.WrapLogo = exports.TitleWrapper = exports.SoldOut = exports.SkeletonWrapper = exports.SkeletonCardLogo = exports.SkeletonCardInfo = exports.RibbonBox = exports.QuantityContainer = exports.PriceWrapper = exports.LastOrder = exports.CardLogo = exports.CardInfo = exports.CardContainer = exports.AddButton = void 0;
8
+ var _react = _interopRequireDefault(require("react"));
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;
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
+ 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
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
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); }
15
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
+ var CardContainer = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n background: ", ";\n padding: 10px;\n border-radius: 7.6px;\n box-sizing: border-box;\n cursor: pointer;\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n > div {\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n align-items: center;\n }\n\n ", "\n"])), function (_ref) {
17
+ var isShowAddButt = _ref.isShowAddButt;
18
+ return (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n min-height: ", ";\n max-height: ", ";\n "])), isShowAddButt ? '230px' : '200px', isShowAddButt ? '230px' : '200px');
19
+ }, function (_ref2) {
20
+ var soldOut = _ref2.soldOut;
21
+ return soldOut ? '#6c757d33' : '#FFF';
22
+ }, function (_ref3) {
23
+ var productsRows = _ref3.productsRows;
24
+ return productsRows ? (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n width: ", ";\n margin: 10px;\n "])), function () {
25
+ return productsRows === 3 ? 'calc(33% - 20px)' : 'calc(50% - 20px)';
26
+ }) : (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n width: 100%;\n margin: 10px 0px;\n\n @media (min-width: 380px) {\n margin: 10px;\n width: calc(100% - 20px);\n }\n @media (min-width: 480px) {\n margin: 10px;\n width: calc(50% - 20px);\n }\n ", "\n \n "])), function (_ref4) {
27
+ var isCartOnProductsList = _ref4.isCartOnProductsList;
28
+ return isCartOnProductsList ? (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n @media (min-width: 993px) {\n width: calc(25% - 20px); // 4 per row\n margin: 10px 20px 10px 0px;\n ", "\n }\n "])), function (props) {
29
+ var _props$theme;
30
+ return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin: 10px 0px 10px 20px;\n "])));
31
+ }) : (0, _styledComponents.css)(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n @media (min-width: 681px) {\n width: calc(33% - 20px);\n }\n\n @media (min-width: 993px) {\n width: calc(25% - 20px);\n }\n\n @media (min-width: 1440px) {\n width: calc(20% - 20px);\n margin: 10px 20px 10px 0px;\n ", "\n }\n "])), function (props) {
32
+ var _props$theme2;
33
+ return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n margin: 10px 0px 10px 20px;\n "])));
34
+ });
35
+ });
36
+ });
37
+ exports.CardContainer = CardContainer;
38
+ var SoldOut = _styledComponents.default.span(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n font-weight: bold;\n position: absolute;\n background: #495057 0% 0% no-repeat padding-box;\n padding: 5px 10px;\n top: 7px;\n border-radius: 2px 0px 0px 2px;\n right: 0px;\n color: white;\n font-size: 12px;\n ", "\n &:first-letter {\n text-transform: uppercase;\n }\n\n ", "\n"])), function (props) {
39
+ var _props$theme3;
40
+ return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n left: 0px;\n right: initial;\n "])));
41
+ }, function (_ref5) {
42
+ var isBottom = _ref5.isBottom;
43
+ return isBottom && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n bottom: 7px;\n top: initial;\n "])));
44
+ });
45
+ exports.SoldOut = SoldOut;
46
+ var CardInfo = _styledComponents.default.div(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: 100%;\n > * {\n margin: 3px;\n }\n ", "\n p {\n color: #909BA9;\n text-align: left;\n font-size: 10px;\n ", "\n\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n white-space: pre-wrap;\n text-align: center;\n }\n\n span {\n color: ", ";\n font-size: 14px;\n }\n\n ", "\n\n h1 {\n font-size: 14px;\n font-weight: 500;\n text-align: center;\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0px;\n }\n\n > span {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n text-align: center;\n svg {\n color: ", ";\n font-size: 16px;\n }\n }\n\n @media (min-width: 1024px) {\n p {\n font-size: 12px;\n }\n\n span {\n font-size: 14px;\n }\n }\n"])), function (_ref6) {
47
+ var _theme$business_view, _theme$business_view$, _theme$business_view$2, _theme$business_view$3, _theme$business_view$4;
48
+ var theme = _ref6.theme;
49
+ return (theme === null || theme === void 0 ? void 0 : (_theme$business_view = theme.business_view) === null || _theme$business_view === void 0 ? void 0 : (_theme$business_view$ = _theme$business_view.components) === null || _theme$business_view$ === void 0 ? void 0 : (_theme$business_view$2 = _theme$business_view$.products) === null || _theme$business_view$2 === void 0 ? void 0 : (_theme$business_view$3 = _theme$business_view$2.components) === null || _theme$business_view$3 === void 0 ? void 0 : (_theme$business_view$4 = _theme$business_view$3.layout) === null || _theme$business_view$4 === void 0 ? void 0 : _theme$business_view$4.type) === 'pfchangs' && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n \n "])));
50
+ }, function (props) {
51
+ var _props$theme4;
52
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject14 || (_templateObject14 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
53
+ }, function (props) {
54
+ return props.theme.colors.darkTextColor;
55
+ }, function (_ref7) {
56
+ var oneLine = _ref7.oneLine;
57
+ return oneLine && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n p {\n -webkit-line-clamp: 1;\n }\n "])));
58
+ }, function (props) {
59
+ return props.theme.colors.headingColor;
60
+ }, function (props) {
61
+ return props.theme.colors.danger500;
62
+ });
63
+ exports.CardInfo = CardInfo;
64
+ var WrapLogo = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n position: relative;\n max-width: 100px;\n max-height: 100px;\n height: 100px;\n align-self: center;\n ", "\n ", "\n"])), function (_ref8) {
65
+ var isBgimage = _ref8.isBgimage;
66
+ return isBgimage && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n width: 100px;\n "])));
67
+ }, function (props) {
68
+ var _props$theme5;
69
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
70
+ });
71
+ exports.WrapLogo = WrapLogo;
72
+ var CardLogoStyled = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n position: relative;\n background-repeat: no-repeat, repeat;\n background-size: cover;\n background-position: center;\n object-fit: cover;\n min-height: 100px;\n border-radius: ", ";\n"])), function (_ref9) {
73
+ var _theme$business_view2, _theme$business_view3, _theme$business_view4, _theme$business_view5, _theme$business_view6, _theme$business_view7, _theme$business_view8;
74
+ var theme = _ref9.theme;
75
+ return (theme === null || theme === void 0 ? void 0 : (_theme$business_view2 = theme.business_view) === null || _theme$business_view2 === void 0 ? void 0 : (_theme$business_view3 = _theme$business_view2.components) === null || _theme$business_view3 === void 0 ? void 0 : (_theme$business_view4 = _theme$business_view3.products) === null || _theme$business_view4 === void 0 ? void 0 : (_theme$business_view5 = _theme$business_view4.components) === null || _theme$business_view5 === void 0 ? void 0 : (_theme$business_view6 = _theme$business_view5.photo) === null || _theme$business_view6 === void 0 ? void 0 : (_theme$business_view7 = _theme$business_view6.components) === null || _theme$business_view7 === void 0 ? void 0 : (_theme$business_view8 = _theme$business_view7.style) === null || _theme$business_view8 === void 0 ? void 0 : _theme$business_view8.borderRadius) || '10px';
76
+ });
77
+ var CardLogo = function CardLogo(props) {
78
+ var style = {};
79
+ if (props.bgimage) {
80
+ style.backgroundImage = "url(".concat(props.bgimage, ")");
81
+ }
82
+ if (props.soldOut) {
83
+ style.filter = 'brightness(70%)';
84
+ }
85
+ return /*#__PURE__*/_react.default.createElement(CardLogoStyled, _extends({}, props, {
86
+ style: style
87
+ }), props.children);
88
+ };
89
+ exports.CardLogo = CardLogo;
90
+ var PriceWrapper = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: center;\n .off-price {\n ", "\n font-size: 10px;\n color: #909BA9;\n text-decoration: line-through;\n text-align: center;\n ", "\n\n @media (min-width: 1024px) {\n font-size: 13px;\n }\n }\n"])), function (_ref10) {
91
+ var hasOffer = _ref10.hasOffer;
92
+ return !hasOffer && (0, _styledComponents.css)(_templateObject21 || (_templateObject21 = _taggedTemplateLiteral(["\n display: none;\n "])));
93
+ }, function (props) {
94
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject22 || (_templateObject22 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0;\n "])));
95
+ });
96
+ exports.PriceWrapper = PriceWrapper;
97
+ var QuantityContainer = _styledComponents.default.div(_templateObject23 || (_templateObject23 = _taggedTemplateLiteral(["\n background: ", ";\n color: #fff;\n position: absolute;\n left: 100%;\n bottom: 100%;\n width: 25px;\n height: 25px;\n text-align: center;\n border-radius: 50%;\n transform: translate(-20px, 80%);\n z-index: 100;\n span{\n color: #fff\n }\n @media (min-width: 768px) {\n transform: translate(-50%, 80%);\n }\n"])), function (_ref11) {
98
+ var theme = _ref11.theme;
99
+ return theme.colors.primary;
100
+ });
101
+ exports.QuantityContainer = QuantityContainer;
102
+ var RibbonBox = _styledComponents.default.div(_templateObject24 || (_templateObject24 = _taggedTemplateLiteral(["\n position: absolute;\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 top: -4px;\n background-color: ", ";\n display: -webkit-box;\n -webkit-box-orient: vertical;\n -webkit-line-clamp: 2;\n overflow: hidden;\n max-width: 70px;\n word-break: break-all;\n\n ", "\n\n ", "\n\n ", "\n\n ", "\n"])), function (props) {
103
+ return props.theme.colors.colorTextSignForm;
104
+ }, function (props) {
105
+ return props.theme.colors.primary;
106
+ }, function (props) {
107
+ return props.theme.rtl && (0, _styledComponents.css)(_templateObject25 || (_templateObject25 = _taggedTemplateLiteral(["\n left: -3px;\n right: initial;\n "])));
108
+ }, function (_ref12) {
109
+ var bgColor = _ref12.bgColor;
110
+ return bgColor && (0, _styledComponents.css)(_templateObject26 || (_templateObject26 = _taggedTemplateLiteral(["\n background-color: ", ";\n "])), bgColor);
111
+ }, function (_ref13) {
112
+ var isRoundRect = _ref13.isRoundRect;
113
+ return isRoundRect && (0, _styledComponents.css)(_templateObject27 || (_templateObject27 = _taggedTemplateLiteral(["\n border-radius: 7.6px;\n "])));
114
+ }, function (_ref14) {
115
+ var isCapsule = _ref14.isCapsule;
116
+ return isCapsule && (0, _styledComponents.css)(_templateObject28 || (_templateObject28 = _taggedTemplateLiteral(["\n border-radius: 50px;\n "])));
117
+ });
118
+ exports.RibbonBox = RibbonBox;
119
+ var LastOrder = _styledComponents.default.span(_templateObject29 || (_templateObject29 = _taggedTemplateLiteral(["\n color: ", ";\n font-weight: 400;\n font-size: 10px !important;\n margin: 0px 3px;\n"])), function (props) {
120
+ return props.theme.colors.primary;
121
+ });
122
+ exports.LastOrder = LastOrder;
123
+ var TitleWrapper = _styledComponents.default.div(_templateObject30 || (_templateObject30 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n justify-content: space-between;\n\n h1 {\n font-size: 14px;\n font-weight: 500;\n text-align: left;\n color: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n margin: 0px;\n }\n\n > span {\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n svg {\n color: ", ";\n font-size: 16px;\n }\n }\n"])), function (props) {
124
+ return props.theme.colors.headingColor;
125
+ }, function (props) {
126
+ return props.theme.colors.danger500;
127
+ });
128
+ exports.TitleWrapper = TitleWrapper;
129
+ var SkeletonCardInfo = _styledComponents.default.div(_templateObject31 || (_templateObject31 = _taggedTemplateLiteral(["\n display: flex;\n flex-direction: column;\n width: calc(100% - 10px);\n > * {\n margin: 3px;\n }\n"])));
130
+ exports.SkeletonCardInfo = SkeletonCardInfo;
131
+ var SkeletonCardLogo = _styledComponents.default.div(_templateObject32 || (_templateObject32 = _taggedTemplateLiteral(["\n max-width: 100px;\n max-height: 100px;\n width: 100px;\n height: 100px;\n margin-left: 5px;\n span{\n border-radius: ", ";\n }\n ", "\n"])), function (_ref15) {
132
+ var _theme$business_view9, _theme$business_view10, _theme$business_view11, _theme$business_view12, _theme$business_view13, _theme$business_view14, _theme$business_view15;
133
+ var theme = _ref15.theme;
134
+ return (theme === null || theme === void 0 ? void 0 : (_theme$business_view9 = theme.business_view) === null || _theme$business_view9 === void 0 ? void 0 : (_theme$business_view10 = _theme$business_view9.components) === null || _theme$business_view10 === void 0 ? void 0 : (_theme$business_view11 = _theme$business_view10.products) === null || _theme$business_view11 === void 0 ? void 0 : (_theme$business_view12 = _theme$business_view11.components) === null || _theme$business_view12 === void 0 ? void 0 : (_theme$business_view13 = _theme$business_view12.photo) === null || _theme$business_view13 === void 0 ? void 0 : (_theme$business_view14 = _theme$business_view13.components) === null || _theme$business_view14 === void 0 ? void 0 : (_theme$business_view15 = _theme$business_view14.style) === null || _theme$business_view15 === void 0 ? void 0 : _theme$business_view15.borderRadius) || '10px';
135
+ }, function (props) {
136
+ var _props$theme6;
137
+ return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject33 || (_templateObject33 = _taggedTemplateLiteral(["\n margin-right: 5px;\n margin-left: 0px;\n "])));
138
+ });
139
+ exports.SkeletonCardLogo = SkeletonCardLogo;
140
+ var AddButton = _styledComponents.default.div(_templateObject34 || (_templateObject34 = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n \n svg {\n width: 30px;\n height: 30px;\n color: #016341;\n }\n"])));
141
+ exports.AddButton = AddButton;
142
+ var SkeletonWrapper = _styledComponents.default.div(_templateObject35 || (_templateObject35 = _taggedTemplateLiteral(["\n text-align: center;\n"])));
143
+ exports.SkeletonWrapper = SkeletonWrapper;
@@ -65,6 +65,7 @@ var StripeElementsFormUI = function StripeElementsFormUI(props) {
65
65
  handleSource: handleSource,
66
66
  onNewCard: onNewCard,
67
67
  toSave: toSave,
68
+ isSplitForm: true,
68
69
  requirements: requirements,
69
70
  businessId: businessId,
70
71
  handleCancel: onCancel,
@@ -45,7 +45,7 @@ var optionsDefault = [{
45
45
  key: 'orders'
46
46
  }];
47
47
  var UserPopover = function UserPopover(props) {
48
- var _configs$cash_wallet, _configs$wallet_enabl, _configs$wallet_cash_, _configs$wallet_credi, _configs$advanced_off, _configs$advanced_off2, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _props$beforeElements, _props$beforeComponen, _sessionState$user, _sessionState$user2, _props$afterComponent, _props$afterElements;
48
+ var _configs$cash_wallet, _configs$wallet_enabl, _configs$wallet_cash_, _configs$wallet_credi, _configs$advanced_off, _configs$advanced_off2, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _props$beforeElements, _props$beforeComponen, _sessionState$user, _sessionState$user2, _props$afterComponent, _props$afterElements;
49
49
  var open = props.open,
50
50
  isHome = props.isHome,
51
51
  optionsList = props.optionsList,
@@ -72,6 +72,7 @@ var UserPopover = function UserPopover(props) {
72
72
  var isWalletEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$cash_wallet = configs.cash_wallet) === null || _configs$cash_wallet === void 0 ? void 0 : _configs$cash_wallet.value) && (configs === null || configs === void 0 ? void 0 : (_configs$wallet_enabl = configs.wallet_enabled) === null || _configs$wallet_enabl === void 0 ? void 0 : _configs$wallet_enabl.value) === '1' && ((configs === null || configs === void 0 ? void 0 : (_configs$wallet_cash_ = configs.wallet_cash_enabled) === null || _configs$wallet_cash_ === void 0 ? void 0 : _configs$wallet_cash_.value) === '1' || (configs === null || configs === void 0 ? void 0 : (_configs$wallet_credi = configs.wallet_credit_point_enabled) === null || _configs$wallet_credi === void 0 ? void 0 : _configs$wallet_credi.value) === '1');
73
73
  var isPromotionsEnabled = (configs === null || configs === void 0 ? void 0 : (_configs$advanced_off = configs.advanced_offers_module) === null || _configs$advanced_off === void 0 ? void 0 : _configs$advanced_off.value) === '1' || (configs === null || configs === void 0 ? void 0 : (_configs$advanced_off2 = configs.advanced_offers_module) === null || _configs$advanced_off2 === void 0 ? void 0 : _configs$advanced_off2.value) === true;
74
74
  var isAddressListNewPage = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.profile) === null || _orderingTheme$theme$ === void 0 ? void 0 : (_orderingTheme$theme$2 = _orderingTheme$theme$.components) === null || _orderingTheme$theme$2 === void 0 ? void 0 : (_orderingTheme$theme$3 = _orderingTheme$theme$2.address_list) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) === null || _orderingTheme$theme$4 === void 0 ? void 0 : (_orderingTheme$theme$5 = _orderingTheme$theme$4.layout) === null || _orderingTheme$theme$5 === void 0 ? void 0 : _orderingTheme$theme$5.position) === 'new_page';
75
+ var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme2 = orderingTheme.theme) === null || _orderingTheme$theme2 === void 0 ? void 0 : (_orderingTheme$theme3 = _orderingTheme$theme2.header) === null || _orderingTheme$theme3 === void 0 ? void 0 : (_orderingTheme$theme4 = _orderingTheme$theme3.components) === null || _orderingTheme$theme4 === void 0 ? void 0 : (_orderingTheme$theme5 = _orderingTheme$theme4.layout) === null || _orderingTheme$theme5 === void 0 ? void 0 : _orderingTheme$theme5.type) === 'Chew';
75
76
  var extraOptions = [{
76
77
  name: 'profile',
77
78
  pathname: '/profile',
@@ -193,6 +194,7 @@ var UserPopover = function UserPopover(props) {
193
194
  }), /*#__PURE__*/_react.default.createElement(_styles.HeaderItem, {
194
195
  isPhoto: sessionState === null || sessionState === void 0 ? void 0 : (_sessionState$user = sessionState.user) === null || _sessionState$user === void 0 ? void 0 : _sessionState$user.photo,
195
196
  isHome: isHome,
197
+ isChew: isChew,
196
198
  ref: referenceElement,
197
199
  isOpen: open,
198
200
  onClick: props.onClick
@@ -11,8 +11,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
11
11
  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; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
13
13
  var HeaderItem = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n cursor: pointer;\n display: flex;\n align-items: center;\n border-radius: 7.6px;\n padding: 7px 13px;\n margin: 0px;\n\n ", "\n\n svg {\n color: ", ";\n height: 40px;\n width: 40px;\n }\n\n .menu-list {\n font-size: 16px;\n width: auto;\n height: auto;\n margin-right: 20px;\n ", "\n color: ", ";\n }\n\n img {\n width: 42px;\n height: 42px;\n border-radius: 7.6px;\n }\n"])), function (_ref) {
14
- var isOpen = _ref.isOpen;
15
- return isOpen && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: #F8F9FA;\n "])));
14
+ var isOpen = _ref.isOpen,
15
+ isChew = _ref.isChew;
16
+ return isOpen && !isChew && (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: #F8F9FA;\n "])));
16
17
  }, function (_ref2) {
17
18
  var isHome = _ref2.isHome;
18
19
  return isHome ? '#FFF' : '#000';
@@ -20,7 +21,7 @@ var HeaderItem = _styledComponents.default.div(_templateObject || (_templateObje
20
21
  var _props$theme;
21
22
  return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 20px;\n margin-right: 0;\n "])));
22
23
  }, function (props) {
23
- return props.theme.colors.darkTextColor;
24
+ return props.isChew ? props.theme.colors.backgroundPage : props.theme.colors.darkTextColor;
24
25
  });
25
26
  exports.HeaderItem = HeaderItem;
26
27
  var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: #FFF;\n color: #333;\n padding: 20px 15px;\n border-radius: 10px;\n max-width: 500px;\n min-width: 300px !important;\n z-index: 1001;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n"])));
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.WrapperForm = exports.UserProfileContainer = exports.UserImage = exports.UserData = exports.UploadImageIcon = exports.SkeletonWrapper = exports.SideForm = exports.SavedPlaces = exports.ProfileOptionsList = exports.ListLink = exports.ListItem = exports.Image = exports.Container = exports.Camera = void 0;
8
8
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
9
- var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20;
9
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19;
10
10
  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); }
11
11
  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; }
12
12
  function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
@@ -47,14 +47,11 @@ var UserData = _styledComponents.default.div(_templateObject14 || (_templateObje
47
47
  return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject15 || (_templateObject15 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
48
48
  });
49
49
  exports.UserData = UserData;
50
- var SavedPlaces = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 90%;\n text-align: center;\n margin: 0 auto;\n margin-top: 40px;\n margin-bottom: 20px;\n\n\n h1{\n font-size: 24px;\n text-align: left;\n ", "\n }\n\n > div{\n display: flex;\n flex-direction: column-reverse;\n align-items: center;\n }\n\n button{\n width: 100%;\n align-self: center;\n }\n\n @media (min-width: 768px){\n width: 90%;\n margin-top: 40px;\n h1 {\n text-align: center;\n }\n ul{\n width: 100%;\n }\n button {\n width: 50%;\n align-self: flex-end;\n }\n }\n\n"])), function (props) {
51
- var _props$theme4;
52
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
53
- });
50
+ var SavedPlaces = _styledComponents.default.div(_templateObject16 || (_templateObject16 = _taggedTemplateLiteral(["\n width: 90%;\n text-align: center;\n margin: 0 auto;\n margin-top: 40px;\n margin-bottom: 20px;\n\n > div{\n display: flex;\n flex-direction: column-reverse;\n align-items: center;\n }\n\n button{\n width: 100%;\n align-self: center;\n }\n\n @media (min-width: 768px){\n width: 75%;\n margin-top: 40px;\n h1 {\n font-size: 24px;\n text-align: left;\n }\n ul{\n width: 100%;\n }\n button {\n width: 50%;\n align-self: flex-end;\n }\n }\n\n"])));
54
51
  exports.SavedPlaces = SavedPlaces;
55
- var UploadImageIcon = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n span {\n margin: 0;\n }\n\n svg {\n width: 45px;\n height: 45px;\n }\n"])));
52
+ var UploadImageIcon = _styledComponents.default.div(_templateObject17 || (_templateObject17 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n flex-direction: column;\n\n span {\n margin: 0;\n }\n\n svg {\n width: 45px;\n height: 45px;\n }\n"])));
56
53
  exports.UploadImageIcon = UploadImageIcon;
57
- var SkeletonWrapper = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n span{\n height: 100%;\n position: relative;\n top: -2.5px;\n }\n"])));
54
+ var SkeletonWrapper = _styledComponents.default.div(_templateObject18 || (_templateObject18 = _taggedTemplateLiteral(["\n span{\n height: 100%;\n position: relative;\n top: -2.5px;\n }\n"])));
58
55
  exports.SkeletonWrapper = SkeletonWrapper;
59
- var WrapperForm = _styledComponents.default.div(_templateObject20 || (_templateObject20 = _taggedTemplateLiteral(["\n @media (min-width: 768px) {\n width: 100%;\n }\n"])));
56
+ var WrapperForm = _styledComponents.default.div(_templateObject19 || (_templateObject19 = _taggedTemplateLiteral(["\n @media (min-width: 768px) {\n width: 100%;\n }\n"])));
60
57
  exports.WrapperForm = WrapperForm;