ordering-ui-external 10.0.1 → 10.2.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 (475) hide show
  1. package/_bundles/{0.ordering-ui.a7ceb858d42e2be7e708.js → 0.ordering-ui.8384f3801abcc340af2a.js} +1 -1
  2. package/_bundles/{1.ordering-ui.a7ceb858d42e2be7e708.js → 1.ordering-ui.8384f3801abcc340af2a.js} +1 -1
  3. package/_bundles/{2.ordering-ui.a7ceb858d42e2be7e708.js → 2.ordering-ui.8384f3801abcc340af2a.js} +1 -1
  4. package/_bundles/{4.ordering-ui.a7ceb858d42e2be7e708.js → 4.ordering-ui.8384f3801abcc340af2a.js} +1 -1
  5. package/_bundles/{5.ordering-ui.a7ceb858d42e2be7e708.js → 5.ordering-ui.8384f3801abcc340af2a.js} +1 -1
  6. package/_bundles/{6.ordering-ui.a7ceb858d42e2be7e708.js → 6.ordering-ui.8384f3801abcc340af2a.js} +1 -1
  7. package/_bundles/{7.ordering-ui.a7ceb858d42e2be7e708.js → 7.ordering-ui.8384f3801abcc340af2a.js} +2 -2
  8. package/_bundles/{8.ordering-ui.a7ceb858d42e2be7e708.js → 8.ordering-ui.8384f3801abcc340af2a.js} +1 -1
  9. package/_bundles/{9.ordering-ui.a7ceb858d42e2be7e708.js → 9.ordering-ui.8384f3801abcc340af2a.js} +1 -1
  10. package/_bundles/ordering-ui.8384f3801abcc340af2a.js +2 -0
  11. package/_modules/components/BusinessBasicInformation/index.js +7 -10
  12. package/_modules/components/OrderDetails/index.js +14 -17
  13. package/_modules/components/ProductItemAccordion/index.js +4 -5
  14. package/_modules/components/RenderProductsLayout/SearchProducts/index.js +2 -5
  15. package/_modules/components/UserFormDetails/index.js +7 -8
  16. package/_modules/components/UserProfileForm/ProfileOptions/index.js +4 -5
  17. package/_modules/components/UserProfileForm/index.js +10 -11
  18. package/_modules/config/currency.js +1017 -0
  19. package/_modules/contexts/ThemeContext/index.js +1 -1
  20. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +608 -0
  21. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressForm/styles.js +69 -0
  22. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressList/index.js +304 -0
  23. package/_modules/themes/callcenterOriginal/src/components/Orders/AddressList/styles.js +60 -0
  24. package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/index.js +128 -0
  25. package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/styles.js +27 -0
  26. package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/index.js +337 -0
  27. package/_modules/themes/callcenterOriginal/src/components/Orders/AllInOne/styles.js +67 -0
  28. package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/CalendarHeader.js +81 -0
  29. package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/EventComponent.js +46 -0
  30. package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/index.js +141 -0
  31. package/_modules/themes/callcenterOriginal/src/components/Orders/Appointments/styles.js +61 -0
  32. package/_modules/themes/callcenterOriginal/src/components/Orders/BusinessesSelector/index.js +23 -3
  33. package/_modules/themes/callcenterOriginal/src/components/Orders/CompanySelector/index.js +259 -0
  34. package/_modules/themes/callcenterOriginal/src/components/Orders/CompanySelector/styles.js +86 -0
  35. package/_modules/themes/callcenterOriginal/src/components/Orders/CountryFilter/index.js +20 -7
  36. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/index.js +96 -0
  37. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/styles.js +35 -0
  38. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/cardUtils.js +102 -0
  39. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/index.js +148 -0
  40. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/styles.js +16 -0
  41. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/index.js +275 -0
  42. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/styles.js +23 -0
  43. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +498 -0
  44. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/styles.js +31 -0
  45. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/index.js +100 -0
  46. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/styles.js +17 -0
  47. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +139 -0
  48. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +17 -0
  49. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/index.js +101 -0
  50. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/styles.js +37 -0
  51. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/index.js +131 -0
  52. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/styles.js +12 -0
  53. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +83 -0
  54. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +81 -0
  55. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/styles.js +23 -0
  56. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +45 -0
  57. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/styles.js +12 -0
  58. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/index.js +112 -0
  59. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/styles.js +21 -0
  60. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +259 -0
  61. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +66 -0
  62. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +173 -0
  63. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/styles.js +26 -0
  64. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/index.js +400 -0
  65. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/styles.js +40 -0
  66. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/index.js +613 -0
  67. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/styles.js +109 -0
  68. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/index.js +39 -0
  69. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/styles.js +23 -0
  70. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/index.js +51 -0
  71. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/styles.js +29 -0
  72. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +148 -0
  73. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/styles.js +79 -0
  74. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +82 -0
  75. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/styles.js +21 -0
  76. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +190 -0
  77. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +68 -0
  78. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/index.js +234 -0
  79. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/styles.js +54 -0
  80. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/index.js +99 -0
  81. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +131 -0
  82. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/index.js +73 -0
  83. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/styles.js +17 -0
  84. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +124 -0
  85. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/styles.js +12 -0
  86. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/index.js +83 -0
  87. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/styles.js +21 -0
  88. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/index.js +48 -0
  89. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/styles.js +14 -0
  90. package/_modules/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/index.js +59 -0
  91. package/_modules/themes/callcenterOriginal/src/components/Orders/CurrencyFilter/index.js +20 -7
  92. package/_modules/themes/callcenterOriginal/src/components/Orders/DateTypeSelector/index.js +2 -2
  93. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesLocation/index.js +5 -4
  94. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +5 -3
  95. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/index.js +2 -1
  96. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/styles.js +1 -1
  97. package/_modules/themes/callcenterOriginal/src/components/Orders/DeliveryTypeSelector/index.js +36 -8
  98. package/_modules/themes/callcenterOriginal/src/components/Orders/DriverSelector/index.js +15 -1
  99. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversBusyStatusFilter/styles.js +6 -3
  100. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversDashboard/index.js +8 -9
  101. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversDashboard/styles.js +1 -1
  102. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversGroupTypeSelector/index.js +27 -7
  103. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversList/index.js +21 -10
  104. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversList/styles.js +11 -18
  105. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversManager/index.js +9 -6
  106. package/_modules/themes/callcenterOriginal/src/components/Orders/DriversOnlineOfflineFilter/styles.js +5 -2
  107. package/_modules/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/index.js +144 -0
  108. package/_modules/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/styles.js +57 -0
  109. package/_modules/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/index.js +37 -0
  110. package/_modules/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/styles.js +24 -0
  111. package/_modules/themes/callcenterOriginal/src/components/Orders/Logistics/index.js +10 -2
  112. package/_modules/themes/callcenterOriginal/src/components/Orders/Logistics/styles.js +1 -1
  113. package/_modules/themes/callcenterOriginal/src/components/Orders/Messages/index.js +66 -124
  114. package/_modules/themes/callcenterOriginal/src/components/Orders/Messages/styles.js +64 -65
  115. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/RefundToWallet.js +238 -0
  116. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/index.js +62 -37
  117. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderBill/styles.js +41 -3
  118. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderContactInformation/index.js +31 -14
  119. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDashboardSLASetting/index.js +1 -1
  120. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDelete/index.js +25 -57
  121. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetails/index.js +73 -171
  122. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetails/styles.js +5 -3
  123. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/index.js +87 -15
  124. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/styles.js +12 -4
  125. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderNotification/index.js +48 -3
  126. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
  127. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrint/index.js +6 -5
  128. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/index.js +126 -0
  129. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/styles.js +30 -0
  130. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersCards/index.js +23 -12
  131. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersCards/styles.js +1 -1
  132. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersContentHeader/index.js +4 -3
  133. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/index.js +6 -2
  134. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/styles.js +3 -3
  135. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersDashboardList/index.js +1 -0
  136. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersExportCSV/styles.js +14 -8
  137. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/index.js +123 -17
  138. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/styles.js +11 -3
  139. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/index.js +22 -5
  140. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/styles.js +2 -2
  141. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersListing/index.js +10 -4
  142. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersManager/index.js +19 -13
  143. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersManager/styles.js +7 -10
  144. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +159 -47
  145. package/_modules/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +14 -2
  146. package/_modules/themes/callcenterOriginal/src/components/Orders/PaymethodTypeSelector/index.js +25 -4
  147. package/_modules/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/index.js +16 -12
  148. package/_modules/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/styles.js +11 -3
  149. package/_modules/themes/callcenterOriginal/src/components/Orders/UserAddForm/index.js +377 -0
  150. package/_modules/themes/callcenterOriginal/src/components/Orders/UserAddForm/styles.js +49 -0
  151. package/_modules/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/index.js +89 -0
  152. package/_modules/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/styles.js +20 -0
  153. package/_modules/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/index.js +119 -0
  154. package/_modules/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/styles.js +65 -0
  155. package/_modules/themes/callcenterOriginal/src/components/Orders/index.js +21 -0
  156. package/_modules/themes/callcenterOriginal/src/components/Shared/AutoScroll/index.js +1 -0
  157. package/_modules/themes/callcenterOriginal/src/components/Shared/CitySelector/index.js +18 -5
  158. package/_modules/themes/callcenterOriginal/src/components/Shared/ColumnAllowSettingPopover/styles.js +1 -1
  159. package/_modules/themes/callcenterOriginal/src/components/Shared/Confirm/index.js +6 -2
  160. package/_modules/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/index.js +269 -26
  161. package/_modules/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/styles.js +47 -9
  162. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/index.js +202 -0
  163. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/styles.js +36 -0
  164. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/index.js +75 -0
  165. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/styles.js +16 -0
  166. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/index.js +56 -0
  167. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/styles.js +14 -0
  168. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/index.js +181 -0
  169. package/_modules/themes/callcenterOriginal/src/components/Shared/HtmlEditor/styles.js +18 -0
  170. package/_modules/themes/callcenterOriginal/src/components/Shared/ImageCrop/index.js +126 -19
  171. package/_modules/themes/callcenterOriginal/src/components/Shared/ImageCrop/styles.js +11 -3
  172. package/_modules/themes/callcenterOriginal/src/components/Shared/InputPhoneNumber/index.js +7 -4
  173. package/_modules/themes/callcenterOriginal/src/components/Shared/LinkableText/index.js +22 -0
  174. package/_modules/themes/callcenterOriginal/src/components/Shared/Modal/index.js +5 -3
  175. package/_modules/themes/callcenterOriginal/src/components/Shared/Modal/styles.js +1 -1
  176. package/_modules/themes/callcenterOriginal/src/components/Shared/Pagination/styles.js +2 -2
  177. package/_modules/themes/callcenterOriginal/src/components/Shared/ProtectedRoute/index.js +6 -1
  178. package/_modules/themes/callcenterOriginal/src/components/Shared/RangeCalendar/index.js +9 -1
  179. package/_modules/themes/callcenterOriginal/src/components/Shared/Schedule/index.js +15 -2
  180. package/_modules/themes/callcenterOriginal/src/components/Shared/Schedule/styles.js +12 -10
  181. package/_modules/themes/callcenterOriginal/src/components/Shared/SearchBar/index.js +11 -6
  182. package/_modules/themes/callcenterOriginal/src/components/Shared/SearchBar/styles.js +9 -15
  183. package/_modules/themes/callcenterOriginal/src/components/Shared/SideBar/index.js +22 -3
  184. package/_modules/themes/callcenterOriginal/src/components/Shared/SideBar/styles.js +10 -8
  185. package/_modules/themes/callcenterOriginal/src/components/Shared/Tabs/index.js +32 -0
  186. package/_modules/themes/callcenterOriginal/src/components/Shared/index.js +27 -0
  187. package/_modules/themes/callcenterOriginal/src/components/Stores/BusinessSelectHeader/index.js +4 -4
  188. package/_modules/themes/callcenterOriginal/src/styles/Buttons/index.js +116 -74
  189. package/_modules/themes/callcenterOriginal/src/styles/index.js +6 -0
  190. package/_modules/themes/five/src/components/AddressList/index.js +0 -3
  191. package/_modules/themes/five/src/components/BusinessController/index.js +11 -14
  192. package/_modules/themes/five/src/components/BusinessInformation/styles.js +19 -14
  193. package/_modules/themes/five/src/components/BusinessPreorder/index.js +51 -10
  194. package/_modules/themes/five/src/components/BusinessPreorder/styles.js +32 -25
  195. package/_modules/themes/five/src/components/BusinessProductsCategories/index.js +2 -5
  196. package/_modules/themes/five/src/components/BusinessProductsListing/index.js +11 -4
  197. package/_modules/themes/five/src/components/BusinessProductsListing/styles.js +11 -12
  198. package/_modules/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +5 -10
  199. package/_modules/themes/five/src/components/Cart/index.js +17 -9
  200. package/_modules/themes/five/src/components/CartPopover/index.js +4 -7
  201. package/_modules/themes/five/src/components/CartPopover/styles.js +4 -1
  202. package/_modules/themes/five/src/components/Checkout/index.js +3 -6
  203. package/_modules/themes/five/src/components/Confirm/styles.js +16 -13
  204. package/_modules/themes/five/src/components/DatePicker/index.js +2 -1
  205. package/_modules/themes/five/src/components/Favorite/index.js +4 -5
  206. package/_modules/themes/five/src/components/Footer/index.js +2 -3
  207. package/_modules/themes/five/src/components/Header/index.js +5 -8
  208. package/_modules/themes/five/src/components/HeaderOption/index.js +4 -5
  209. package/_modules/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -10
  210. package/_modules/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -1
  211. package/_modules/themes/five/src/components/Modal/styles.js +4 -2
  212. package/_modules/themes/five/src/components/MomentContent/index.js +16 -6
  213. package/_modules/themes/five/src/components/MomentControl/index.js +44 -34
  214. package/_modules/themes/five/src/components/MomentControl/styles.js +49 -27
  215. package/_modules/themes/five/src/components/OrderDetails/index.js +31 -24
  216. package/_modules/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -7
  217. package/_modules/themes/five/src/components/OrderTypeSelectorContent/index.js +11 -1
  218. package/_modules/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -5
  219. package/_modules/themes/five/src/components/PageBanner/index.js +75 -54
  220. package/_modules/themes/five/src/components/ProductForm/styles.js +12 -9
  221. package/_modules/themes/five/src/components/ProductItemAccordion/index.js +0 -3
  222. package/_modules/themes/five/src/components/ProductOption/styles.js +4 -1
  223. package/_modules/themes/five/src/components/RenderProductsLayout/index.js +8 -9
  224. package/_modules/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +0 -3
  225. package/_modules/themes/five/src/components/UserFormDetails/index.js +3 -6
  226. package/_modules/themes/five/src/components/UserPopover/index.js +3 -6
  227. package/_modules/themes/five/src/components/UserPopover/styles.js +8 -5
  228. package/_modules/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -5
  229. package/_modules/themes/five/src/components/UserProfileForm/index.js +2 -5
  230. package/_modules/themes/six/src/components/BusinessBasicInformation/index.js +8 -9
  231. package/_modules/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +3 -6
  232. package/_modules/utils/index.js +42 -2
  233. package/package.json +2 -2
  234. package/src/components/BusinessBasicInformation/index.js +7 -8
  235. package/src/components/OrderDetails/index.js +14 -16
  236. package/src/components/ProductItemAccordion/index.js +4 -3
  237. package/src/components/RenderProductsLayout/SearchProducts/index.js +2 -3
  238. package/src/components/UserFormDetails/index.js +6 -5
  239. package/src/components/UserProfileForm/ProfileOptions/index.js +4 -4
  240. package/src/components/UserProfileForm/index.js +10 -10
  241. package/src/config/currency.js +1010 -0
  242. package/src/contexts/ThemeContext/index.js +1 -1
  243. package/src/themes/callcenterOriginal/src/components/Orders/AddressForm/index.js +592 -0
  244. package/src/themes/callcenterOriginal/src/components/Orders/AddressForm/styles.js +200 -0
  245. package/src/themes/callcenterOriginal/src/components/Orders/AddressList/index.js +327 -0
  246. package/src/themes/callcenterOriginal/src/components/Orders/AddressList/styles.js +198 -0
  247. package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/index.js +137 -0
  248. package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/DriversManager/styles.js +51 -0
  249. package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/index.js +339 -0
  250. package/src/themes/callcenterOriginal/src/components/Orders/AllInOne/styles.js +144 -0
  251. package/src/themes/callcenterOriginal/src/components/Orders/Appointments/CalendarHeader.js +74 -0
  252. package/src/themes/callcenterOriginal/src/components/Orders/Appointments/EventComponent.js +38 -0
  253. package/src/themes/callcenterOriginal/src/components/Orders/Appointments/index.js +145 -0
  254. package/src/themes/callcenterOriginal/src/components/Orders/Appointments/styles.js +196 -0
  255. package/src/themes/callcenterOriginal/src/components/Orders/BusinessesSelector/index.js +37 -24
  256. package/src/themes/callcenterOriginal/src/components/Orders/CompanySelector/index.js +251 -0
  257. package/src/themes/callcenterOriginal/src/components/Orders/CompanySelector/styles.js +142 -0
  258. package/src/themes/callcenterOriginal/src/components/Orders/CountryFilter/index.js +19 -11
  259. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/index.js +135 -0
  260. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardForm/styles.js +135 -0
  261. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/cardUtils.js +111 -0
  262. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/index.js +161 -0
  263. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CardFormCustom/styles.js +20 -0
  264. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/index.js +267 -0
  265. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CartBill/styles.js +67 -0
  266. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/index.js +519 -0
  267. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Checkout/styles.js +85 -0
  268. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/index.js +90 -0
  269. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CouponControl/styles.js +22 -0
  270. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/index.js +132 -0
  271. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/CustomOrderDetails/styles.js +28 -0
  272. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/index.js +113 -0
  273. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/DriverTips/styles.js +91 -0
  274. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/index.js +115 -0
  275. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/Map/styles.js +10 -0
  276. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCard/index.js +70 -0
  277. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/index.js +83 -0
  278. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionCash/styles.js +50 -0
  279. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/index.js +43 -0
  280. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionPaypal/styles.js +5 -0
  281. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/index.js +105 -0
  282. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionSquare/styles.js +27 -0
  283. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/index.js +261 -0
  284. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionStripe/styles.js +159 -0
  285. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/index.js +172 -0
  286. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptionWallet/styles.js +33 -0
  287. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/index.js +440 -0
  288. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/PaymentOptions/styles.js +132 -0
  289. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/index.js +701 -0
  290. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductForm/styles.js +540 -0
  291. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/index.js +43 -0
  292. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductIngredient/styles.js +29 -0
  293. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/index.js +58 -0
  294. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOption/styles.js +76 -0
  295. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/index.js +182 -0
  296. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/ProductOptionSubOption/styles.js +195 -0
  297. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/index.js +67 -0
  298. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectBusinesses/styles.js +63 -0
  299. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/index.js +240 -0
  300. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectCustomer/styles.js +235 -0
  301. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/index.js +237 -0
  302. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SelectProducts/styles.js +161 -0
  303. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/index.js +105 -0
  304. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/SingleProductCard/styles.js +314 -0
  305. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/index.js +71 -0
  306. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeElementsForm/styles.js +13 -0
  307. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/index.js +90 -0
  308. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeMethodForm/styles.js +9 -0
  309. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/index.js +96 -0
  310. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/StripeRedirectForm/styles.js +73 -0
  311. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/index.js +69 -0
  312. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/TaxInformation/styles.js +25 -0
  313. package/src/themes/callcenterOriginal/src/components/Orders/CreateCustomOrder/index.js +45 -0
  314. package/src/themes/callcenterOriginal/src/components/Orders/CurrencyFilter/index.js +17 -9
  315. package/src/themes/callcenterOriginal/src/components/Orders/DateTypeSelector/index.js +2 -2
  316. package/src/themes/callcenterOriginal/src/components/Orders/DeliveriesLocation/index.js +5 -5
  317. package/src/themes/callcenterOriginal/src/components/Orders/DeliveriesManager/index.js +3 -3
  318. package/src/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/index.js +1 -0
  319. package/src/themes/callcenterOriginal/src/components/Orders/DeliveryDashboard/styles.js +1 -1
  320. package/src/themes/callcenterOriginal/src/components/Orders/DeliveryTypeSelector/index.js +30 -7
  321. package/src/themes/callcenterOriginal/src/components/Orders/DriverSelector/index.js +10 -0
  322. package/src/themes/callcenterOriginal/src/components/Orders/DriversBusyStatusFilter/styles.js +7 -1
  323. package/src/themes/callcenterOriginal/src/components/Orders/DriversDashboard/index.js +4 -4
  324. package/src/themes/callcenterOriginal/src/components/Orders/DriversDashboard/styles.js +1 -1
  325. package/src/themes/callcenterOriginal/src/components/Orders/DriversGroupTypeSelector/index.js +23 -9
  326. package/src/themes/callcenterOriginal/src/components/Orders/DriversList/index.js +16 -8
  327. package/src/themes/callcenterOriginal/src/components/Orders/DriversList/styles.js +2 -11
  328. package/src/themes/callcenterOriginal/src/components/Orders/DriversManager/index.js +6 -5
  329. package/src/themes/callcenterOriginal/src/components/Orders/DriversOnlineOfflineFilter/styles.js +8 -1
  330. package/src/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/index.js +178 -0
  331. package/src/themes/callcenterOriginal/src/components/Orders/GiftCardsListing/styles.js +116 -0
  332. package/src/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/index.js +39 -0
  333. package/src/themes/callcenterOriginal/src/components/Orders/GoogleGpsButton/styles.js +29 -0
  334. package/src/themes/callcenterOriginal/src/components/Orders/Logistics/index.js +10 -1
  335. package/src/themes/callcenterOriginal/src/components/Orders/Logistics/styles.js +6 -0
  336. package/src/themes/callcenterOriginal/src/components/Orders/Messages/index.js +191 -311
  337. package/src/themes/callcenterOriginal/src/components/Orders/Messages/styles.js +24 -4
  338. package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/RefundToWallet.js +221 -0
  339. package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/index.js +76 -35
  340. package/src/themes/callcenterOriginal/src/components/Orders/OrderBill/styles.js +104 -0
  341. package/src/themes/callcenterOriginal/src/components/Orders/OrderContactInformation/index.js +40 -17
  342. package/src/themes/callcenterOriginal/src/components/Orders/OrderDashboardSLASetting/index.js +1 -1
  343. package/src/themes/callcenterOriginal/src/components/Orders/OrderDelete/index.js +17 -71
  344. package/src/themes/callcenterOriginal/src/components/Orders/OrderDetails/index.js +75 -72
  345. package/src/themes/callcenterOriginal/src/components/Orders/OrderDetails/styles.js +4 -0
  346. package/src/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/index.js +101 -22
  347. package/src/themes/callcenterOriginal/src/components/Orders/OrderDetailsHeader/styles.js +27 -0
  348. package/src/themes/callcenterOriginal/src/components/Orders/OrderNotification/index.js +28 -5
  349. package/src/themes/callcenterOriginal/src/components/Orders/OrderStatusSubFilter/styles.js +1 -1
  350. package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrint/index.js +4 -3
  351. package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/index.js +251 -0
  352. package/src/themes/callcenterOriginal/src/components/Orders/OrderToPrintTicket/styles.js +68 -0
  353. package/src/themes/callcenterOriginal/src/components/Orders/OrdersCards/index.js +18 -9
  354. package/src/themes/callcenterOriginal/src/components/Orders/OrdersCards/styles.js +3 -1
  355. package/src/themes/callcenterOriginal/src/components/Orders/OrdersContentHeader/index.js +4 -1
  356. package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/index.js +4 -1
  357. package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardControls/styles.js +13 -11
  358. package/src/themes/callcenterOriginal/src/components/Orders/OrdersDashboardList/index.js +1 -0
  359. package/src/themes/callcenterOriginal/src/components/Orders/OrdersExportCSV/styles.js +16 -0
  360. package/src/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/index.js +120 -13
  361. package/src/themes/callcenterOriginal/src/components/Orders/OrdersFilterGroup/styles.js +26 -0
  362. package/src/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/index.js +20 -2
  363. package/src/themes/callcenterOriginal/src/components/Orders/OrdersLateralBar/styles.js +3 -1
  364. package/src/themes/callcenterOriginal/src/components/Orders/OrdersListing/index.js +7 -1
  365. package/src/themes/callcenterOriginal/src/components/Orders/OrdersManager/index.js +15 -9
  366. package/src/themes/callcenterOriginal/src/components/Orders/OrdersManager/styles.js +2 -15
  367. package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/index.js +270 -130
  368. package/src/themes/callcenterOriginal/src/components/Orders/OrdersTable/styles.js +14 -1
  369. package/src/themes/callcenterOriginal/src/components/Orders/PaymethodTypeSelector/index.js +22 -9
  370. package/src/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/index.js +63 -45
  371. package/src/themes/callcenterOriginal/src/components/Orders/ProductItemAccordion/styles.js +25 -0
  372. package/src/themes/callcenterOriginal/src/components/Orders/UserAddForm/index.js +383 -0
  373. package/src/themes/callcenterOriginal/src/components/Orders/UserAddForm/styles.js +205 -0
  374. package/src/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/index.js +76 -0
  375. package/src/themes/callcenterOriginal/src/components/Orders/UserTypeSelector/styles.js +11 -0
  376. package/src/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/index.js +138 -0
  377. package/src/themes/callcenterOriginal/src/components/Orders/WebsocketStatus/styles.js +171 -0
  378. package/src/themes/callcenterOriginal/src/components/Orders/index.js +7 -0
  379. package/src/themes/callcenterOriginal/src/components/Shared/AutoScroll/index.js +1 -0
  380. package/src/themes/callcenterOriginal/src/components/Shared/CitySelector/index.js +18 -9
  381. package/src/themes/callcenterOriginal/src/components/Shared/ColumnAllowSettingPopover/styles.js +1 -0
  382. package/src/themes/callcenterOriginal/src/components/Shared/Confirm/index.js +11 -1
  383. package/src/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/index.js +303 -36
  384. package/src/themes/callcenterOriginal/src/components/Shared/ConfirmAdmin/styles.js +95 -19
  385. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/index.js +172 -0
  386. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertImage/styles.js +136 -0
  387. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/index.js +73 -0
  388. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertLink/styles.js +34 -0
  389. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/index.js +51 -0
  390. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/InsertVideo/styles.js +23 -0
  391. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/index.js +172 -0
  392. package/src/themes/callcenterOriginal/src/components/Shared/HtmlEditor/styles.js +30 -0
  393. package/src/themes/callcenterOriginal/src/components/Shared/ImageCrop/index.js +77 -18
  394. package/src/themes/callcenterOriginal/src/components/Shared/ImageCrop/styles.js +18 -0
  395. package/src/themes/callcenterOriginal/src/components/Shared/InputPhoneNumber/index.js +6 -3
  396. package/src/themes/callcenterOriginal/src/components/Shared/LinkableText/index.js +17 -0
  397. package/src/themes/callcenterOriginal/src/components/Shared/Modal/index.js +7 -2
  398. package/src/themes/callcenterOriginal/src/components/Shared/Modal/styles.js +1 -1
  399. package/src/themes/callcenterOriginal/src/components/Shared/Pagination/styles.js +2 -2
  400. package/src/themes/callcenterOriginal/src/components/Shared/ProtectedRoute/index.js +7 -1
  401. package/src/themes/callcenterOriginal/src/components/Shared/RangeCalendar/index.js +7 -1
  402. package/src/themes/callcenterOriginal/src/components/Shared/Schedule/index.js +19 -4
  403. package/src/themes/callcenterOriginal/src/components/Shared/Schedule/styles.js +47 -12
  404. package/src/themes/callcenterOriginal/src/components/Shared/SearchBar/index.js +11 -4
  405. package/src/themes/callcenterOriginal/src/components/Shared/SearchBar/styles.js +19 -32
  406. package/src/themes/callcenterOriginal/src/components/Shared/SideBar/index.js +30 -10
  407. package/src/themes/callcenterOriginal/src/components/Shared/SideBar/styles.js +13 -14
  408. package/src/themes/callcenterOriginal/src/components/Shared/Tabs/index.js +28 -0
  409. package/src/themes/callcenterOriginal/src/components/Shared/index.js +8 -1
  410. package/src/themes/callcenterOriginal/src/components/Stores/BusinessSelectHeader/index.js +1 -1
  411. package/src/themes/callcenterOriginal/src/styles/Buttons/index.js +75 -48
  412. package/src/themes/callcenterOriginal/src/styles/index.js +2 -1
  413. package/src/themes/five/src/components/AddressForm/index.js +1 -2
  414. package/src/themes/five/src/components/AddressList/index.js +1 -3
  415. package/src/themes/five/src/components/BusinessController/index.js +2 -4
  416. package/src/themes/five/src/components/BusinessInformation/index.js +1 -2
  417. package/src/themes/five/src/components/BusinessInformation/styles.js +2 -2
  418. package/src/themes/five/src/components/BusinessPreorder/index.js +61 -10
  419. package/src/themes/five/src/components/BusinessPreorder/styles.js +93 -43
  420. package/src/themes/five/src/components/BusinessProductsCategories/index.js +2 -3
  421. package/src/themes/five/src/components/BusinessProductsList/index.js +1 -2
  422. package/src/themes/five/src/components/BusinessProductsListing/index.js +10 -3
  423. package/src/themes/five/src/components/BusinessProductsListing/styles.js +1 -1
  424. package/src/themes/five/src/components/BusinessesListing/layouts/OriginalBusinessesListing/index.js +6 -7
  425. package/src/themes/five/src/components/Cart/index.js +11 -4
  426. package/src/themes/five/src/components/CartPopover/index.js +2 -3
  427. package/src/themes/five/src/components/CartPopover/styles.js +1 -1
  428. package/src/themes/five/src/components/Checkout/index.js +2 -4
  429. package/src/themes/five/src/components/Confirm/styles.js +1 -1
  430. package/src/themes/five/src/components/DatePicker/index.js +1 -0
  431. package/src/themes/five/src/components/Favorite/index.js +4 -3
  432. package/src/themes/five/src/components/Footer/index.js +3 -2
  433. package/src/themes/five/src/components/Header/index.js +4 -5
  434. package/src/themes/five/src/components/HeaderOption/index.js +4 -3
  435. package/src/themes/five/src/components/HomeHero/layouts/OriginalHomeHero/index.js +7 -8
  436. package/src/themes/five/src/components/HorizontalOrdersLayout/styles.js +1 -0
  437. package/src/themes/five/src/components/Modal/styles.js +1 -1
  438. package/src/themes/five/src/components/MomentContent/index.js +17 -8
  439. package/src/themes/five/src/components/MomentControl/index.js +83 -45
  440. package/src/themes/five/src/components/MomentControl/styles.js +137 -34
  441. package/src/themes/five/src/components/MyOrders/index.js +1 -1
  442. package/src/themes/five/src/components/OrderDetails/index.js +50 -21
  443. package/src/themes/five/src/components/OrderDetails/layouts/Kiosk/index.js +4 -6
  444. package/src/themes/five/src/components/OrderTypeSelectorContent/index.js +13 -1
  445. package/src/themes/five/src/components/OrdersOption/PreviousBusinessOrdered/index.js +4 -3
  446. package/src/themes/five/src/components/PageBanner/index.js +64 -50
  447. package/src/themes/five/src/components/ProductForm/styles.js +1 -1
  448. package/src/themes/five/src/components/ProductItemAccordion/index.js +1 -2
  449. package/src/themes/five/src/components/ProductOption/styles.js +1 -1
  450. package/src/themes/five/src/components/RenderProductsLayout/index.js +9 -6
  451. package/src/themes/five/src/components/SingleProductCard/layouts/starbucks/index.js +1 -2
  452. package/src/themes/five/src/components/UserFormDetails/index.js +3 -4
  453. package/src/themes/five/src/components/UserPopover/index.js +3 -4
  454. package/src/themes/five/src/components/UserPopover/styles.js +1 -1
  455. package/src/themes/five/src/components/UserProfileForm/ProfileOptions/index.js +4 -3
  456. package/src/themes/five/src/components/UserProfileForm/index.js +2 -4
  457. package/src/themes/six/src/components/BusinessBasicInformation/index.js +8 -7
  458. package/src/themes/six/src/components/BusinessProductsListing/SearchProducts/index.js +2 -3
  459. package/src/utils/index.js +36 -1
  460. package/template/app.js +15 -10
  461. package/template/components/HelmetTags/index.js +3 -2
  462. package/template/pages/AddressList/index.js +4 -3
  463. package/template/pages/BusinessProductsList/index.js +5 -4
  464. package/template/pages/BusinessesList/index.js +6 -6
  465. package/template/pages/Checkout/index.js +6 -4
  466. package/template/pages/Home/index.js +4 -2
  467. package/template/pages/MessagesList/index.js +5 -4
  468. package/template/pages/MyOrders/index.js +6 -5
  469. package/template/pages/OrderDetails/index.js +4 -3
  470. package/_bundles/ordering-ui.a7ceb858d42e2be7e708.js +0 -2
  471. package/_modules/themes/callcenterOriginal/src/components/Orders/OrderDelete/styles.js +0 -19
  472. package/src/themes/callcenterOriginal/src/components/Orders/OrderDelete/styles.js +0 -40
  473. package/template/components/OrderingThemeUpdated/index.js +0 -41
  474. /package/_bundles/{7.ordering-ui.a7ceb858d42e2be7e708.js.LICENSE.txt → 7.ordering-ui.8384f3801abcc340af2a.js.LICENSE.txt} +0 -0
  475. /package/_bundles/{ordering-ui.a7ceb858d42e2be7e708.js.LICENSE.txt → ordering-ui.8384f3801abcc340af2a.js.LICENSE.txt} +0 -0
@@ -44,7 +44,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
44
44
  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; } }
45
45
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
46
46
  var CartUI = function CartUI(props) {
47
- var _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _configs$checkout_mul, _orderState$carts, _props$cart, _theme$viewString, _theme$viewString$com, _theme$viewString$com2, _theme$viewString$com3, _theme$viewString$com4, _validationFields$fie4, _validationFields$fie5, _validationFields$fie6, _theme$viewString2, _theme$viewString2$co, _theme$viewString2$co2, _theme$viewString2$co3, _theme$viewString2$co4, _orderState$options, _orderState$options2, _orderState$option, _orderState$option2, _props$beforeElements, _props$beforeComponen, _cart$products, _cart$offers, _cart$offers2, _cart$offers3, _cart$offers3$filter, _cart$offers4, _cart$offers4$filter, _cart$business, _ref, _cart$subtotal_with_d, _cart$taxes2, _cart$taxes3, _cart$fees, _cart$fees2, _cart$offers5, _cart$offers6, _cart$offers6$filter, _orderState$options3, _cart$offers7, _cart$offers8, _cart$offers8$filter, _configs$driver_tip_t, _configs$driver_tip_u, _orderState$options4, _validationFields$fie7, _validationFields$fie8, _validationFields$fie9, _configs$driver_tip_t2, _configs$driver_tip_u2, _configs$driver_tip_t3, _cart$payment_events, _cart$payment_events2, _orderState$options5, _cart$business2, _cart$business3, _curProduct$calendar_, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6, _props$afterComponent, _props$afterElements;
47
+ var _configs$driver_tip_o, _configs$driver_tip_o2, _configs$driver_tip_o3, _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _configs$checkout_mul, _orderState$carts, _props$cart, _theme$viewString, _theme$viewString$com, _theme$viewString$com2, _theme$viewString$com3, _theme$viewString$com4, _validationFields$fie4, _validationFields$fie5, _validationFields$fie6, _theme$viewString2, _theme$viewString2$co, _theme$viewString2$co2, _theme$viewString2$co3, _theme$viewString2$co4, _orderState$options, _orderState$options2, _cart$taxes, _orderState$option, _orderState$option2, _props$beforeElements, _props$beforeComponen, _cart$products, _cart$offers, _cart$offers2, _cart$offers3, _cart$offers3$filter, _cart$offers4, _cart$offers4$filter, _cart$business, _ref, _cart$subtotal_with_d, _cart$taxes3, _cart$taxes4, _cart$fees, _cart$fees2, _cart$offers5, _cart$offers6, _cart$offers6$filter, _orderState$options3, _cart$offers7, _cart$offers8, _cart$offers8$filter, _configs$driver_tip_t, _configs$driver_tip_u, _orderState$options4, _validationFields$fie7, _validationFields$fie8, _validationFields$fie9, _configs$driver_tip_t2, _configs$driver_tip_u2, _configs$driver_tip_t3, _cart$payment_events, _cart$payment_events2, _orderState$options5, _cart$business2, _cart$business3, _curProduct$calendar_, _openTaxModal$data, _openTaxModal$data2, _openTaxModal$data3, _openTaxModal$data4, _openTaxModal$data$fi, _openTaxModal$data5, _openTaxModal$data6, _props$afterComponent, _props$afterElements;
48
48
  var currentCartUuid = props.currentCartUuid,
49
49
  clearCart = props.clearCart,
50
50
  isProducts = props.isProducts,
@@ -170,6 +170,14 @@ var CartUI = function CartUI(props) {
170
170
  }, 0);
171
171
  }
172
172
  };
173
+ var subtotalWithTaxes = cart === null || cart === void 0 ? void 0 : (_cart$taxes = cart.taxes) === null || _cart$taxes === void 0 ? void 0 : _cart$taxes.reduce(function (acc, item) {
174
+ if ((item === null || item === void 0 ? void 0 : item.type) === 1) {
175
+ var _item$summary;
176
+ return acc = acc + (item === null || item === void 0 ? void 0 : (_item$summary = item.summary) === null || _item$summary === void 0 ? void 0 : _item$summary.tax);
177
+ }
178
+ return acc = acc;
179
+ }, cart === null || cart === void 0 ? void 0 : cart.subtotal);
180
+ console.log('cart', cart);
173
181
  var clearAmount = function clearAmount(value) {
174
182
  var _configs$format_numbe, _configs$format_numbe2;
175
183
  return parseFloat((Math.trunc(value * 100) / 100).toFixed((_configs$format_numbe = (_configs$format_numbe2 = configs.format_number_decimal_length) === null || _configs$format_numbe2 === void 0 ? void 0 : _configs$format_numbe2.value) !== null && _configs$format_numbe !== void 0 ? _configs$format_numbe : 2));
@@ -290,10 +298,10 @@ var CartUI = function CartUI(props) {
290
298
  handleClickCheckout(uuid);
291
299
  };
292
300
  var getIncludedTaxesDiscounts = function getIncludedTaxesDiscounts() {
293
- var _cart$taxes, _cart$taxes$filter;
294
- return cart === null || cart === void 0 ? void 0 : (_cart$taxes = cart.taxes) === null || _cart$taxes === void 0 ? void 0 : (_cart$taxes$filter = _cart$taxes.filter(function (tax) {
301
+ var _cart$taxes2, _cart$taxes2$filter;
302
+ return cart === null || cart === void 0 ? void 0 : (_cart$taxes2 = cart.taxes) === null || _cart$taxes2 === void 0 ? void 0 : (_cart$taxes2$filter = _cart$taxes2.filter(function (tax) {
295
303
  return (tax === null || tax === void 0 ? void 0 : tax.type) === 1;
296
- })) === null || _cart$taxes$filter === void 0 ? void 0 : _cart$taxes$filter.reduce(function (carry, tax) {
304
+ })) === null || _cart$taxes2$filter === void 0 ? void 0 : _cart$taxes2$filter.reduce(function (carry, tax) {
297
305
  var _tax$summary$tax_afte, _tax$summary2, _tax$summary3;
298
306
  return carry + ((_tax$summary$tax_afte = tax === null || tax === void 0 ? void 0 : (_tax$summary2 = tax.summary) === null || _tax$summary2 === void 0 ? void 0 : _tax$summary2.tax_after_discount) !== null && _tax$summary$tax_afte !== void 0 ? _tax$summary$tax_afte : tax === null || tax === void 0 ? void 0 : (_tax$summary3 = tax.summary) === null || _tax$summary3 === void 0 ? void 0 : _tax$summary3.tax);
299
307
  }, 0);
@@ -400,7 +408,7 @@ var CartUI = function CartUI(props) {
400
408
  }))), /*#__PURE__*/_react.default.createElement("td", null, "- ", parsePrice(offer === null || offer === void 0 ? void 0 : (_offer$summary = offer.summary) === null || _offer$summary === void 0 ? void 0 : _offer$summary.discount)));
401
409
  })), (cart === null || cart === void 0 ? void 0 : (_cart$offers4 = cart.offers) === null || _cart$offers4 === void 0 ? void 0 : (_cart$offers4$filter = _cart$offers4.filter(function (offer) {
402
410
  return (offer === null || offer === void 0 ? void 0 : offer.target) === 1;
403
- })) === null || _cart$offers4$filter === void 0 ? void 0 : _cart$offers4$filter.length) > 0 && (cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) > 0 && (cart === null || cart === void 0 ? void 0 : cart.discount) > 0 && (cart === null || cart === void 0 ? void 0 : cart.total) >= 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, t('SUBTOTAL_WITH_DISCOUNT', 'Subtotal with discount')), (cart === null || cart === void 0 ? void 0 : (_cart$business = cart.business) === null || _cart$business === void 0 ? void 0 : _cart$business.tax_type) === 1 ? /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_ref = (cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) + getIncludedTaxesDiscounts()) !== null && _ref !== void 0 ? _ref : 0)) : /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_cart$subtotal_with_d = cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) !== null && _cart$subtotal_with_d !== void 0 ? _cart$subtotal_with_d : 0))), (cart === null || cart === void 0 ? void 0 : (_cart$taxes2 = cart.taxes) === null || _cart$taxes2 === void 0 ? void 0 : _cart$taxes2.length) > 0 && (cart === null || cart === void 0 ? void 0 : (_cart$taxes3 = cart.taxes) === null || _cart$taxes3 === void 0 ? void 0 : _cart$taxes3.filter(function (tax) {
411
+ })) === null || _cart$offers4$filter === void 0 ? void 0 : _cart$offers4$filter.length) > 0 && (cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) > 0 && (cart === null || cart === void 0 ? void 0 : cart.discount) > 0 && (cart === null || cart === void 0 ? void 0 : cart.total) >= 0 && /*#__PURE__*/_react.default.createElement("tr", null, /*#__PURE__*/_react.default.createElement("td", null, t('SUBTOTAL_WITH_DISCOUNT', 'Subtotal with discount')), (cart === null || cart === void 0 ? void 0 : (_cart$business = cart.business) === null || _cart$business === void 0 ? void 0 : _cart$business.tax_type) === 1 ? /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_ref = (cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) + getIncludedTaxesDiscounts()) !== null && _ref !== void 0 ? _ref : 0)) : /*#__PURE__*/_react.default.createElement("td", null, parsePrice((_cart$subtotal_with_d = cart === null || cart === void 0 ? void 0 : cart.subtotal_with_discount) !== null && _cart$subtotal_with_d !== void 0 ? _cart$subtotal_with_d : 0))), (cart === null || cart === void 0 ? void 0 : (_cart$taxes3 = cart.taxes) === null || _cart$taxes3 === void 0 ? void 0 : _cart$taxes3.length) > 0 && (cart === null || cart === void 0 ? void 0 : (_cart$taxes4 = cart.taxes) === null || _cart$taxes4 === void 0 ? void 0 : _cart$taxes4.filter(function (tax) {
404
412
  return (tax === null || tax === void 0 ? void 0 : tax.type) === 2 && (tax === null || tax === void 0 ? void 0 : tax.rate) !== 0;
405
413
  }).map(function (tax) {
406
414
  var _ref2, _tax$summary$tax_afte2, _tax$summary4, _tax$summary5;
@@ -556,13 +564,13 @@ var CartUI = function CartUI(props) {
556
564
  cateringPreorder: true,
557
565
  isCart: true,
558
566
  business: cart === null || cart === void 0 ? void 0 : cart.business
559
- }, cateringValues))), (onClickCheckout || isForceOpenCart) && !isCheckout && (cart === null || cart === void 0 ? void 0 : cart.valid_products) && (!isMultiCheckout || isStore) && /*#__PURE__*/_react.default.createElement(_styles.CheckoutAction, null, /*#__PURE__*/_react.default.createElement("p", null, (cart === null || cart === void 0 ? void 0 : cart.total) >= 1 && parsePrice(cart === null || cart === void 0 ? void 0 : cart.total)), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
560
- color: !(cart !== null && cart !== void 0 && cart.valid_maximum) || !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) || !(cart !== null && cart !== void 0 && cart.valid_address) ? 'secundary' : 'primary',
567
+ }, cateringValues))), (onClickCheckout || isForceOpenCart) && !isCheckout && (cart === null || cart === void 0 ? void 0 : cart.valid) && (!isMultiCheckout || isStore) && /*#__PURE__*/_react.default.createElement(_styles.CheckoutAction, null, /*#__PURE__*/_react.default.createElement("p", null, (cart === null || cart === void 0 ? void 0 : cart.total) >= 1 && parsePrice(cart === null || cart === void 0 ? void 0 : cart.total)), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
568
+ color: !(cart !== null && cart !== void 0 && cart.valid_maximum) || subtotalWithTaxes < (cart === null || cart === void 0 ? void 0 : cart.minimum) || !(cart !== null && cart !== void 0 && cart.valid_address) ? 'secundary' : 'primary',
561
569
  onClick: function onClick() {
562
570
  return checkOutBtnClick(cart === null || cart === void 0 ? void 0 : cart.uuid);
563
571
  },
564
- disabled: openUpselling && !canOpenUpselling || !(cart !== null && cart !== void 0 && cart.valid_maximum) || !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) || !(cart !== null && cart !== void 0 && cart.valid_address)
565
- }, !(cart !== null && cart !== void 0 && cart.valid_address) ? t('OUT_OF_COVERAGE', 'Out of Coverage') : !(cart !== null && cart !== void 0 && cart.valid_maximum) ? "".concat(t('MAXIMUM_SUBTOTAL_ORDER', 'Maximum subtotal order'), ": ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.maximum)) : !(cart !== null && cart !== void 0 && cart.valid_minimum) && !((cart === null || cart === void 0 ? void 0 : cart.discount_type) === 1 && (cart === null || cart === void 0 ? void 0 : cart.discount_rate) === 100) ? "".concat(t('MINIMUN_SUBTOTAL_ORDER', 'Minimum subtotal order:'), " ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.minimum)) : !openUpselling ^ canOpenUpselling ? t('CHECKOUT', 'Checkout') : t('LOADING', 'Loading')))), !isStore && /*#__PURE__*/_react.default.createElement(_styles.Divider, null), /*#__PURE__*/_react.default.createElement(_Confirm.Confirm, {
572
+ disabled: openUpselling && !canOpenUpselling || !(cart !== null && cart !== void 0 && cart.valid_maximum) || subtotalWithTaxes < (cart === null || cart === void 0 ? void 0 : cart.minimum) || !(cart !== null && cart !== void 0 && cart.valid_address)
573
+ }, !(cart !== null && cart !== void 0 && cart.valid_address) ? t('OUT_OF_COVERAGE', 'Out of Coverage') : !(cart !== null && cart !== void 0 && cart.valid_maximum) ? "".concat(t('MAXIMUM_SUBTOTAL_ORDER', 'Maximum subtotal order'), ": ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.maximum)) : subtotalWithTaxes < (cart === null || cart === void 0 ? void 0 : cart.minimum) ? "".concat(t('MINIMUN_SUBTOTAL_ORDER', 'Minimum subtotal order:'), " ").concat(parsePrice(cart === null || cart === void 0 ? void 0 : cart.minimum)) : !openUpselling ^ canOpenUpselling ? t('CHECKOUT', 'Checkout') : t('LOADING', 'Loading')))), !isStore && /*#__PURE__*/_react.default.createElement(_styles.Divider, null), /*#__PURE__*/_react.default.createElement(_Confirm.Confirm, {
566
574
  title: t('PRODUCT', 'Product'),
567
575
  content: confirm.content,
568
576
  acceptText: t('ACCEPT', 'Accept'),
@@ -31,7 +31,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
31
31
  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; } }
32
32
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
33
33
  var CartPopover = function CartPopover(props) {
34
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _theme$header, _theme$header$compone, _theme$header$compone2, _theme$header$compone3, _theme$header$compone4, _props$beforeElements, _props$beforeComponen, _props$carts, _props$carts2, _theme$header2, _theme$header2$compon, _theme$header2$compon2, _theme$header2$compon3, _theme$header2$compon4, _props$afterComponent, _props$afterElements;
34
+ var _theme$header, _theme$header$compone, _theme$header$compone2, _theme$header$compone3, _theme$header2, _theme$header2$compon, _theme$header2$compon2, _theme$header2$compon3, _theme$header2$compon4, _props$beforeElements, _props$beforeComponen, _props$carts, _props$carts2, _theme$header3, _theme$header3$compon, _theme$header3$compon2, _theme$header3$compon3, _theme$header3$compon4, _props$afterComponent, _props$afterElements;
35
35
  var open = props.open,
36
36
  auth = props.auth,
37
37
  location = props.location,
@@ -47,13 +47,10 @@ var CartPopover = function CartPopover(props) {
47
47
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
48
48
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
49
49
  t = _useLanguage2[1];
50
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
51
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
52
- orderingTheme = _useOrderingTheme2[0];
53
50
  var referenceElement = (0, _react.useRef)();
54
51
  var popperElement = (0, _react.useRef)();
55
52
  var arrowElement = (0, _react.useRef)();
56
- var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.header) === 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.layout) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.type) === null || _orderingTheme$theme$4 === void 0 ? void 0 : _orderingTheme$theme$4.toLowerCase()) === 'chew';
53
+ var isChew = (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.layout) === null || _theme$header$compone2 === void 0 ? void 0 : (_theme$header$compone3 = _theme$header$compone2.type) === null || _theme$header$compone3 === void 0 ? void 0 : _theme$header$compone3.toLowerCase()) === 'chew';
57
54
  var popper = (0, _reactPopper.usePopper)(referenceElement.current, popperElement.current, {
58
55
  placement: theme !== null && theme !== void 0 && theme.rtl ? 'bottom' : 'bottom-end',
59
56
  modifiers: [{
@@ -70,7 +67,7 @@ var CartPopover = function CartPopover(props) {
70
67
  });
71
68
  var styles = popper.styles,
72
69
  attributes = popper.attributes;
73
- var isSlideBar = (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.cart) === null || _theme$header$compone2 === void 0 ? void 0 : (_theme$header$compone3 = _theme$header$compone2.components) === null || _theme$header$compone3 === void 0 ? void 0 : (_theme$header$compone4 = _theme$header$compone3.open_strategy) === null || _theme$header$compone4 === void 0 ? void 0 : _theme$header$compone4.type) === 'slide';
70
+ var isSlideBar = (theme === null || theme === void 0 ? void 0 : (_theme$header2 = theme.header) === null || _theme$header2 === void 0 ? void 0 : (_theme$header2$compon = _theme$header2.components) === null || _theme$header2$compon === void 0 ? void 0 : (_theme$header2$compon2 = _theme$header2$compon.cart) === null || _theme$header2$compon2 === void 0 ? void 0 : (_theme$header2$compon3 = _theme$header2$compon2.components) === null || _theme$header2$compon3 === void 0 ? void 0 : (_theme$header2$compon4 = _theme$header2$compon3.open_strategy) === null || _theme$header2$compon4 === void 0 ? void 0 : _theme$header2$compon4.type) === 'slide';
74
71
  (0, _react.useEffect)(function () {
75
72
  // forceUpdate && forceUpdate()
76
73
  }, [open, orderState]);
@@ -144,7 +141,7 @@ var CartPopover = function CartPopover(props) {
144
141
  onClose: props.onClose,
145
142
  hideCloseDefault: true,
146
143
  isSlideBar: true,
147
- slideBarPosition: theme === null || theme === void 0 ? void 0 : (_theme$header2 = theme.header) === null || _theme$header2 === void 0 ? void 0 : (_theme$header2$compon = _theme$header2.components) === null || _theme$header2$compon === void 0 ? void 0 : (_theme$header2$compon2 = _theme$header2$compon.cart) === null || _theme$header2$compon2 === void 0 ? void 0 : (_theme$header2$compon3 = _theme$header2$compon2.components) === null || _theme$header2$compon3 === void 0 ? void 0 : (_theme$header2$compon4 = _theme$header2$compon3.open_strategy) === null || _theme$header2$compon4 === void 0 ? void 0 : _theme$header2$compon4.position
144
+ slideBarPosition: theme === null || theme === void 0 ? void 0 : (_theme$header3 = theme.header) === null || _theme$header3 === void 0 ? void 0 : (_theme$header3$compon = _theme$header3.components) === null || _theme$header3$compon === void 0 ? void 0 : (_theme$header3$compon2 = _theme$header3$compon.cart) === null || _theme$header3$compon2 === void 0 ? void 0 : (_theme$header3$compon3 = _theme$header3$compon2.components) === null || _theme$header3$compon3 === void 0 ? void 0 : (_theme$header3$compon4 = _theme$header3$compon3.open_strategy) === null || _theme$header3$compon4 === void 0 ? void 0 : _theme$header3$compon4.position
148
145
  }, /*#__PURE__*/_react.default.createElement(_styles.TitleContainer, null, /*#__PURE__*/_react.default.createElement(_styles.Title, null, t('MY_CART', 'My cart')), /*#__PURE__*/_react.default.createElement(_Buttons.Button, {
149
146
  outline: true,
150
147
  color: "primary",
@@ -19,7 +19,10 @@ var HeaderItem = _styledComponents.default.div(_templateObject || (_templateObje
19
19
  return (_props$theme = props.theme) !== null && _props$theme !== void 0 && _props$theme.rtl ? (0, _styledComponents.css)(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: 10px;\n "]))) : (0, _styledComponents.css)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-left: 10px;\n "])));
20
20
  });
21
21
  exports.HeaderItem = HeaderItem;
22
- var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: #FFF;\n color: #333;\n padding: 15px;\n border-radius: 10px;\n max-width: 500px;\n z-index: 10002;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n"])));
22
+ var PopoverBody = _styledComponents.default.div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n background-color: ", ";\n color: #333;\n padding: 15px;\n border-radius: 10px;\n max-width: 500px;\n z-index: 10002;\n box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 24px;\n"])), function (props) {
23
+ var _props$theme2, _props$theme2$colors;
24
+ return (_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : (_props$theme2$colors = _props$theme2.colors) === null || _props$theme2$colors === void 0 ? void 0 : _props$theme2$colors.backgroundPage;
25
+ });
23
26
  exports.PopoverBody = PopoverBody;
24
27
  var PopoverArrow = _styledComponents.default.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n width: 0;\n height: 0;\n border-left: 7px solid transparent;\n border-right: 7px solid transparent;\n border-bottom: 8px solid #FFF;\n top: -8px;\n"])));
25
28
  exports.PopoverArrow = PopoverArrow;
@@ -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, _validationFields$fie7, _validationFields$fie8, _validationFields$fie9, _validationFields$fie10, _validationFields$fie11, _validationFields$fie12, _paymethodSelected$da, _paymethodSelected$da2, _paymethodSelected$da3, _cardList$cards, _cartState$cart, _validationFields$fie13, _validationFields$fie14, _validationFields$fie15, _validationFields$fie16, _validationFields$fie17, _validationFields$fie18, _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$fie19, _validationFields$fie20, _validationFields$fie21, _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$fie30, _validationFields$fie31, _validationFields$fie32, _validationFields$fie33, _validationFields$fie34, _validationFields$fie35, _customerState$user3;
65
+ var _businessDetails$busi, _businessDetails$busi2, _configs$table_numer_, _businessConfigs$find, _businessConfigs$find2, _configs$cash_wallet, _configs$wallet_enabl, _theme$header, _theme$header$compone, _theme$header$compone2, _theme$header$compone3, _validationFields$fie, _validationFields$fie2, _validationFields$fie3, _validationFields$fie4, _validationFields$fie5, _validationFields$fie6, _cart$comment, _validationFields$fie7, _validationFields$fie8, _validationFields$fie9, _validationFields$fie10, _validationFields$fie11, _validationFields$fie12, _paymethodSelected$da, _paymethodSelected$da2, _paymethodSelected$da3, _cardList$cards, _cartState$cart, _validationFields$fie13, _validationFields$fie14, _validationFields$fie15, _validationFields$fie16, _validationFields$fie17, _validationFields$fie18, _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$fie19, _validationFields$fie20, _validationFields$fie21, _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$fie30, _validationFields$fie31, _validationFields$fie32, _validationFields$fie33, _validationFields$fie34, _validationFields$fie35, _customerState$user3;
66
66
  var cart = props.cart,
67
67
  errors = props.errors,
68
68
  placing = props.placing,
@@ -88,9 +88,6 @@ var CheckoutUI = function CheckoutUI(props) {
88
88
  var _useValidationFields = (0, _orderingComponentsExternal.useValidationFields)(),
89
89
  _useValidationFields2 = _slicedToArray(_useValidationFields, 1),
90
90
  validationFields = _useValidationFields2[0];
91
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
92
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
93
- orderingTheme = _useOrderingTheme2[0];
94
91
  var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
95
92
  _useOrder2 = _slicedToArray(_useOrder, 1),
96
93
  _useOrder2$ = _useOrder2[0],
@@ -183,7 +180,7 @@ var CheckoutUI = function CheckoutUI(props) {
183
180
  return config.key === 'wallet_credit_point_enabled';
184
181
  })) === null || _businessConfigs$find2 === void 0 ? void 0 : _businessConfigs$find2.value) === '1';
185
182
  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' && (isWalletCashEnabled || isWalletCreditPointsEnabled) && !useKioskApp && !isCustomerMode;
186
- var isMultiDriverTips = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.header) === 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.layout) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.type) === null || _orderingTheme$theme$4 === void 0 ? void 0 : _orderingTheme$theme$4.toLowerCase()) === 'chew';
183
+ var isMultiDriverTips = (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.layout) === null || _theme$header$compone2 === void 0 ? void 0 : (_theme$header$compone3 = _theme$header$compone2.type) === null || _theme$header$compone3 === void 0 ? void 0 : _theme$header$compone3.toLowerCase()) === 'chew';
187
184
  var placeSpotTypes = [3, 4, 5];
188
185
  var placeSpotsEnabled = placeSpotTypes.includes(options === null || options === void 0 ? void 0 : options.type) && !useKioskApp;
189
186
  var isGiftCardCart = !(cart !== null && cart !== void 0 && cart.business_id);
@@ -195,7 +192,7 @@ var CheckoutUI = function CheckoutUI(props) {
195
192
  // (((placeSpotTypes.includes(options?.type) && !cart?.place) && hasBusinessPlaces)) ||
196
193
  options.type === 1 && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie13 = validationFields.fields) === null || _validationFields$fie13 === void 0 ? void 0 : (_validationFields$fie14 = _validationFields$fie13.checkout) === null || _validationFields$fie14 === void 0 ? void 0 : (_validationFields$fie15 = _validationFields$fie14.driver_tip) === null || _validationFields$fie15 === void 0 ? void 0 : _validationFields$fie15.enabled) && (validationFields === null || validationFields === void 0 ? void 0 : (_validationFields$fie16 = validationFields.fields) === null || _validationFields$fie16 === void 0 ? void 0 : (_validationFields$fie17 = _validationFields$fie16.checkout) === null || _validationFields$fie17 === void 0 ? void 0 : (_validationFields$fie18 = _validationFields$fie17.driver_tip) === null || _validationFields$fie18 === void 0 ? void 0 : _validationFields$fie18.required) && Number(cart === null || cart === void 0 ? void 0 : cart.driver_tip) <= 0 || validateCommentsCartField || validateZipcodeCard;
197
194
  var driverTipsOptions = typeof (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o = configs.driver_tip_options) === null || _configs$driver_tip_o === void 0 ? void 0 : _configs$driver_tip_o.value) === 'string' ? JSON.parse(configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o2 = configs.driver_tip_options) === null || _configs$driver_tip_o2 === void 0 ? void 0 : _configs$driver_tip_o2.value) || [] : (configs === null || configs === void 0 ? void 0 : (_configs$driver_tip_o3 = configs.driver_tip_options) === null || _configs$driver_tip_o3 === void 0 ? void 0 : _configs$driver_tip_o3.value) || [];
198
- var deliveryOptions = (instructionsOptions === null || instructionsOptions === void 0 ? void 0 : instructionsOptions.result) && (instructionsOptions === null || instructionsOptions === void 0 ? void 0 : (_instructionsOptions$ = instructionsOptions.result) === null || _instructionsOptions$ === void 0 ? void 0 : (_instructionsOptions$2 = _instructionsOptions$.filter(function (option) {
195
+ var deliveryOptions = (instructionsOptions === null || instructionsOptions === void 0 ? void 0 : instructionsOptions.result) && Array.isArray(instructionsOptions === null || instructionsOptions === void 0 ? void 0 : instructionsOptions.result) && (instructionsOptions === null || instructionsOptions === void 0 ? void 0 : (_instructionsOptions$ = instructionsOptions.result) === null || _instructionsOptions$ === void 0 ? void 0 : (_instructionsOptions$2 = _instructionsOptions$.filter(function (option) {
199
196
  return option === null || option === void 0 ? void 0 : option.enabled;
200
197
  })) === null || _instructionsOptions$2 === void 0 ? void 0 : _instructionsOptions$2.map(function (option) {
201
198
  return {
@@ -22,31 +22,34 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
22
22
 
23
23
  var PopupWrap = _styledComponents.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n align-items: center;\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n z-index: 1001;\n outline: none;\n"])));
24
24
  exports.PopupWrap = PopupWrap;
25
- var PopupDialog = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: #FFF;\n padding: 20px;\n width: 70%;\n border-radius: 10px;\n"])));
25
+ var PopupDialog = _styledComponents.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background-color: ", ";\n padding: 20px;\n width: 70%;\n border-radius: 10px;\n"])), function (props) {
26
+ var _props$theme, _props$theme$colors;
27
+ return (_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : (_props$theme$colors = _props$theme.colors) === null || _props$theme$colors === void 0 ? void 0 : _props$theme$colors.backgroundPage;
28
+ });
26
29
  exports.PopupDialog = PopupDialog;
27
30
  var PopupActions = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n margin: 30px 0px 0px;\n button {\n width: 100%;\n border-radius: 7.6px;\n opacity: 1;\n height: 45px;\n &:nth-child(1) {\n margin-right: 25px;\n ", " \n }\n &:last-child {\n ", " \n }\n }\n"])), function (props) {
28
- var _props$theme;
29
- return ((_props$theme = props.theme) === null || _props$theme === void 0 ? void 0 : _props$theme.rtl) && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: 25px;\n margin-right: 0; \n "])));
30
- }, function (props) {
31
31
  var _props$theme2;
32
- return (_props$theme2 = props.theme) !== null && _props$theme2 !== void 0 && _props$theme2.rtl ? (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-left: 0;\n "]))) : (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-right: 0;\n "])));
32
+ return ((_props$theme2 = props.theme) === null || _props$theme2 === void 0 ? void 0 : _props$theme2.rtl) && (0, _styledComponents.css)(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: 25px;\n margin-right: 0; \n "])));
33
+ }, function (props) {
34
+ var _props$theme3;
35
+ return (_props$theme3 = props.theme) !== null && _props$theme3 !== void 0 && _props$theme3.rtl ? (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-left: 0;\n "]))) : (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n margin-right: 0;\n "])));
33
36
  });
34
37
  exports.PopupActions = PopupActions;
35
38
  var PopupTitle = _styledComponents.default.h2(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n text-align: left;\n letter-spacing: 0px;\n color: #010300;\n opacity: 1;\n margin-top: 0px;\n ", " \n"])), function (props) {
36
- var _props$theme3;
37
- return ((_props$theme3 = props.theme) === null || _props$theme3 === void 0 ? void 0 : _props$theme3.rtl) && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
39
+ var _props$theme4;
40
+ return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
38
41
  });
39
42
  exports.PopupTitle = PopupTitle;
40
43
  var PopupContent = _styledComponents.default.div(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n text-align: left;\n letter-spacing: 0px;\n color: #010300;\n opacity: 1;\n ", " \n ul {\n padding-left: 30px;\n ", "\n li {\n margin-top: 7px;\n margin-bottom: 7px;\n }\n }\n"])), function (props) {
41
- var _props$theme4;
42
- return ((_props$theme4 = props.theme) === null || _props$theme4 === void 0 ? void 0 : _props$theme4.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
43
- }, function (props) {
44
44
  var _props$theme5;
45
- return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding-right: 30px;\n padding-left: 0;\n "])));
45
+ return ((_props$theme5 = props.theme) === null || _props$theme5 === void 0 ? void 0 : _props$theme5.rtl) && (0, _styledComponents.css)(_templateObject10 || (_templateObject10 = _taggedTemplateLiteral(["\n text-align: right;\n "])));
46
+ }, function (props) {
47
+ var _props$theme6;
48
+ return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject11 || (_templateObject11 = _taggedTemplateLiteral(["\n padding-right: 30px;\n padding-left: 0;\n "])));
46
49
  });
47
50
  exports.PopupContent = PopupContent;
48
51
  var PopupIcon = _styledComponents.default.span(_templateObject12 || (_templateObject12 = _taggedTemplateLiteral(["\n float: right;\n font-size: 30px;\n cursor: pointer;\n ", "\n"])), function (props) {
49
- var _props$theme6;
50
- return ((_props$theme6 = props.theme) === null || _props$theme6 === void 0 ? void 0 : _props$theme6.rtl) && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n float: left;\n "])));
52
+ var _props$theme7;
53
+ return ((_props$theme7 = props.theme) === null || _props$theme7 === void 0 ? void 0 : _props$theme7.rtl) && (0, _styledComponents.css)(_templateObject13 || (_templateObject13 = _taggedTemplateLiteral(["\n float: left;\n "])));
51
54
  });
52
55
  exports.PopupIcon = PopupIcon;
@@ -17,7 +17,8 @@ var DatePickerUI = function DatePickerUI(props) {
17
17
  return /*#__PURE__*/_react.default.createElement(_styles.DateContainer, null, /*#__PURE__*/_react.default.createElement(_reactDateRange.Calendar, {
18
18
  date: value,
19
19
  name: name,
20
- onChange: onChange
20
+ onChange: onChange,
21
+ maxDate: new Date()
21
22
  }));
22
23
  };
23
24
  exports.DatePickerUI = DatePickerUI;
@@ -10,6 +10,7 @@ var _orderingComponentsExternal = require("ordering-components-external");
10
10
  var _FavoriteList = require("../FavoriteList");
11
11
  var _Tabs = require("../../styles/Tabs");
12
12
  var _styles = require("./styles");
13
+ var _styledComponents = require("styled-components");
13
14
  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); }
14
15
  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; }
15
16
  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); }
@@ -20,17 +21,15 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
20
21
  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; } }
21
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
22
23
  var Favorite = function Favorite(props) {
23
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _props$beforeElements, _props$beforeComponen, _orderState$options, _orderState$options$a, _orderState$options$a2, _orderState$options2, _orderState$options2$, _orderState$options2$2, _props$afterComponent, _props$afterElements;
24
+ var _theme$favorite, _theme$favorite$compo, _theme$favorite$compo2, _props$beforeElements, _props$beforeComponen, _orderState$options, _orderState$options$a, _orderState$options$a2, _orderState$options2, _orderState$options2$, _orderState$options2$2, _props$afterComponent, _props$afterElements;
24
25
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
25
26
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
26
27
  t = _useLanguage2[1];
27
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
28
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
29
- orderingTheme = _useOrderingTheme2[0];
30
28
  var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
31
29
  _useOrder2 = _slicedToArray(_useOrder, 1),
32
30
  orderState = _useOrder2[0];
33
- var layout = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.favorite) === 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.layout) === null || _orderingTheme$theme$3 === void 0 ? void 0 : _orderingTheme$theme$3.type) || 'original';
31
+ var theme = (0, _styledComponents.useTheme)();
32
+ var layout = (theme === null || theme === void 0 ? void 0 : (_theme$favorite = theme.favorite) === null || _theme$favorite === void 0 ? void 0 : (_theme$favorite$compo = _theme$favorite.components) === null || _theme$favorite$compo === void 0 ? void 0 : (_theme$favorite$compo2 = _theme$favorite$compo.layout) === null || _theme$favorite$compo2 === void 0 ? void 0 : _theme$favorite$compo2.type) || 'original';
34
33
  var _useState = (0, _react.useState)('businesses'),
35
34
  _useState2 = _slicedToArray(_useState, 2),
36
35
  tabSelected = _useState2[0],
@@ -8,6 +8,7 @@ exports.default = exports.Footer = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _orderingComponentsExternal = require("ordering-components-external");
10
10
  var _styles = require("./styles");
11
+ var _styledComponents = require("styled-components");
11
12
  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
13
  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
14
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
@@ -38,9 +39,7 @@ var Footer = function Footer(_ref) {
38
39
  var _useApi = (0, _orderingComponentsExternal.useApi)(),
39
40
  _useApi2 = _slicedToArray(_useApi, 1),
40
41
  ordering = _useApi2[0];
41
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
42
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
43
- theme = _useOrderingTheme2[0].theme;
42
+ var theme = (0, _styledComponents.useTheme)();
44
43
  var requestsState = {};
45
44
  var _useConfig = (0, _orderingComponentsExternal.useConfig)(),
46
45
  _useConfig2 = _slicedToArray(_useConfig, 1),
@@ -52,7 +52,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
52
52
  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; } }
53
53
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
54
54
  var Header = function Header(props) {
55
- var _window$location$path, _configState$configs, _configState$configs$, _configState$configs2, _configState$configs3, _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _theme$header, _theme$header$compone, _theme$header$compone2, _orderState$options, _orderState$options2, _Object$keys, _customerState$user, _orderState$options5, _orderState$options5$, _theme$images, _theme$images$logos, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _theme$images2, _theme$images2$logos, _theme$images3, _theme$images3$logos, _theme$images4, _theme$images4$logos, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _theme$images5, _theme$images5$logos, _orderState$options7, _orderState$options7$, _orderState$options8, _orderState$options8$, _configState$configs4, _configState$configs5, _configState$configs6, _configState$configs7, _configState$configs8, _configState$configs9, _orderState$options9, _orderState$options10, _configState$configs10, _configState$configs11, _theme$defaultLanguag2, _theme$defaultLanguag3, _orderState$options11, _orderState$options12, _configState$configs14, _configState$configs15, _orderState$options13, _configState$configs16, _configState$configs17, _configState$configs18, _configState$configs19, _orderState$options14, _orderState$options15, _configState$configs20, _configState$configs21, _orderState$options16, _configState$configs22, _configState$configs23, _configState$configs24, _configState$configs25, _orderState$options17, _orderState$options18, _customerState$user2, _customerState$user3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9;
55
+ var _window$location$path, _configState$configs, _configState$configs$, _configState$configs2, _configState$configs3, _theme$header, _theme$header$compone, _theme$header$compone2, _theme$header$compone3, _theme$header2, _theme$header2$compon, _theme$header2$compon2, _orderState$options, _orderState$options2, _Object$keys, _customerState$user, _orderState$options5, _orderState$options5$, _theme$images, _theme$images$logos, _theme$my_products, _theme$my_products$co, _theme$my_products$co2, _theme$my_products$co3, _theme$my_products$co4, _theme$my_products$co5, _theme$images2, _theme$images2$logos, _theme$images3, _theme$images3$logos, _theme$images4, _theme$images4$logos, _theme$my_products2, _theme$my_products2$c, _theme$my_products2$c2, _theme$my_products2$c3, _theme$my_products2$c4, _theme$my_products2$c5, _theme$images5, _theme$images5$logos, _orderState$options7, _orderState$options7$, _orderState$options8, _orderState$options8$, _configState$configs4, _configState$configs5, _configState$configs6, _configState$configs7, _configState$configs8, _configState$configs9, _orderState$options9, _orderState$options10, _configState$configs10, _configState$configs11, _theme$defaultLanguag2, _theme$defaultLanguag3, _orderState$options11, _orderState$options12, _configState$configs14, _configState$configs15, _orderState$options13, _configState$configs16, _configState$configs17, _configState$configs18, _configState$configs19, _orderState$options14, _orderState$options15, _configState$configs20, _configState$configs21, _orderState$options16, _configState$configs22, _configState$configs23, _configState$configs24, _configState$configs25, _orderState$options17, _orderState$options18, _customerState$user2, _customerState$user3, _theme$defaultLanguag4, _theme$defaultLanguag5, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9;
56
56
  var isHome = props.isHome,
57
57
  location = props.location,
58
58
  isShowOrderOptions = props.isShowOrderOptions,
@@ -93,9 +93,6 @@ var Header = function Header(props) {
93
93
  _useCustomer2 = _slicedToArray(_useCustomer, 2),
94
94
  customerState = _useCustomer2[0],
95
95
  deleteUserCustomer = _useCustomer2[1].deleteUserCustomer;
96
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
97
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
98
- orderingTheme = _useOrderingTheme2[0];
99
96
  var _useBusiness = (0, _orderingComponentsExternal.useBusiness)(),
100
97
  _useBusiness2 = _slicedToArray(_useBusiness, 1),
101
98
  business = _useBusiness2[0].business;
@@ -161,8 +158,8 @@ var Header = function Header(props) {
161
158
  return Number(value);
162
159
  })) || [];
163
160
  var isPreOrderSetting = (configState === null || configState === void 0 ? void 0 : (_configState$configs2 = configState.configs) === null || _configState$configs2 === void 0 ? void 0 : (_configState$configs3 = _configState$configs2.preorder_status_enabled) === null || _configState$configs3 === void 0 ? void 0 : _configState$configs3.value) === '1';
164
- var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.header) === 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.layout) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.type) === null || _orderingTheme$theme$4 === void 0 ? void 0 : _orderingTheme$theme$4.toLowerCase()) === 'chew';
165
- var isHideLanguages = theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.language_selector) === null || _theme$header$compone2 === void 0 ? void 0 : _theme$header$compone2.hidden;
161
+ var isChew = (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.layout) === null || _theme$header$compone2 === void 0 ? void 0 : (_theme$header$compone3 = _theme$header$compone2.type) === null || _theme$header$compone3 === void 0 ? void 0 : _theme$header$compone3.toLowerCase()) === 'chew';
162
+ var isHideLanguages = theme === null || theme === void 0 ? void 0 : (_theme$header2 = theme.header) === null || _theme$header2 === void 0 ? void 0 : (_theme$header2$compon = _theme$header2.components) === null || _theme$header2$compon === void 0 ? void 0 : (_theme$header2$compon2 = _theme$header2$compon.language_selector) === null || _theme$header2$compon2 === void 0 ? void 0 : _theme$header2$compon2.hidden;
166
163
  var cateringTypeString = (orderState === null || orderState === void 0 ? void 0 : (_orderState$options = orderState.options) === null || _orderState$options === void 0 ? void 0 : _orderState$options.type) === 7 ? 'catering_delivery' : (orderState === null || orderState === void 0 ? void 0 : (_orderState$options2 = orderState.options) === null || _orderState$options2 === void 0 ? void 0 : _orderState$options2.type) === 8 ? 'catering_pickup' : null;
167
164
  var cateringValues = (0, _utils.getCateringValues)(cateringTypeString, pathname.includes('store') && (Object === null || Object === void 0 ? void 0 : (_Object$keys = Object.keys(business || {})) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) > 0 ? business === null || business === void 0 ? void 0 : business.configs : configState === null || configState === void 0 ? void 0 : configState.configs);
168
165
  var handleSuccessSignup = function handleSuccessSignup(user) {
@@ -292,13 +289,13 @@ var Header = function Header(props) {
292
289
  alt: "Logotype",
293
290
  width: "170px",
294
291
  height: isChew ? '35px' : '45px',
295
- src: isChew ? theme === null || theme === void 0 ? void 0 : (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$logos = _theme$images.logos) === null || _theme$images$logos === void 0 ? void 0 : _theme$images$logos.chewLogo : (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme2 = orderingTheme.theme) === null || _orderingTheme$theme2 === void 0 ? void 0 : (_orderingTheme$theme3 = _orderingTheme$theme2.my_products) === null || _orderingTheme$theme3 === void 0 ? void 0 : (_orderingTheme$theme4 = _orderingTheme$theme3.components) === null || _orderingTheme$theme4 === void 0 ? void 0 : (_orderingTheme$theme5 = _orderingTheme$theme4.images) === null || _orderingTheme$theme5 === void 0 ? void 0 : (_orderingTheme$theme6 = _orderingTheme$theme5.components) === null || _orderingTheme$theme6 === void 0 ? void 0 : (_orderingTheme$theme7 = _orderingTheme$theme6.logo) === null || _orderingTheme$theme7 === void 0 ? void 0 : (_orderingTheme$theme8 = _orderingTheme$theme7.components) === null || _orderingTheme$theme8 === void 0 ? void 0 : _orderingTheme$theme8.image) || (theme === null || theme === void 0 ? void 0 : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$logos = _theme$images2.logos) === null || _theme$images2$logos === void 0 ? void 0 : _theme$images2$logos.logotype),
292
+ src: isChew ? theme === null || theme === void 0 ? void 0 : (_theme$images = theme.images) === null || _theme$images === void 0 ? void 0 : (_theme$images$logos = _theme$images.logos) === null || _theme$images$logos === void 0 ? void 0 : _theme$images$logos.chewLogo : (theme === null || theme === void 0 ? void 0 : (_theme$my_products = theme.my_products) === null || _theme$my_products === void 0 ? void 0 : (_theme$my_products$co = _theme$my_products.components) === null || _theme$my_products$co === void 0 ? void 0 : (_theme$my_products$co2 = _theme$my_products$co.images) === null || _theme$my_products$co2 === void 0 ? void 0 : (_theme$my_products$co3 = _theme$my_products$co2.components) === null || _theme$my_products$co3 === void 0 ? void 0 : (_theme$my_products$co4 = _theme$my_products$co3.logo) === null || _theme$my_products$co4 === void 0 ? void 0 : (_theme$my_products$co5 = _theme$my_products$co4.components) === null || _theme$my_products$co5 === void 0 ? void 0 : _theme$my_products$co5.image) || (theme === null || theme === void 0 ? void 0 : (_theme$images2 = theme.images) === null || _theme$images2 === void 0 ? void 0 : (_theme$images2$logos = _theme$images2.logos) === null || _theme$images2$logos === void 0 ? void 0 : _theme$images2$logos.logotype),
296
293
  loading: "lazy"
297
294
  }), /*#__PURE__*/_react.default.createElement("img", {
298
295
  alt: "Isotype",
299
296
  width: isChew ? '70px' : '35px',
300
297
  height: isChew ? '20px' : '45px',
301
- src: isChew ? theme === null || theme === void 0 ? void 0 : (_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$logos = _theme$images3.logos) === null || _theme$images3$logos === void 0 ? void 0 : _theme$images3$logos.chewLogo : windowSize.width <= 768 ? theme === null || theme === void 0 ? void 0 : (_theme$images4 = theme.images) === null || _theme$images4 === void 0 ? void 0 : (_theme$images4$logos = _theme$images4.logos) === null || _theme$images4$logos === void 0 ? void 0 : _theme$images4$logos.isotypeInvert : (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme9 = orderingTheme.theme) === null || _orderingTheme$theme9 === void 0 ? void 0 : (_orderingTheme$theme10 = _orderingTheme$theme9.my_products) === null || _orderingTheme$theme10 === void 0 ? void 0 : (_orderingTheme$theme11 = _orderingTheme$theme10.components) === null || _orderingTheme$theme11 === void 0 ? void 0 : (_orderingTheme$theme12 = _orderingTheme$theme11.images) === null || _orderingTheme$theme12 === void 0 ? void 0 : (_orderingTheme$theme13 = _orderingTheme$theme12.components) === null || _orderingTheme$theme13 === void 0 ? void 0 : (_orderingTheme$theme14 = _orderingTheme$theme13.logo) === null || _orderingTheme$theme14 === void 0 ? void 0 : (_orderingTheme$theme15 = _orderingTheme$theme14.components) === null || _orderingTheme$theme15 === void 0 ? void 0 : _orderingTheme$theme15.image) || (theme === null || theme === void 0 ? void 0 : (_theme$images5 = theme.images) === null || _theme$images5 === void 0 ? void 0 : (_theme$images5$logos = _theme$images5.logos) === null || _theme$images5$logos === void 0 ? void 0 : _theme$images5$logos.isotype),
298
+ src: isChew ? theme === null || theme === void 0 ? void 0 : (_theme$images3 = theme.images) === null || _theme$images3 === void 0 ? void 0 : (_theme$images3$logos = _theme$images3.logos) === null || _theme$images3$logos === void 0 ? void 0 : _theme$images3$logos.chewLogo : windowSize.width <= 768 ? theme === null || theme === void 0 ? void 0 : (_theme$images4 = theme.images) === null || _theme$images4 === void 0 ? void 0 : (_theme$images4$logos = _theme$images4.logos) === null || _theme$images4$logos === void 0 ? void 0 : _theme$images4$logos.isotypeInvert : (theme === null || theme === void 0 ? void 0 : (_theme$my_products2 = theme.my_products) === null || _theme$my_products2 === void 0 ? void 0 : (_theme$my_products2$c = _theme$my_products2.components) === null || _theme$my_products2$c === void 0 ? void 0 : (_theme$my_products2$c2 = _theme$my_products2$c.images) === null || _theme$my_products2$c2 === void 0 ? void 0 : (_theme$my_products2$c3 = _theme$my_products2$c2.components) === null || _theme$my_products2$c3 === void 0 ? void 0 : (_theme$my_products2$c4 = _theme$my_products2$c3.logo) === null || _theme$my_products2$c4 === void 0 ? void 0 : (_theme$my_products2$c5 = _theme$my_products2$c4.components) === null || _theme$my_products2$c5 === void 0 ? void 0 : _theme$my_products2$c5.image) || (theme === null || theme === void 0 ? void 0 : (_theme$images5 = theme.images) === null || _theme$images5 === void 0 ? void 0 : (_theme$images5$logos = _theme$images5.logos) === null || _theme$images5$logos === void 0 ? void 0 : _theme$images5$logos.isotype),
302
299
  loading: "lazy"
303
300
  }))), isShowOrderOptions && windowSize.width >= 576 && /*#__PURE__*/_react.default.createElement(_styles.Menu, {
304
301
  id: "center-side",
@@ -9,6 +9,7 @@ var _orderingComponentsExternal = require("ordering-components-external");
9
9
  var _AiOutlineShoppingCart = _interopRequireDefault(require("@meronex/icons/ai/AiOutlineShoppingCart"));
10
10
  var _FaMapMarkerAlt = _interopRequireDefault(require("@meronex/icons/fa/FaMapMarkerAlt"));
11
11
  var _styles = require("./styles");
12
+ var _styledComponents = require("styled-components");
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
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -18,7 +19,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
18
19
  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; } }
19
20
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
21
  var HeaderOption = function HeaderOption(props) {
21
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _props$beforeElements, _props$beforeComponen, _configs$dates_moment, _props$afterComponent, _props$afterElements;
22
+ var _theme$header, _theme$header$compone, _theme$header$compone2, _theme$header$compone3, _props$beforeElements, _props$beforeComponen, _configs$dates_moment, _props$afterComponent, _props$afterElements;
22
23
  var variant = props.variant,
23
24
  addressState = props.addressState,
24
25
  momentState = props.momentState,
@@ -30,16 +31,14 @@ var HeaderOption = function HeaderOption(props) {
30
31
  var _useUtils = (0, _orderingComponentsExternal.useUtils)(),
31
32
  _useUtils2 = _slicedToArray(_useUtils, 1),
32
33
  parseDate = _useUtils2[0].parseDate;
33
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
34
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
35
- orderingTheme = _useOrderingTheme2[0];
36
34
  var _useLanguage = (0, _orderingComponentsExternal.useLanguage)(),
37
35
  _useLanguage2 = _slicedToArray(_useLanguage, 2),
38
36
  t = _useLanguage2[1];
39
37
  var _useOrder = (0, _orderingComponentsExternal.useOrder)(),
40
38
  _useOrder2 = _slicedToArray(_useOrder, 1),
41
39
  orderStatus = _useOrder2[0];
42
- var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme = orderingTheme.theme) === null || _orderingTheme$theme === void 0 ? void 0 : (_orderingTheme$theme$ = _orderingTheme$theme.header) === 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.layout) === null || _orderingTheme$theme$3 === void 0 ? void 0 : (_orderingTheme$theme$4 = _orderingTheme$theme$3.type) === null || _orderingTheme$theme$4 === void 0 ? void 0 : _orderingTheme$theme$4.toLowerCase()) === 'chew';
40
+ var theme = (0, _styledComponents.useTheme)();
41
+ var isChew = (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.layout) === null || _theme$header$compone2 === void 0 ? void 0 : (_theme$header$compone3 = _theme$header$compone2.type) === null || _theme$header$compone3 === void 0 ? void 0 : _theme$header$compone3.toLowerCase()) === 'chew';
43
42
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (_props$beforeElements = props.beforeElements) === null || _props$beforeElements === void 0 ? void 0 : _props$beforeElements.map(function (BeforeElement, i) {
44
43
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
45
44
  key: i
@@ -33,7 +33,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
33
33
  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; } }
34
34
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
35
35
  var OriginalHomeHero = function OriginalHomeHero(props) {
36
- var _orderingTheme$theme, _orderingTheme$theme$, _orderingTheme$theme$2, _orderingTheme$theme$3, _orderingTheme$theme$4, _orderingTheme$theme$5, _orderingTheme$theme2, _orderingTheme$theme3, _orderingTheme$theme4, _orderingTheme$theme5, _orderingTheme$theme6, _orderingTheme$theme7, _orderingTheme$theme8, _orderingTheme$theme9, _orderingTheme$theme10, _orderingTheme$theme11, _orderingTheme$theme12, _orderingTheme$theme13, _orderingTheme$theme14, _orderingTheme$theme15, _orderingTheme$theme16, _orderingTheme$theme17, _orderingTheme$theme18, _orderingTheme$theme19, _orderingTheme$theme20, _orderingTheme$theme21, _orderingTheme$theme22, _orderingTheme$theme23, _orderingTheme$theme24, _orderingTheme$theme25, _orderingTheme$theme26, _orderingTheme$theme27, _orderingTheme$theme28, _orderingTheme$theme29, _orderingTheme$theme30, _orderingTheme$theme31, _orderingTheme$theme32, _configs$powered_by_o, _theme$images, _theme$images$general, _theme$images2, _theme$images2$genera, _theme$images3, _theme$images3$logos, _theme$defaultLanguag, _theme$defaultLanguag2, _orderState$options3, _orderState$options3$, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _orderState$options4, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10;
36
+ var _theme$mobile_view_we, _theme$mobile_view_we2, _theme$mobile_view_we3, _theme$mobile_view_we4, _theme$mobile_view_we5, _theme$my_products, _theme$my_products$co, _theme$my_products$co2, _theme$my_products$co3, _theme$my_products$co4, _theme$my_products$co5, _theme$my_products2, _theme$my_products2$c, _theme$my_products2$c2, _theme$my_products2$c3, _theme$my_products2$c4, _theme$my_products2$c5, _theme$my_products3, _theme$my_products3$c, _theme$my_products3$c2, _theme$my_products3$c3, _theme$my_products3$c4, _theme$my_products3$c5, _theme$my_products4, _theme$my_products4$c, _theme$my_products4$c2, _theme$my_products4$c3, _theme$header, _theme$header$compone, _theme$header$compone2, _theme$header$compone3, _configs$powered_by_o, _theme$images, _theme$images$general, _theme$images2, _theme$images2$genera, _theme$images3, _theme$images3$logos, _theme$defaultLanguag, _theme$defaultLanguag2, _orderState$options3, _orderState$options3$, _theme$defaultLanguag3, _theme$defaultLanguag4, _theme$defaultLanguag5, _orderState$options4, _theme$defaultLanguag6, _theme$defaultLanguag7, _theme$defaultLanguag8, _theme$defaultLanguag9, _theme$defaultLanguag10;
37
37
  var onFindBusiness = props.onFindBusiness,
38
38
  notificationState = props.notificationState;
39
39
  var _useSession = (0, _orderingComponentsExternal.useSession)(),
@@ -59,9 +59,6 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
59
59
  var theme = (0, _styledComponents.useTheme)();
60
60
  var userCustomer = parseInt(window.localStorage.getItem('user-customer'));
61
61
  var windowSize = (0, _useWindowSize.useWindowSize)();
62
- var _useOrderingTheme = (0, _orderingComponentsExternal.useOrderingTheme)(),
63
- _useOrderingTheme2 = _slicedToArray(_useOrderingTheme, 1),
64
- orderingTheme = _useOrderingTheme2[0];
65
62
  var _useState3 = (0, _react.useState)(false),
66
63
  _useState4 = _slicedToArray(_useState3, 2),
67
64
  authModalOpen = _useState4[0],
@@ -74,12 +71,12 @@ var OriginalHomeHero = function OriginalHomeHero(props) {
74
71
  _useState8 = _slicedToArray(_useState7, 2),
75
72
  newAddressModalOpened = _useState8[0],
76
73
  setNewAddressModalOpened = _useState8[1];
77
- var isShowLoginAccount = !(orderingTheme !== null && orderingTheme !== void 0 && (_orderingTheme$theme = orderingTheme.theme) !== null && _orderingTheme$theme !== void 0 && (_orderingTheme$theme$ = _orderingTheme$theme.mobile_view_web) !== null && _orderingTheme$theme$ !== void 0 && (_orderingTheme$theme$2 = _orderingTheme$theme$.components) !== null && _orderingTheme$theme$2 !== void 0 && (_orderingTheme$theme$3 = _orderingTheme$theme$2.home) !== null && _orderingTheme$theme$3 !== void 0 && (_orderingTheme$theme$4 = _orderingTheme$theme$3.components) !== null && _orderingTheme$theme$4 !== void 0 && (_orderingTheme$theme$5 = _orderingTheme$theme$4.login_account) !== null && _orderingTheme$theme$5 !== void 0 && _orderingTheme$theme$5.hidden);
78
- var bgImg = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme2 = orderingTheme.theme) === null || _orderingTheme$theme2 === void 0 ? void 0 : (_orderingTheme$theme3 = _orderingTheme$theme2.my_products) === null || _orderingTheme$theme3 === void 0 ? void 0 : (_orderingTheme$theme4 = _orderingTheme$theme3.components) === null || _orderingTheme$theme4 === void 0 ? void 0 : (_orderingTheme$theme5 = _orderingTheme$theme4.images) === null || _orderingTheme$theme5 === void 0 ? void 0 : (_orderingTheme$theme6 = _orderingTheme$theme5.components) === null || _orderingTheme$theme6 === void 0 ? void 0 : (_orderingTheme$theme7 = _orderingTheme$theme6.homepage_background) === null || _orderingTheme$theme7 === void 0 ? void 0 : (_orderingTheme$theme8 = _orderingTheme$theme7.components) === null || _orderingTheme$theme8 === void 0 ? void 0 : _orderingTheme$theme8.image;
79
- var logo = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme9 = orderingTheme.theme) === null || _orderingTheme$theme9 === void 0 ? void 0 : (_orderingTheme$theme10 = _orderingTheme$theme9.my_products) === null || _orderingTheme$theme10 === void 0 ? void 0 : (_orderingTheme$theme11 = _orderingTheme$theme10.components) === null || _orderingTheme$theme11 === void 0 ? void 0 : (_orderingTheme$theme12 = _orderingTheme$theme11.images) === null || _orderingTheme$theme12 === void 0 ? void 0 : (_orderingTheme$theme13 = _orderingTheme$theme12.components) === null || _orderingTheme$theme13 === void 0 ? void 0 : (_orderingTheme$theme14 = _orderingTheme$theme13.logo) === null || _orderingTheme$theme14 === void 0 ? void 0 : (_orderingTheme$theme15 = _orderingTheme$theme14.components) === null || _orderingTheme$theme15 === void 0 ? void 0 : _orderingTheme$theme15.image;
80
- var mobileBgImg = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme16 = orderingTheme.theme) === null || _orderingTheme$theme16 === void 0 ? void 0 : (_orderingTheme$theme17 = _orderingTheme$theme16.my_products) === null || _orderingTheme$theme17 === void 0 ? void 0 : (_orderingTheme$theme18 = _orderingTheme$theme17.components) === null || _orderingTheme$theme18 === void 0 ? void 0 : (_orderingTheme$theme19 = _orderingTheme$theme18.images) === null || _orderingTheme$theme19 === void 0 ? void 0 : (_orderingTheme$theme20 = _orderingTheme$theme19.components) === null || _orderingTheme$theme20 === void 0 ? void 0 : (_orderingTheme$theme21 = _orderingTheme$theme20.homepage_mobile_background) === null || _orderingTheme$theme21 === void 0 ? void 0 : (_orderingTheme$theme22 = _orderingTheme$theme21.components) === null || _orderingTheme$theme22 === void 0 ? void 0 : _orderingTheme$theme22.image;
81
- var isFullScreen = orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme23 = orderingTheme.theme) === null || _orderingTheme$theme23 === void 0 ? void 0 : (_orderingTheme$theme24 = _orderingTheme$theme23.my_products) === null || _orderingTheme$theme24 === void 0 ? void 0 : (_orderingTheme$theme25 = _orderingTheme$theme24.components) === null || _orderingTheme$theme25 === void 0 ? void 0 : (_orderingTheme$theme26 = _orderingTheme$theme25.images) === null || _orderingTheme$theme26 === void 0 ? void 0 : (_orderingTheme$theme27 = _orderingTheme$theme26.components) === null || _orderingTheme$theme27 === void 0 ? void 0 : _orderingTheme$theme27.homepage_image_fullscreen;
82
- var isChew = (orderingTheme === null || orderingTheme === void 0 ? void 0 : (_orderingTheme$theme28 = orderingTheme.theme) === null || _orderingTheme$theme28 === void 0 ? void 0 : (_orderingTheme$theme29 = _orderingTheme$theme28.header) === null || _orderingTheme$theme29 === void 0 ? void 0 : (_orderingTheme$theme30 = _orderingTheme$theme29.components) === null || _orderingTheme$theme30 === void 0 ? void 0 : (_orderingTheme$theme31 = _orderingTheme$theme30.layout) === null || _orderingTheme$theme31 === void 0 ? void 0 : (_orderingTheme$theme32 = _orderingTheme$theme31.type) === null || _orderingTheme$theme32 === void 0 ? void 0 : _orderingTheme$theme32.toLowerCase()) === 'chew';
74
+ var isShowLoginAccount = !(theme !== null && theme !== void 0 && (_theme$mobile_view_we = theme.mobile_view_web) !== null && _theme$mobile_view_we !== void 0 && (_theme$mobile_view_we2 = _theme$mobile_view_we.components) !== null && _theme$mobile_view_we2 !== void 0 && (_theme$mobile_view_we3 = _theme$mobile_view_we2.home) !== null && _theme$mobile_view_we3 !== void 0 && (_theme$mobile_view_we4 = _theme$mobile_view_we3.components) !== null && _theme$mobile_view_we4 !== void 0 && (_theme$mobile_view_we5 = _theme$mobile_view_we4.login_account) !== null && _theme$mobile_view_we5 !== void 0 && _theme$mobile_view_we5.hidden);
75
+ var bgImg = theme === null || theme === void 0 ? void 0 : (_theme$my_products = theme.my_products) === null || _theme$my_products === void 0 ? void 0 : (_theme$my_products$co = _theme$my_products.components) === null || _theme$my_products$co === void 0 ? void 0 : (_theme$my_products$co2 = _theme$my_products$co.images) === null || _theme$my_products$co2 === void 0 ? void 0 : (_theme$my_products$co3 = _theme$my_products$co2.components) === null || _theme$my_products$co3 === void 0 ? void 0 : (_theme$my_products$co4 = _theme$my_products$co3.homepage_background) === null || _theme$my_products$co4 === void 0 ? void 0 : (_theme$my_products$co5 = _theme$my_products$co4.components) === null || _theme$my_products$co5 === void 0 ? void 0 : _theme$my_products$co5.image;
76
+ var logo = theme === null || theme === void 0 ? void 0 : (_theme$my_products2 = theme.my_products) === null || _theme$my_products2 === void 0 ? void 0 : (_theme$my_products2$c = _theme$my_products2.components) === null || _theme$my_products2$c === void 0 ? void 0 : (_theme$my_products2$c2 = _theme$my_products2$c.images) === null || _theme$my_products2$c2 === void 0 ? void 0 : (_theme$my_products2$c3 = _theme$my_products2$c2.components) === null || _theme$my_products2$c3 === void 0 ? void 0 : (_theme$my_products2$c4 = _theme$my_products2$c3.logo) === null || _theme$my_products2$c4 === void 0 ? void 0 : (_theme$my_products2$c5 = _theme$my_products2$c4.components) === null || _theme$my_products2$c5 === void 0 ? void 0 : _theme$my_products2$c5.image;
77
+ var mobileBgImg = theme === null || theme === void 0 ? void 0 : (_theme$my_products3 = theme.my_products) === null || _theme$my_products3 === void 0 ? void 0 : (_theme$my_products3$c = _theme$my_products3.components) === null || _theme$my_products3$c === void 0 ? void 0 : (_theme$my_products3$c2 = _theme$my_products3$c.images) === null || _theme$my_products3$c2 === void 0 ? void 0 : (_theme$my_products3$c3 = _theme$my_products3$c2.components) === null || _theme$my_products3$c3 === void 0 ? void 0 : (_theme$my_products3$c4 = _theme$my_products3$c3.homepage_mobile_background) === null || _theme$my_products3$c4 === void 0 ? void 0 : (_theme$my_products3$c5 = _theme$my_products3$c4.components) === null || _theme$my_products3$c5 === void 0 ? void 0 : _theme$my_products3$c5.image;
78
+ var isFullScreen = theme === null || theme === void 0 ? void 0 : (_theme$my_products4 = theme.my_products) === null || _theme$my_products4 === void 0 ? void 0 : (_theme$my_products4$c = _theme$my_products4.components) === null || _theme$my_products4$c === void 0 ? void 0 : (_theme$my_products4$c2 = _theme$my_products4$c.images) === null || _theme$my_products4$c2 === void 0 ? void 0 : (_theme$my_products4$c3 = _theme$my_products4$c2.components) === null || _theme$my_products4$c3 === void 0 ? void 0 : _theme$my_products4$c3.homepage_image_fullscreen;
79
+ var isChew = (theme === null || theme === void 0 ? void 0 : (_theme$header = theme.header) === null || _theme$header === void 0 ? void 0 : (_theme$header$compone = _theme$header.components) === null || _theme$header$compone === void 0 ? void 0 : (_theme$header$compone2 = _theme$header$compone.layout) === null || _theme$header$compone2 === void 0 ? void 0 : (_theme$header$compone3 = _theme$header$compone2.type) === null || _theme$header$compone3 === void 0 ? void 0 : _theme$header$compone3.toLowerCase()) === 'chew';
83
80
  var enabledPoweredByOrdering = configs === null || configs === void 0 ? void 0 : (_configs$powered_by_o = configs.powered_by_ordering_module) === null || _configs$powered_by_o === void 0 ? void 0 : _configs$powered_by_o.value;
84
81
  var handleFindBusinesses = function handleFindBusinesses() {
85
82
  var _orderState$options, _orderState$options$a;
@@ -25,7 +25,7 @@ var CardsContainer = _styledComponents.default.div(_templateObject5 || (_templat
25
25
  return isBusinessesPage && (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n box-sizing: border-box;\n "])));
26
26
  });
27
27
  exports.CardsContainer = CardsContainer;
28
- var CardsContainerWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-bottom: 10px;\n display: flex;\n ", "\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n ", "\n"])), function (_ref3) {
28
+ var CardsContainerWrapper = _styledComponents.default.div(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n margin-bottom: 10px;\n display: flex;\n overflow: auto hidden;\n ", "\n ::-webkit-scrollbar {\n width: 6px;\n height: 6px;\n }\n ", "\n"])), function (_ref3) {
29
29
  var isBusinessesPage = _ref3.isBusinessesPage;
30
30
  return isBusinessesPage && (0, _styledComponents.css)(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n overflow: scroll hidden;\n width: 100%;\n "])));
31
31
  }, function (_ref4) {
@@ -17,8 +17,10 @@ var Container = _styledComponents.default.div(_templateObject || (_templateObjec
17
17
  });
18
18
  exports.Container = Container;
19
19
  var ModalDialog = _styledComponents.default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n position: relative;\n background-color: ", ";\n padding: ", ";\n width: 100vw;\n border-radius: 0px;\n box-sizing: border-box;\n margin-top: auto;\n margin-bottom: auto;\n height: ", ";\n max-height: 100vh;\n overflow: auto;\n overflow-x: ", ";\n z-index: 10001;\n @media (min-width: 769px) {\n width: ", ";\n max-height: 90vh;\n border-radius: 10px;\n height: auto;\n ", "\n }\n"])), function (_ref2) {
20
- var isTransparent = _ref2.isTransparent;
21
- return isTransparent ? 'transparent' : '#FFF';
20
+ var _theme$colors;
21
+ var isTransparent = _ref2.isTransparent,
22
+ theme = _ref2.theme;
23
+ return isTransparent ? 'transparent' : theme === null || theme === void 0 ? void 0 : (_theme$colors = theme.colors) === null || _theme$colors === void 0 ? void 0 : _theme$colors.backgroundPage;
22
24
  }, function (_ref3) {
23
25
  var padding = _ref3.padding;
24
26
  return padding || '30px 20px';